返回列表 发帖

本站有改动的文件

include/index_classics.inc.php

查找
  1. $Id: index_classics.inc.php 84 2009-09-27 05:16:12Z houning@21cn.com $
复制代码
替换
  1. $Id: index_classics.inc.php 21018 2009-11-06 06:57:53Z wangjinbo $
复制代码
查找
  1.                         "SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, f.inheritedmod, f.forumcolumns, f.simple, ff.description, ff.moderators, ff.icon, ff.viewperm, ff.redirect, a.allowview FROM {$tablepre}forums f
  2.                                         LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid
  3.                                         LEFT JOIN {$tablepre}access a ON a.uid='$discuz_uid' AND a.fid=f.fid
  4.                                         WHERE f.status='1' ORDER BY f.type, f.displayorder"
  5.                                 : "SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, f.inheritedmod, f.forumcolumns, f.simple, ff.description, ff.moderators, ff.icon, ff.viewperm, ff.redirect FROM {$tablepre}forums f
  6.                                         LEFT JOIN {$tablepre}forumfields ff USING(fid)
  7.                                         WHERE f.status='1' ORDER BY f.type, f.displayorder";
复制代码
替换
  1.                         "SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, f.inheritedmod, f.forumcolumns, f.simple, ff.description, ff.moderators, ff.icon, ff.viewperm, ff.redirect, ff.extra, a.allowview FROM {$tablepre}forums f
  2.                                         LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid
  3.                                         LEFT JOIN {$tablepre}access a ON a.uid='$discuz_uid' AND a.fid=f.fid
  4.                                         WHERE f.status>'0' ORDER BY f.type, f.displayorder"
  5.                                 : "SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, f.inheritedmod, f.forumcolumns, f.simple, ff.description, ff.moderators, ff.icon, ff.viewperm, ff.redirect, ff.extra FROM {$tablepre}forums f
  6.                                         LEFT JOIN {$tablepre}forumfields ff USING(fid)
  7.                                         WHERE f.status>'0' ORDER BY f.type, f.displayorder";
复制代码
查找
  1. $forumname[$forum['fid']] = strip_tags($forum['name']);
复制代码
下面一行添加
  1.         $forum['extra'] = unserialize($forum['extra']);
  2.                 if(!is_array($forum['extra'])) {
  3.                         $forum['extra'] = array();
  4.                 }
复制代码
<-sina_sign,1563350007,6c2e04f9,7->?   本站地址 http://www.nipe.tk   会员QQ交流群: 25704611
?  QQ:43675770 E-mail:admin@51jling.cn 社区短信:点击这里给我发论坛短信
?  不能正常播放电影,请从官方下载最新flash播放器!
?  尊重发帖者,请看帖回贴!您的支持使我们最大的动力!
本人枪法淫荡,意识下流,走位风骚!!经验丰富,枪法好;一流雇佣兵,帮拉登按过雷,教萨达姆打过枪,5V5一般留4人在家打麻将,我一人出去搞定;超级杀人狂,比赛每小局杀7-8人(有些近视,所以误伤是难免的嘛^_^)

TOP

本站的帖子列表页显示头像

forumdisplay.htm

查找
  1. <td class="author">
复制代码
下面添加
  1.                                                         <!--头像显示 start-->
  2.                     <div style="float:left;width:28px;padding-top:4px;">
  3.                                         <img src="uc/avatar.php?uid=$thread[authorid]&size=small" class="ava_border" width="25px" height="25px" style="border:1px solid #ccc; padding:2px; margin:0px; background-color:#fff;" />
  4.                                                                                 </div>
  5.                     <div style="float:left;padding:2px 0px 0px 6px;">
复制代码
查找
  1. <em>$thread[dateline]</em>
复制代码
下面添加
  1.                                         </div>
  2.                              <!--头像显示 end-->
复制代码
css_append.htm
最后面添加
  1. td.author { width: 150px; text-align: left; }
