Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

Discuz!文章系统 Discuz!Article v0.1 For Discuz!5.5

[复制链接]
 楼主| TaRot! 发表于 2007-3-15 16:07:21 | 显示全部楼层

回复 #60 druo 的帖子

  1. if($forum['styleid'] == 2){

  2. //精华文章 即显示的推荐文章
  3. $hack_cut_str = 25; //修改标题显示字数
  4. $hack_cut_strauthor = 9;
  5. $Db_hot_threadlist = array();
  6. $Dbthread = array();
  7. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE digest>'0' AND t.fid='$fid' AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' ORDER BY t.dateline DESC LIMIT 0, 10");
  8. while($Dbthread = $db->fetch_array($query)) {
  9.         $Dbthread['forumname'] = $Dbthread['name'];
  10.         $Dbthread['view_subject'] = cutstr($Dbthread['subject'],$hack_cut_str);
  11.         $Dbthread['view_lastposter'] = cutstr($Dbthread['lastposter'],$hack_cut_strauthor);
  12.                 $Dbthread['date']= gmdate("$dateformat $timeformat", $Dbthread['dateline'] + $timeoffset * 3600);
  13.         $Dbthread['lastreplytime']= gmdate("$dateformat $timeformat", $Dbthread[lastpost] + ($timeoffset * 3600));
  14.         $Db_hot_threadlist[] = $Dbthread;
  15. }

  16. //精华文章

  17. //热门文章 即显示的热门文章
  18. $hack_cut_str = 25; //修改标题显示字数
  19. $hack_cut_strauthor = 9;
  20. $Da_hot_threadlist = array();
  21. $Dathread = array();
  22. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid='$fid' AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' ORDER BY t.views DESC LIMIT 0, 10");
  23. while($Dathread = $db->fetch_array($query)) {
  24.         $Dathread['forumname'] = $Dathread['name'];
  25.         $Dathread['view_subject'] = cutstr($Dathread['subject'],$hack_cut_str);
  26.         $Dathread['view_lastposter'] = cutstr($Dathread['lastposter'],$hack_cut_strauthor);
  27.                 $Dathread['date']= gmdate("$dateformat $timeformat", $Dathread['dateline'] + $timeoffset * 3600);
  28.         $Dathread['lastreplytime']= gmdate("$dateformat $timeformat", $Dathread[lastpost] + ($timeoffset * 3600));
  29.         $Da_hot_threadlist[] = $Dathread;
  30. }

  31. //热门文章
  32. }
复制代码

加上.别漏了符号.加完后更新缓存.PS:在加之前最好把后台那个开启css缓存先关掉.
回复

使用道具 举报

gaofunet 发表于 2007-3-15 16:19:07 | 显示全部楼层

我装了后右侧推荐和热门没有显示帖子?

我装了www.gfkx.com后右侧推荐和热门没有显示帖子?
回复

使用道具 举报

druo 发表于 2007-3-15 16:33:29 | 显示全部楼层
感谢MJJ楼主,我的装好了~~
回复

使用道具 举报

 楼主| TaRot! 发表于 2007-3-15 16:33:38 | 显示全部楼层

回复 #62 gaofunet 的帖子

你的站我无法访问,如果你确定仔细阅读了1楼的所有说明.不会安装出现问题.
回复

使用道具 举报

 楼主| TaRot! 发表于 2007-3-15 16:35:36 | 显示全部楼层

回复 #63 druo 的帖子

:)  谢谢支持.....
回复

使用道具 举报

ba0411 发表于 2007-3-15 17:18:15 | 显示全部楼层
請問 此款有5.0的嗎?
回复

使用道具 举报

lioulangzhe 发表于 2007-3-15 17:22:35 | 显示全部楼层
回复

使用道具 举报

lioulangzhe 发表于 2007-3-15 17:22:57 | 显示全部楼层
回复

使用道具 举报

 楼主| TaRot! 发表于 2007-3-15 17:23:17 | 显示全部楼层

回复 #66 ba0411 的帖子

5.0的可以使用,具体请仔细看1楼说明.只要自己把广告位手动加就可以.
回复

使用道具 举报

druo 发表于 2007-3-15 17:40:59 | 显示全部楼层
强烈建议MJJ推出其他模板!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-4 07:05 , Processed in 0.102113 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表