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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

简单 首页四格 FOR Discuz!5.5.0 完美无错(更新 20号)

[复制链接]
wlktom 发表于 2007-3-13 14:02:10 | 显示全部楼层 |阅读模式
      希望流量大的朋友们 给做个连接

    LOGO:http://www.fzlxp.com/images/logoxp.gif
    名称  :非主流中文网
    地址  :http://www.fzlxp.com


真正的非主流 5.5 正式版 免费+精


有些人素质就是有问题 你自己好好看看说明 下载的那么多人 都没有毛病 就你有问题 自己不看说明 胡乱装

   有问题 问自己  严重鄙视  你要是有资格说这说那 拿出点成绩出来  再次鄙视


请支持原作者 谢谢!
===============================================

插件演示:       非主流中文网
插件版本:        Discuz! 5.5.0  GBK 简体中文正式版
插件质量:        完美无错
安装难易:     易
数  据 表:      无
修改文件:      index.php、discuz.htm
增加文件:      pic.php、pic.htm、pixviewer.swf、slide.js

插件作者:      vvvdong  
发布理由:       此插件经过修改 完美无错 有问题跟贴

===========================================


精华换热帖 和其他问题 都在二楼 看完就顶


直接上传就OK  估计都会用 就不写教程了 自己打开研究   谢谢支持
1、修改index.php

找到:
  1. require_once DISCUZ_ROOT.'./include/forum.func.php';
复制代码
下面添加:
  1. require_once DISCUZ_ROOT.'./include/misc.func.php';
复制代码
继续找:
  1. $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
复制代码
下面添加:
  1. $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
  2. //最新话题//
  3. $hack_cut_str =28; //修改标题显示字数
  4. $hack_cut_strauthor = 9;
  5. $new_post_threadlist = array();
  6. $nthread = array();
  7. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 10");
  8. while($nthread = $db->fetch_array($query)) {
  9.         $nthread['forumname'] = $nthread['name'];
  10.         $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
  11.         $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
  12.         $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
  13.         $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
  14.         if($nthread['highlight']) {
  15.                 $string = sprintf('%02d', $nthread['highlight']);
  16.                 $stylestr = sprintf('%03b', $string[0]);
  17.                 $nthread['highlight'] = 'style="';
  18.                 $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  19.                 $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  20.                 $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  21.                 $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  22.                 $nthread['highlight'] .= '"';
  23.         } else {
  24.                 $nthread['highlight'] = '';
  25.         }
  26.         $new_post_threadlist[] = $nthread;
  27. }
  28. //最新话题//
  29. //最新回复//
  30. $hack_cut_str = 28; //修改标题显示字数
  31. $hack_cut_strauthor = 9;
  32. $new_reply_threadlist = array();
  33. $rthread = array();
  34. $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|%' AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 10");
  35. while($rthread = $db->fetch_array($query)) {
  36.         $rthread['forumname'] = $rthread['name'];
  37.         $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
  38.         $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);
  39. $rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
  40.         $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
  41.         if($rthread['highlight']) {
  42.                 $string = sprintf('%02d', $rthread['highlight']);
  43.                 $stylestr = sprintf('%03b', $string[0]);
  44.                 $rthread['highlight'] = 'style="';
  45.                 $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  46.                 $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  47.                 $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  48.                 $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  49.                 $rthread['highlight'] .= '"';
  50.         } else {
  51.                 $rthread['highlight'] = '';
  52.         }
  53.         $new_reply_threadlist[] = $rthread;
  54. }
  55. //最新回复//
  56. //论坛精华//
  57. $hack_cut_str =28; //修改标题显示字数
  58. $hack_cut_strauthor = 9;
  59. $new_digest_threadlist = array();
  60. $dthread = array();
  61. $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 ORDER BY t.dateline DESC LIMIT 0, 10"); //修改显示帖子条数
  62. while($dthread = $db->fetch_array($query)) {
  63.         $dthread['forumname'] = $dthread['name'];
  64.         $dthread['view_subject'] = cutstr($dthread['subject'],$hack_cut_str);
  65.         $dthread['view_author'] = cutstr($dthread['author'],$hack_cut_strauthor);
  66.         $dthread['date']= gmdate("$dateformat $timeformat", $dthread['dateline'] + $timeoffset * 3600);
  67.         $dthread['lastreplytime']= gmdate("$dateformat $timeformat", $dthread[lastpost] + ($timeoffset * 3600));
  68.         if($dthread['highlight']) {
  69.                 $string = sprintf('%02d', $dthread['highlight']);
  70.                 $stylestr = sprintf('%03b', $string[0]);
  71.                 $dthread['highlight'] = 'style="';
  72.                 $dthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  73.                 $dthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  74.                 $dthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  75.                 $dthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  76.                 $dthread['highlight'] .= '"';
  77.         } else {
  78.                 $dthread['highlight'] = '';
  79.         }
  80.         $new_digest_threadlist[] = $dthread;
  81. }
  82. //论坛精华//