复制代码
如果多个风格每个都要改
<-sina_sign,1563350007,6c2e04f9,7->?   本站地址 http://www.nipe.tk   会员QQ交流群: 25704611
?  QQ:43675770 E-mail:admin@51jling.cn 社区短信:点击这里给我发论坛短信
?  不能正常播放电影,请从官方下载最新flash播放器!
?  尊重发帖者,请看帖回贴!您的支持使我们最大的动力!
本人枪法淫荡,意识下流,走位风骚!!经验丰富,枪法好;一流雇佣兵,帮拉登按过雷,教萨达姆打过枪,5V5一般留4人在家打麻将,我一人出去搞定;超级杀人狂,比赛每小局杀7-8人(有些近视,所以误伤是难免的嘛^_^)

TOP

本站的首页横排效果

修改较多,所以大段替换了,具体慢慢修改
discuz.htm
查找
  1.                                                         <th$forum[folder]>
  2.                                                                 $forum[icon]
  3.                                                                 <div class="left">
  4.                                                                 <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
  5.                                                                 <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
  6.                                                                 <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  7.                                                                 <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p>{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" onmouseover="showMenu({'ctrlid':this.id})">{lang forum_moderators}</span><ul class="popupmenu_popup headermenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{/if}-->
  8.                                                                 </div>
  9.                                                         </th>
  10.                                                         <td class="forumnums">
  11.                                                                 <!--{if $forum['redirect']}-->N/A<!--{else}--><em>$forum[threads]</em> / $forum[posts]<!--{/if}-->
  12.                                                         </td>
  13.                                                         <td class="forumlast">
  14.                                                         <!--{if $forum['permission'] == 1}-->
  15.                                                                 {lang private_forum}
  16.                                                         <!--{else}-->
  17.                                                                 <!--{if $forum['redirect']}-->
  18.                                                                         <a href="forumdisplay.php?fid=$forum[fid]">{lang url_link}</a>
  19.                                                                 <!--{elseif is_array($forum['lastpost'])}-->
  20.                                                                         <p><a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 30)}</a></p>
  21.                                                                         <cite><!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
  22.                                                                 <!--{else}-->
  23.                                                                         {lang never}
  24.                                                                 <!--{/if}-->
  25.                                                         <!--{/if}-->
  26.                                                         </td>
  27.                                                 </tr>
  28.                                         </tbody>
  29.                                 <!--{/loop}-->
  30.                         <!--{else}-->
  31.                                 <tr class="narrowlist">
  32.                                 <!--{loop $cat['forums'] $forumid}-->
  33.                                         <!--{eval $forum=$forumlist[$forumid];}-->
  34.                                         <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  35.                                                 </tr></tbody>
  36.                                                 <!--{if $forum['orderid'] < $cat['forumscount']}-->
  37.                                                         <tbody><tr>
  38.                                                 <!--{/if}-->
  39.                                         <!--{/if}-->
  40.                                         <th width="$cat[forumcolwidth]"{$forum[folder]}>
  41.                                                 <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if}>$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
  42.                                                 <!--{if !$forum[redirect]}-->
  43.                                                         <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
  44.                                                         <!--{if $forum['permission'] == 1}-->
  45.                                                                 <p>{lang private_forum}
  46.                                                         <!--{else}-->
  47.                                                                 <p>{lang forum_lastpost}:
  48.                                                                         <!--{if is_array($forum['lastpost'])}-->
  49.                                                                                 <a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if}  ">$forum[lastpost][dateline]</a>
  50.                                                                         <!--{else}-->
  51.                                                                                 {lang never}
  52.                                                                         <!--{/if}-->
  53.                                                                 </p>
  54.                                                         <!--{/if}-->
  55.                                                 <!--{else}-->
  56.                                                         <p>{lang url_link}</p>
  57.                                                 <!--{/if}-->
  58.                                         </th>
  59.                                 <!--{/loop}-->
  60.                                 $cat['endrows']
  61.                         <!--{/if}-->
  62.                         </table>
