最近 想做个 基于 DZ 。net 3.0 论坛的 一个采集程序, 研究了下 dz的 数据字典 发现 他的 主题 和 帖子 表  分别为  posts1 和 topics 。 这个 直接往数据库写数据  页面 是 能读取出来的 但是 现在有个问题是  插入的帖子 在首页 显示不出来 今日发帖量 等  应该还有关联表我没发现 后来 发来了个 forums 缓存表  但是 修改了数据后 首页一样的 没显示 ..不知道 为什么??

解决方案 »

  1.   

    TOPdnt_topics 
    代码 注释 类型 长度 小数 默认值 标识 主键 空值 
    tid 主题tid int 10 0        
    fid 版块id smallint 5 0        
    iconid 主题图标id tinyint 3 0 (0)       
    readperm 阅读权限 int 10 0 (0)       
    price 主题出售价格积分 smallint 5 0 (0)       
    poster 作者 nchar 20 0 ('')       
    posterid 作者uid int 10 0 (0)       
    title 标题 nchar 60 0        
    postdatetime 发布时间 datetime 23 3 (getdate())       
    lastpost 最后回复时间 datetime 23 3 (getdate())       
    lastpostid 最后回复帖子ID int 10 0 (0)       
    lastposter 最后回复用户名 nchar 20 0 ('')       
    lastposterid 最后回复用户名ID int 10 0 (0)       
    views 查看数 int 10 0 (0)       
    replies 回复数 int 10 0 (0)       
    displayorder >0为置顶,<0不显示,==0正常 -1为回收站 -2待审核 int 10 0 (0)       
    highlight 主题高亮识别号 varchar 500 0 ('')       
    digest 精华级别,1~3 tinyint 3 0 (0)       
    hide 是否为回复可见帖 int 10 0 (0)       
    attachment 是否含有附件 int 10 0 (0)       
    moderated 是否被执行管理操作 tinyint 3 0 (0)       
    closed 是否关闭,如果数值>1,值代表转向目标主题的tid int 10 0 (0)       
    magic 标示帖子的类型id int 10 0 (0)       
    identify 被鉴定的id int 10 0 ('0')       
    special special tinyint 3 0 (0)       
    typeid typeid int 10 0 (0)       
    rate rate int 10 0 (0)       
    attention attention 
      

  2.   

    displayorder >0为置顶,<0不显示,==0正常 -1为回收站 -2待审核 
    是不是有审核功能没有审核?
      

  3.   

    其实  BBAMAX  不错  我用过
      

  4.   

    dnt_forums 
    代码 注释 类型 长度 小数 默认值 标识 主键 空值 
    fid 论坛fid int 10 0        
    parentid 本论坛的上级论坛或分本论坛的上级论坛或分类的fid smallint 5 0 ('0')       
    layer 论坛层次 smallint 5 0 ('0')       
    pathlist 论坛级别所处路径的html链接代码 nchar 3000 0 ('')       
    parentidlist 论坛级别所处路径id列表 char 300 0        
    subforumcount 论坛包括的子论坛个数 int 10 0 (1)       
    name 论坛名称 nchar 50 0        
    status 是否显示 int 10 0 ('0')       
    displayorder 显示顺序 int 10 0 ('0')       
    templateid 风格id,0为默认 smallint 5 0 ('0')       
    topics 主题数 int 10 0 ('0')       
    curtopics 当前主题数 int 10 0 ('0')       
    posts 帖子数 int 10 0 ('0')       
    todayposts 今日发帖 你可以查看 dnt_forums 这个表
    或者搜索这个表,是不是发表文章的时候没有增加数目?
      

  5.   

     这个表 我注意过  发帖的时候  是累加的 todayposts 和 posts 你发一帖 这2个 都累加 1 比如我举个例子 现在 我 update   forums 这个表的 记录 把 todayposts 和 posts  都设为 100然后 我再去 论坛发帖 现在  todayposts 和 posts 都变成了 101   但是 论坛首页的发帖统计 却还是 1.
      

  6.   

    哦,基本我找了下有关主题的就这张表了
    TOPdnt_statistics 
    代码 注释 类型 长度 小数 默认值 标识 主键 空值 
    totaltopic 主题总数 int 10 0        
    totalpost 帖子总数 int 10 0        
    totalusers 用户总数 int 10 0        
    lastusername 最后注册用户名 nchar 20 0        
    lastuserid 最后注册用户ID int 10 0        
    highestonlineusercount 最高在线用户总数 int 10 0        
    highestonlineusertime 最高在线用户时间 smalldatetime 16 0        
    yesterdayposts 昨日帖子数 int 10 0 (0)       
    highestposts 最高帖子数 int 10 0 (0)       
    highestpostsdate 最多发帖日 论坛首页的发帖统计 却还是 1.
    那你要看看页面以及源码是怎么样的了
      

  7.   

    dnt_statistics  这张表我也试过.. 不是的 这个是 一张缓存论坛统计的表.. 不关乎 发帖统计!