复制代码
2.打开/templates/default/discuz.htm
找到:
  1. <!--{if !empty($advlist['text'])}-->
复制代码
上面添加:
  1. <!--首页四格开始-->
  2. <div class="spaceborder" style="width: {TABLEWIDTH}">
  3. <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center" >
  4.     <tr class="header">
  5.     <td class="header" width="25%" align="center"><b><img src={IMGDIR}/dot.gif BORDER=0>≡论坛图片≡</b></td>
  6.     <td class="header" width="25%" align="center"><b><img src={IMGDIR}/dot.gif BORDER=0>≡最新话题≡</b></td>
  7.     <td class="header" width="25%" align="center"><b><img src={IMGDIR}/dot.gif BORDER=0>≡最新回复≡</b></td>
  8.     <td class="header" width="25%" align="center"><b><img src={IMGDIR}/dot.gif BORDER=0>≡论坛精华≡</b></td>
  9.   </tr>
  10.   <tr>
  11.     <td class="altbg1" align="center"><iframe name="I1" src="pic.php" width="270" height="210" frameborder=0 scrolling=no marginwidth="9" marginheight="2" align="right"></iframe>
  12.     </td>
  13.     <td><!--{loop $new_post_threadlist $nthread}-->
  14.         <table border="0" width='100%' cellspacing="2">
  15.           <tr>
  16.             <td height="12" width='100%'><FONT face=Wingdings>z</FONT>
  17.                 <!--{if $nthread[replies]}-->
  18.                 <a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title="最新话题 {LF}所在论坛: $nthread[forumname]{LF}主题标题: $nthread[subject] {LF}主题作者: $nthread[author]{LF}发表时间: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}最后回复: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]" >$nthread[view_subject]</a>
  19.                 <!--{else}-->
  20.                 <a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title="最新话题 {LF}所在论坛: $nthread[forumname]{LF}主题标题: $nthread[subject] {LF}主题作者: $nthread[author]{LF}发表时间{lang time}: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}{lang replies}: 暂时没有回复" >$nthread[view_subject]</a>
  21.               <!--{/if}-->
  22.             </td>
  23.           </tr>
  24.         </table>
  25.       <!--{/loop}--></td>
  26.     <td><!--{loop $new_reply_threadlist $rthread}-->
  27.         <table border="0" width='100%' cellspacing="2">
  28.           <tr>
  29.             <td height="12" width='100%'><FONT face=Wingdings>z</FONT>  </font><a href="viewthread.php?tid=$rthread[tid]" $rthread['highlight'] title="最新回复 {LF}所在论坛: $rthread[forumname]{LF}主题标题: $rthread[subject]{LF}主题作者: $rthread[author]{LF}发表时间: $rthread[date]{LF}浏览次数: $rthread[views] 次{LF}回复次数: $rthread[replies] 次{LF}最后回复: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]">$rthread[view_subject]</a></td>
  30.           </tr>
  31.         </table>
  32.       <!--{/loop}--></td>
  33. <td>
  34. <!--{loop $new_digest_threadlist $dthread}-->
  35.        <table border="0" width='100%' cellspacing="2">
  36.           <tr>
  37.             <td height=12 width='76%'><FONT face=Wingdings>z</FONT>  </font><a href="viewthread.php?tid=$dthread[tid]"  $dthread['highlight'] title="精华文章 {LF}所在论坛: $dthread[forumname]{LF}主题标题: $dthread[subject]{LF}主题作者: $dthread[author]{LF}发表时间: $dthread[date]{LF}浏览次数: $dthread[views] 次{LF}回复次数: $dthread[replies] 次{LF}最后回复: $dthread[lastreplytime]{LF}{lang lastpost}: $dthread[lastposter]">$dthread[view_subject]</a></td>         
  38.           </tr>
  39.         </table>
  40.       <!--{/loop}--></td>
  41.   </tr>
  42. </table></div>
  43. <!--首页四格结束-->