复制代码
替换
  1.                                                         <td>
  2.                                                         $forum[icon]
  3.                                                         <div class="left">
  4.                                                         <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank" {/if}>$forum[name]</a> <font class="smalltext"><!--{if $forum[todayposts]}-->T: <font color="#FF3399">$forum[todayposts]</font><img src="{IMGDIR}/new.gif" align="absmiddle"><!--{else}-->T: <font color="#FF3399">0</font><!--{/if}--> P: <font color="#00CCFF">$forum[threads]</font> R: <font color="#99CC00">$forum[posts]</font></font> <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><img src="{IMGDIR}/moderator.gif" title="论坛版主" onclick="toggle_collapse('coll_1');" style="cursor:pointer" /> <em class="moderators" id="coll_1" style="display:none">$forum[moderators]</em><!--{/if}--><!--{/if}-->
  5.                                                         </h2>
  6.                                                         <!--{if $forum[description]}-->
  7.                                                         <p>$forum[description]</p>
  8.                                                         <!--{/if}-->
  9.                                                         <!--{if $forum['subforums']}-->
  10.                                                         <p>{lang forum_subforums}: $forum['subforums']</p>
  11.                                                         <!--{/if}-->
  12.                                                         </div>
  13.                                                         </td>
  14.                                                         <th class="forumlast"{$forum[folder]}>
  15.                                                         <!--{if $forum['permission'] == 1}-->
  16.                                                         {lang private_forum}
  17.                                                         <!--{else}-->
  18.                                                         <!--{if $forum['redirect']}-->
  19.                                                         <a href="forumdisplay.php?fid=$forum[fid]">{lang url_link}</a>
  20.                                                         <!--{elseif is_array($forum['lastpost'])}-->
  21.                                                         <p> <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 26)}</a>
  22.                                                         </p>
  23.                                                         <cite><!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]
  24.                                                         </cite>
  25.                                                         <!--{else}-->
  26.                                                         {lang never}
  27.                                                         <p>{lang never}</p>
  28.                                                         <!--{/if}-->
  29.                             <!--{/if}-->
  30.                                                         </td>
  31.                                                         </tr>
  32.                                                         </tbody>
  33.                                 <!--{/loop}-->
  34.                         <!--{else}-->
  35.                         <tr class="narrowlist">
  36.                         <!--{loop $cat['forums'] $forumid}-->
  37.                 <!--{eval $forum=$forumlist[$forumid];}-->
  38.                                 <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  39.                         </tr></tbody>
  40.                                         <!--{if $forum['orderid'] < $cat['forumscount']}-->
  41.                                         <tbody>
  42.                                                 <tr>
  43.                                                 <!--{/if}-->
  44.                                                         <!--{/if}-->
  45.                                                         <td width="$cat[forumcolwidth]" style="vertical-align: top; background-image: none; padding:8px !important;">
  46.                                                                 <div style="width:100%; clear:both;">$forum[icon]
  47.                                                                         <div style="float:left; "><h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank" {/if}>$forum[name]</a></h2>
  48.                                         <!--{if $forum[todayposts]}-->
  49.                                         <p>今日发帖:
  50.                                         <font color="#FF3399">$forum[todayposts]</font><img src="{IMGDIR}/new.gif" align="absmiddle">
  51.                                         <!--{else}-->
  52.                                         今日发帖: <font color="#FF3399">0</font>
  53.                                         <!--{/if}-->
  54.                                         主题: <font color="#00CCFF">$forum[threads]</font>
  55.                                         回复: <font color="#99CC00">$forum[posts]</font>
  56.                                         </p>
  57.                                                                         </div>
  58.                                                                         <div style="float:right; ">
  59.                                                                                 <!--{if $forum['moderators']}-->
  60.                                                                                 <span class="dropmenu" id="mod$forum[fid]" onmouseover="showMenu({'ctrlid':this.id})"><img src="{IMGDIR}/moderator.gif" />
  61.                                                                                 </span>
  62.                                                                                 <ul class="popupmenu_popup headermenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]
  63.                                                                                 </ul>
  64.                                                                                 <!--{/if}-->
  65.                                                                                 <!--{if $forum[todayposts]}-->
  66.                                                                                 <!--{else}-->
  67.                                                                                 <!--{/if}-->
  68.                                                                         </div>
  69.                                                                 </div>
  70.                                         <ul style="background-image: url(images/listbg_li.gif); padding:1px 2px 0px 10px; list-style-type: none; line-height: 20px; clear: both; margin:8px 0; ">
  71.                                         <!--{loop ${"new_no".$forum[fid]."_threadlist"} $row}-->
  72.                                         <div style="overflow: hidden; height:20px; width:100%"><small style="float:right; color:#9C8B88; margin: 0 0 0 5px">$row['date']</small><a href="viewthread.php?tid=$row[tid]" title="$row[subject]" target='_self'>$row[view_subject]</a>
  73.                                         </div>
  74.                                         <!--{/loop}-->
  75.                                         </ul>
  76.                                         <!--{if $forum['subforums']}-->
  77.                                         <div style="width:100%;"><img src="images/subforums.gif" align="absmiddle"> 本版还有以下精彩{lang forum_subforums}: $forum['subforums']</div>
  78.                                         <!--{/if}-->                                       
  79.                                         <!--{if $forum[description]}-->
  80.                                         <div style="width:100%; clear:both;"><b>版块简介:</b>$forum[description]</div>
  81.                                         <!--{/if}-->                                                                               
  82.                                         </td>
  83.                         <!--{/loop}-->
  84.                         $cat['endrows']
  85.                         <!--{/if}-->
  86.                         </table>
复制代码
查找
  1. $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
复制代码
下面添加
  1. //帖子调用开始
  2. $hack_cut_str =60; // 这里修改标题长度
  3. $fids = array();
  4. if (file_exists("./forumdata/cache/cache_forums.php")){
  5.         require_once "./forumdata/cache/cache_forums.php";
  6.         if (is_array($_DCACHE['forums'])){
  7.                 foreach ($_DCACHE['forums'] as $k => $v){
  8.                         if (!strstr(',sub,forum,',','.$v['type'].',')) continue;
  9.                         $fids[$k] = 6; // 这里是第一处调用条数需要和后面的设置一样。
  10.                 }
  11.         }
  12. }
  13. if (count($fids) < 1){
  14.         $query = $db->query("SELECT fid FROM {$tablepre}forums WHERE type='forum' OR type='sub'");
  15.         while ($row = $db->fetch_array($query)){
  16.                 $fids[$row['fid']] = 6; // 这里是第二处调用条数需要和前面的设置一样。
  17.         }
  18. }
  19. $limit_counts = 0;

  20. foreach ($fids as $k => $v){
  21.         $sql .= "(SELECT t.*, f.name FROM {$tablepre}threads t LEFT JOIN {$tablepre}forums f ON f.fid = t.fid WHERE t.fid='$k' ORDER BY t.dateline DESC LIMIT $v) UNION ";
  22. }
  23. if ($sql){
  24.         $sql = substr($sql,0,strlen($sql)-6);
  25. }
  26. $query = $db->query($sql);
  27. while ($row = $db->fetch_array($query)){
  28.         $row['view_subject'] = cutstr($row['subject'],$hack_cut_str);
  29.         $row['date']= gmdate("$dateformat", $row['dateline'] + $timeoffset * 3600);
  30.         if($row['highlight']) {
  31.                         $string = sprintf('%02d', $row['highlight']);
  32.                         $stylestr = sprintf('%03b', $string[0]);
  33.                         $row['highlight'] = 'style="';
  34.                         $row['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  35.                         $row['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  36.                         $row['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  37.                         $row['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  38.                         $row['highlight'] .= '"';
  39.         } else {
  40.                         $row['highlight'] = '';
  41.         }
  42.         ${'new_no'.$row['fid'].'_threadlist'}[] = $row;
  43. }
  44. //帖子调用结束
复制代码
<-sina_sign,1563350007,6c2e04f9,7->?   本站地址 http://www.nipe.tk   会员QQ交流群: 25704611
?  QQ:43675770 E-mail:admin@51jling.cn 社区短信:点击这里给我发论坛短信
?  不能正常播放电影,请从官方下载最新flash播放器!
?  尊重发帖者,请看帖回贴!您的支持使我们最大的动力!
本人枪法淫荡,意识下流,走位风骚!!经验丰富,枪法好;一流雇佣兵,帮拉登按过雷,教萨达姆打过枪,5V5一般留4人在家打麻将,我一人出去搞定;超级杀人狂,比赛每小局杀7-8人(有些近视,所以误伤是难免的嘛^_^)

TOP

返回列表