复制代码
附件直接上传即可!,如果图片不能正常显示,请在你的论坛内上传 .jpg
的图片,然后后台更新缓存即可

请直接下载附件上传到根目录即可,如果担心出错,请先备份 如下文件

./index.php
./templates/default/discuz.htm

如果修改首页图片显示数目及部分论坛.jpg图片附件,请修改
./pic.php (内有详细说明)


[ 本帖最后由 wlktom 于 2007-3-20 02:46 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| wlktom 发表于 2007-3-13 14:06:32 | 显示全部楼层
把“精华帖”改为“热门话题”的方法:
a、修改(已经改好的)discuz.htm
1、把下面的代码--
  1. <!--{loop $new_digest_threadlist $dthread}-->
  2.        <table border="0" width='100%' cellspacing="2">
  3.           <tr>
  4.             <td height=12 width='76%'><FONT face=Wingdings>z</FONT>  </font><a href="viewthread.php?tid=$dthread[tid]"  $dthread['highlight'] title="精华文章 {LF}所在论坛: $dthread[forumname]{LF}主题标题: $dthread[subject]{LF}主题作者: $dthread[author]{LF}发表时间: $dthread[date]{LF}浏览次数: $dthread[views] 次{LF}回复次数: $dthread[replies] 次{LF}最后回复: $dthread[lastreplytime]{LF}{lang lastpost}: $dthread[lastposter]">$dthread[view_subject]</a></td>
复制代码
替换为--
  1. <!--{loop $new_hot_threadlist $mthread}-->
  2.         <table border="0" width='100%' cellspacing="2">
  3.           <tr>
  4.             <td height="12" width='100%'><FONT face=Wingdings>z</FONT>  </font><a href="viewthread.php?tid=$mthread[tid]" $mthread['highlight'] title="热门话题 {LF}所在论坛: $mthread[forumname]{LF}主题标题: $mthread[subject]{LF}主题作者: $mthread[author]{LF}发表时间: $mthread[date]{LF}浏览次数: $mthread[views] 次{LF}回复次数: $mthread[replies] 次{LF}最后回复: $mthread[lastreplytime]{LF}{lang lastpost}: $mthread[lastposter]">$mthread[view_subject]</a></td>
复制代码
2、把相应的标题改掉--
  1.     <td class="header" width="25%" align="center"><b><img src={IMGDIR}/dot.gif BORDER=0>≡论坛精华≡</b></td>
复制代码
  1.     <td class="header" width="25%" align="center"><b><img src={IMGDIR}/dot.gif BORDER=0>≡热门话题≡</b></td>
复制代码
b、修改(已经改好的)index.php
将精华帖的代码
  1. //论坛精华//
  2. $hack_cut_str =28; //修改标题显示字数
  3. $hack_cut_strauthor = 9;
  4. $new_digest_threadlist = array();
  5. $dthread = array();
  6. $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 ORDER BY t.dateline DESC LIMIT 0, 10"); //修改显示帖子条数
  7. while($dthread = $db->fetch_array($query)) {
  8.         $dthread['forumname'] = $dthread['name'];
  9.         $dthread['view_subject'] = cutstr($dthread['subject'],$hack_cut_str);
  10.         $dthread['view_author'] = cutstr($dthread['author'],$hack_cut_strauthor);
  11.         $dthread['date']= gmdate("$dateformat $timeformat", $dthread['dateline'] + $timeoffset * 3600);
  12.         $dthread['lastreplytime']= gmdate("$dateformat $timeformat", $dthread[lastpost] + ($timeoffset * 3600));
  13.         if($dthread['highlight']) {
  14.                 $string = sprintf('%02d', $dthread['highlight']);
  15.                 $stylestr = sprintf('%03b', $string[0]);
  16.                 $dthread['highlight'] = 'style="';
  17.                 $dthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  18.                 $dthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  19.                 $dthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  20.                 $dthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  21.                 $dthread['highlight'] .= '"';
  22.         } else {
  23.                 $dthread['highlight'] = '';
  24.         }
  25.         $new_digest_threadlist[] = $dthread;
  26. }
  27. //论坛精华//
复制代码
替换为:
  1. //热帖
  2. $hack_cut_str = 30; //修改标题显示字数
  3. $hack_cut_strauthor = 10;
  4. $new_hot_threadlist = array();
  5. $mthread = array();
  6. $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|%' AND t.replies !=0 ORDER BY t.views DESC LIMIT 0, 10"); //修改显示帖子条数
  7. while($mthread = $db->fetch_array($query)) {
  8.         $mthread['forumname'] = ereg_replace('<[^>]*>','',$mthread['name']);
  9.         $mthread['view_subject'] = cutstr($mthread['subject'],$hack_cut_str);
  10.         $mthread['view_lastposter'] = cutstr($mthread['lastposter'],$hack_cut_strauthor);
  11. $mthread['date']= gmdate("$dateformat $timeformat", $mthread['dateline'] + $timeoffset * 3600);
  12.         $mthread['lastreplytime']= gmdate("$dateformat $timeformat", $mthread[lastpost] + ($timeoffset * 3600));
  13.         if($mthread['highlight']) {
  14.                 $string = sprintf('%02d', $mthread['highlight']);
  15.                 $stylestr = sprintf('%03b', $string[0]);
  16.                 $mthread['highlight'] = 'style="';
  17.                 $mthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  18.                 $mthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  19.                 $mthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  20.                 $mthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  21.                 $mthread['highlight'] .= '"';
  22.         } else {
  23.                 $mthread['highlight'] = '';
  24.         }
  25.         $new_hot_threadlist[] = $mthread;
  26. }
  27. //热帖,四格代码结束//
复制代码
或替换为受时间限制的热帖,
共有下面两步--
『同样是修改(已经改好的)index.php』:
  1. //热帖
  2. $hack_cut_str = 30; //修改标题显示字数
  3. $hack_cut_strauthor = 10;
  4. //热贴指定天数//
  5. $this_time= time();
  6. $sort_time = $today - ( 60*60*24*7); //括号最后一位数代表x天内
  7. $new_hot_threadlist = array();
  8. $mthread = array();
  9. $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|%' AND t.replies !=0 and t.dateline > $sort_time ORDER BY t.views DESC LIMIT 0, 10"); //修改显示帖子条数
  10. while($mthread = $db->fetch_array($query)) {
  11.         $mthread['forumname'] = ereg_replace('<[^>]*>','',$mthread['name']);
  12.         $mthread['view_subject'] = cutstr($mthread['subject'],$hack_cut_str);
  13.         $mthread['view_lastposter'] = cutstr($mthread['lastposter'],$hack_cut_strauthor);
  14. $mthread['date']= gmdate("$dateformat $timeformat", $mthread['dateline'] + $timeoffset * 3600);
  15.         $mthread['lastreplytime']= gmdate("$dateformat $timeformat", $mthread[lastpost] + ($timeoffset * 3600));
  16.         if($mthread['highlight']) {
  17.                 $string = sprintf('%02d', $mthread['highlight']);
  18.                 $stylestr = sprintf('%03b', $string[0]);
  19.                 $mthread['highlight'] = 'style="';
  20.                 $mthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  21.                 $mthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  22.                 $mthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  23.                 $mthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  24.                 $mthread['highlight'] .= '"';
  25.         } else {
  26.                 $mthread['highlight'] = '';
  27.         }
  28.         $new_hot_threadlist[] = $mthread;
  29. }
  30. //热帖,四格代码结束//
复制代码
再找到:
  1. $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
复制代码
在下面加入:
  1. $today  = mktime (0,0,0,date("m")  ,date("d"),date("Y"));
  2. $build_date = mktime (0,0,0,05,20,2006);//里面的三个数字,分别代表你论坛运行第一天的月,日,年。
  3. $build_days = (int)(($today-$build_date)/(24*3600));
复制代码
*************************************************************************************
指定调用(显示)主题的方法--
“我想把一些分区隐藏起来,不在最新话题和最新回复中显示出来, 应该怎么办呢?”
--请看下面就是解决办法。

**********************************************************************************
**指定调用(显示)主题的方法
**编码修改:bbji (atczyc)
**转载这个部分必须保留全部的版权信息
**********************************************************************************
修改(已经改好的)index.php,

1、找到“新帖”部分的:
  1. $hack_cut_strauthor = 10;
复制代码
下面加:
  1. $hack_forumid = "4,6,7,10,12,13,15,18,19,20,21,24,26,27,31,32,33,34,35";//要显示的论坛的fid.
复制代码
2、找到:
  1. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 10");
复制代码
将其替换为:
  1. //修改SQL语句,增加栏目过滤条件AND f.fid=$hack_forumid//
  2. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid
  3. AND f.fid in($hack_forumid)  ORDER BY t.dateline DESC LIMIT 0, 10");
复制代码
如果“最新回复”也要指定调用(显示)的,请继续:
1、找到“新回复”部分的:
  1. $hack_cut_strauthor = 10;
复制代码
在下面加:
  1. $hack_forumid = "4,6,7,10,12,13,15,18,19,20,21,24,26,27,31,32,33,34,35";//要显示的论坛的fid.
复制代码
2、找到:
  1. $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|%' AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 10");
复制代码
将其替换为:
  1. //修改SQL语句,增加栏目过滤条件AND f.fid=$hack_forumid//
  2. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid  
  3. AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND f.fid in($hack_forumid) ORDER BY t.lastpost DESC LIMIT 0, 10");
复制代码
什么?“热帖”那里也要改吗?那还要继续:
1、找到“热帖”部分的:
  1. $hack_cut_strauthor = 10;
复制代码
在下面加:
  1. $hack_forumid = "4,6,7,10,12,13,15,18,19,20,21,24,26,27,31,32,33,34,35";//要显示的论坛的fid.
复制代码
2、找到:
  1. $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|%' AND t.replies !=0 and t.dateline > $sort_time ORDER BY t.views DESC LIMIT 0, 10");
复制代码
将其更换为:
  1. $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|%' AND t.replies !=0 AND f.fid in($hack_forumid) and t.dateline > $sort_time ORDER BY t.views DESC LIMIT 0, 10"); //修改显示帖子条数
复制代码
其中,
  1. "4,6,7,10,12,13,15,18,19,20,21,24,26,27,31,32,33,34,35";//要显示的论坛的fid.
复制代码
里面的数字是你要显示的版块(论坛)的fid号,论坛主页用鼠标指向版块标题,在浏览器底下可以看见fid号;凡要显示的都要填上,不填的则不显示。

[ 本帖最后由 wlktom 于 2007-3-20 02:25 编辑 ]

评分

1

查看全部评分

回复

使用道具 举报

 楼主| wlktom 发表于 2007-3-13 14:07:15 | 显示全部楼层
图片演示

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

催化 发表于 2007-3-13 14:18:41 | 显示全部楼层
顶拉 ```要个位置
回复

使用道具 举报

催化 发表于 2007-3-13 14:19:35 | 显示全部楼层
听好 安装好了

[ 本帖最后由 催化 于 2007-8-25 01:37 编辑 ]
回复

使用道具 举报

softweek 发表于 2007-3-13 14:29:03 | 显示全部楼层
我用的不是你这个!:)
回复

使用道具 举报

奔跑记忆 发表于 2007-3-13 14:32:28 | 显示全部楼层
这个说不定需要
回复

使用道具 举报

ablebobo 发表于 2007-3-13 14:36:11 | 显示全部楼层
楼主能具体写个教程吗?不会啊
回复

使用道具 举报

graylife 发表于 2007-3-13 14:49:12 | 显示全部楼层
楼主.我想把点击查看的方式用弹出窗口的形式,要修改哪几处..谢谢
回复

使用道具 举报

facklong 发表于 2007-3-13 15:08:45 | 显示全部楼层
蛮好看。。。顶一个。。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-17 16:20 , Processed in 0.125872 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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