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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] <---- 主题显示略缩的作者头像---->

[复制链接]
Temoc 发表于 2006-10-5 20:53:36 | 显示全部楼层
这个img_s.php是不是要考虑分批处理?我的一执行就没有反应,最后提示找不到该页。


还有一个问题:如果会员更换了头像呢?能自动更新么?还有新用户的头像呢?
回复

使用道具 举报

Temoc 发表于 2006-10-5 21:27:45 | 显示全部楼层
up
回复

使用道具 举报

 楼主| freeher 发表于 2006-10-5 22:40:16 | 显示全部楼层
原帖由 Temoc 于 2006-10-5 20:53 发表
这个img_s.php是不是要考虑分批处理?我的一执行就没有反应,最后提示找不到该页。


还有一个问题:如果会员更换了头像呢?能自动更新么?还有新用户的头像呢?




img_s.php实际上是对论坛已经存在的头像进行略缩和创建目录。

如果你的头像数量很多的话,执行速度较慢。

如果是*nix主机,记得把下面的文件和文件夹改成 777

  • img_s.php 改成 777

  • ImageCore.php 改成 777

  • memcp.php 改成 777

  • 目录 customavatar/

  • 目录  customavatar/s/

  • 目录  images/avatars/

  • 目录  images/avatars/s


修改的主要是 memcp.php就是为会员上传头像做的准备。
回复

使用道具 举报

Temoc 发表于 2006-10-5 22:52:20 | 显示全部楼层
还是分批处理比较好一些
回复

使用道具 举报

Temoc 发表于 2006-10-6 00:09:32 | 显示全部楼层
还有个建议,因为在处理中有一些图片不能被GD库识别,从而不会生成缩略图(我在本地测试的时候证实),而且以后会员上传可能也会有这种情况。能不能从程序上解决如果没有生成缩略图则自动调用某缩略的头像?因为出现溢出也太……
回复

使用道具 举报

 楼主| freeher 发表于 2006-10-6 10:25:53 | 显示全部楼层
原帖由 Temoc 于 2006-10-6 00:09 发表
还有个建议,因为在处理中有一些图片不能被GD库识别,从而不会生成缩略图(我在本地测试的时候证实),而且以后会员上传可能也会有这种情况。能不能从程序上解决如果没有生成缩略图则自动调用某缩略的头像?因为 ...



只要保证存在 /bbs/images/avatars/s/noavatar.gif  就不会发生任何stock overflow 情况。  

实际上stock overflow 是由 img="onerror src=" 这句产生的。如果不想出现 stock overflow 。可以去掉。

[ 本帖最后由 freeher 于 2006-10-6 11:54 编辑 ]
回复

使用道具 举报

wind123 发表于 2006-10-6 11:48:32 | 显示全部楼层
用上了,确实不错,期待改进的更完美
回复

使用道具 举报

Temoc 发表于 2006-10-6 13:57:33 | 显示全部楼层

回复 #116 freeher 的帖子

tks~已经弄好了
回复

使用道具 举报

 楼主| freeher 发表于 2006-10-7 01:14:50 | 显示全部楼层
原帖由 aboutcms 于 2006-10-6 15:27 发表
可以加入到计划任务吗?如果可以,那太好了,只要每天更新一次就可以了


  和计划任务没有关系的。这个img_s.php只是针对已前上传过的头像和建立目录用的。

用户新上传的头像会自动生成缩图。不用执行这个文件了。
回复

使用道具 举报

mengxinxu99 发表于 2006-10-7 05:33:00 | 显示全部楼层
大爷的

我的怎么数据库出错了

郁闷

Discuz! info: MySQL Query Error

User: xiN
Time: 2006-10-7 5:33am
Script: /forumdisplay.php

SQL: SELECT t.*, mf.avatar FROM cdb_threads t
LEFT JOIN cdb_memberfields mf ON(mf.uid = t.authorid) LEFT JOIN cdb_posts b USING(tid, dateline)
WHERE t.fid='3' AND t.displayorder>=0
ORDER BY t.displayorder DESC, t.lastpost DESC
LIMIT 0, 20
Error: Unknown column 'db175614972.mf.dateline' in 'on clause'
程序文件跟数据库有冲突,请使用正确的程序文件上传上去覆盖

Similar error report has beed dispatched to administrator before



我原本的forumdisplay.php

  1. <?php

  2. /*
  3.         [Discuz!] (C)2001-2006 Comsenz Inc.
  4.         This is NOT a freeware, use is subject to license terms

  5.         $RCSfile: forumdisplay.php,v $
  6.         $Revision: 1.48.2.1 $
  7.         $Date: 2006/09/01 06:15:00 $
  8. */

  9. define('CURSCRIPT', 'forumdisplay');

  10. require_once './include/common.inc.php';
  11. require_once DISCUZ_ROOT.'./include/forum.func.php';

  12. $discuz_action = 2;

  13. if($forum['redirect']) {
  14.         header("Location: $forum[redirect]");
  15.         exit();
  16. }

  17. if(isset($showoldetails)) {
  18.         switch($showoldetails) {
  19.                 case 'no': dsetcookie('onlineforum', 0, 86400 * 365); break;
  20.                 case 'yes': dsetcookie('onlineforum', 1, 86400 * 365); break;
  21.         }
  22. } else {
  23.         $showoldetails = false;
  24. }

  25. if(!$forum['fid'] || $forum['type'] == 'group') {
  26.         showmessage('forum_nonexistence', NULL, 'HALTED');
  27. }

  28. if($forum['type'] == 'forum') {
  29.         $navigation = "&raquo; $forum[name]";
  30.         $navtitle = strip_tags($forum['name']);
  31. } else {
  32.         $forumup = $_DCACHE['forums'][$forum['fup']]['name'];
  33.         $navigation = "&raquo; <a href="forumdisplay.php?fid=$forum[fup]">$forumup</a> &raquo; $forum[name]";
  34.         $navtitle = strip_tags($forum['name']).' - '.strip_tags($forumup);
  35. }
  36. $navtitle .= ' - ';

  37. if($forum['password'] && $action == 'pwverify') {
  38.         if($pw != $forum['password']) {
  39.                 showmessage('forum_passwd_incorrect', NULL, 'HALTED');
  40.         } else {
  41.                 dsetcookie('fidpw'.$fid, $pw);
  42.                 showmessage('forum_passwd_correct', "forumdisplay.php?fid=$fid");
  43.         }
  44. }

  45. if($forum['rules']) {
  46.         if(empty($_COOKIE['discuz_collapse']) || strpos($_COOKIE['discuz_collapse'], 'rules_'.$forum['fid'].' ') === FALSE) {
  47.                 $rulescollapseimg = 'collapsed_no.gif';
  48.                 $collapserules = '';
  49.         } else {
  50.                 $rulescollapseimg = 'collapsed_yes.gif';
  51.                 $collapserules = 'display: none';
  52.         }
  53.         $forum['rules'] = nl2br($forum['rules']);
  54. }

  55. if($forum['viewperm'] && !forumperm($forum['viewperm']) && !$forum['allowview']) {
  56.         showmessage('forum_nopermission', NULL, 'NOPERM');
  57. }

  58. if(!empty($forum['password']) && $forum['password'] != $_DCOOKIE['fidpw'.$fid]) {
  59.         include template('forumdisplay_passwd');
  60.         exit();
  61. }

  62. $moderatedby = moddisplay($forum['moderators'], 'forumdisplay');

  63. if($forum['autoclose']) {
  64.         $closedby = $forum['autoclose'] > 0 ? 'dateline' : 'lastpost';
  65.         $forum['autoclose'] = abs($forum['autoclose']) * 86400;
  66. }

  67. $subexists = 0;
  68. foreach($_DCACHE['forums'] as $sub) {
  69.         if($sub['type'] == 'sub' && $sub['fup'] == $fid && (!$hideprivate || !$sub['viewperm'] || forumperm($sub['viewperm']) || strstr($sub['users'], "\t$discuz_uid\t"))) {
  70.                 $subexists = 1;
  71.                 $sublist = array();
  72.                 $sql = $accessmasks ? "SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, ff.description, ff.moderators, ff.icon, ff.viewperm, a.allowview FROM {$tablepre}forums f
  73.                                                 LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid
  74.                                                 LEFT JOIN {$tablepre}access a ON a.uid='$discuz_uid' AND a.fid=f.fid
  75.                                                 WHERE fup='$fid' AND status='1' AND type='sub' ORDER BY f.displayorder"
  76.                                         : "SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, ff.description, ff.moderators, ff.icon, ff.viewperm FROM {$tablepre}forums f
  77.                                                 LEFT JOIN {$tablepre}forumfields ff USING(fid)
  78.                                                 WHERE f.fup='$fid' AND f.status='1' AND f.type='sub' ORDER BY f.displayorder";
  79.                 $query = $db->query($sql);
  80.                 while($sub = $db->fetch_array($query)) {
  81.                         if(forum($sub)) {
  82.                                 $sub['orderid'] = count($sublist);
  83.                                 $sublist[] = $sub;
  84.                         }
  85.                 }
  86.                 break;
  87.         }
  88. }

  89. if($subexists && $forum['forumcolumns']) {
  90.         $forum['forumcolwidth'] = floor(100 / $forum['forumcolumns']).'%';
  91.         $forum['subscount'] = count($sublist);
  92.         $forum['endrows'] = '';
  93.         if($colspan = $forum['subscount'] % $forum['forumcolumns']) {
  94.                 while(($forum['forumcolumns'] - $colspan) > 0) {
  95.                         $forum['endrows'] .= '<td class="altbg2"></td>';
  96.                         $colspan ++;
  97.                 }
  98.                 $forum['endrows'] .= '</tr>';
  99.         }
  100. }

  101. $page = empty($page) || !ispage($page) || ($threadmaxpages && $page > $threadmaxpages) ? 1 : $page;
  102. $start_limit = ($page - 1) * $tpp;

  103. if($page == 1) {
  104.         if($_DCACHE['announcements_forum']) {
  105.                 $announcement = $_DCACHE['announcements_forum'];
  106.                 $announcement['starttime'] = gmdate($dateformat, $announcement['starttime'] + ($timeoffset * 3600));
  107.         } else {
  108.                 $announcement = NULL;
  109.         }
  110. }

  111. $forumdisplayadd = $filteradd = '';
  112. if(isset($filter)) {
  113.         if($filter == 'digest') {
  114.                 $forumdisplayadd .= '&amp;filter=digest';
  115.                 $filteradd = "AND digest>'0'";
  116.         } elseif($filter == 'type' && $forum['threadtypes']['listable'] && $typeid && isset($forum['threadtypes']['types'][$typeid])) {
  117.                 $forumdisplayadd .= "&amp;filter=type&amp;typeid=$typeid";
  118.                 $filteradd = "AND typeid='$typeid'";
  119.         } elseif(preg_match("/^\d+$/", $filter)) {
  120.                 $forumdisplayadd .= "&amp;filter=$filter";
  121.                 $filteradd = $filter ? "AND lastpost>='".($timestamp - $filter)."'" : '';
  122.         } elseif($filter == 'poll') {
  123.                 $forumdisplayadd .= "&amp;filter=$filter";
  124.                 $filteradd = 'AND special = 1';
  125.         } elseif($filter == 'trade') {
  126.                 $forumdisplayadd .= "&amp;filter=$filter";
  127.                 $filteradd = 'AND special = 2';
  128.         } elseif($filter == 'reward') {
  129.                 $forumdisplayadd .= "&amp;filter=$filter";
  130.                 $filteradd = 'AND special = 3';
  131.         } elseif($filter == 'activity') {
  132.                 $forumdisplayadd .= "&amp;filter=$filter";
  133.                 $filteradd = 'AND special = 4';
  134.         } else {
  135.                 $filter = '';
  136.         }
  137. } else {
  138.         $filter = '';
  139. }

  140. isset($orderby) && in_array($orderby, array('dateline', 'replies', 'views')) ? $forumdisplayadd .= "&amp;orderby=$orderby" : $orderby = 'lastpost';
  141. isset($ascdesc) && $ascdesc == 'ASC' ? $forumdisplayadd .= '&amp;ascdesc=ASC' : $ascdesc = 'DESC';

  142. $dotadd1 = $dotadd2 = '';
  143. if($dotfolders && $discuz_uid) {
  144.         $dotadd1 = 'DISTINCT p.authorid AS dotauthor, ';
  145.         $dotadd2 = "LEFT JOIN {$tablepre}posts p ON (t.tid=p.tid AND p.authorid='$discuz_uid')";
  146. }

  147. if($whosonlinestatus == 2 || $whosonlinestatus == 3) {
  148.         $whosonlinestatus = 1;
  149.         $onlineinfo = explode("\t", $onlinerecord);
  150.         $detailstatus = ((!isset($_DCOOKIE['onlineforum']) && $onlineinfo[0] < 500) || (!empty($_DCOOKIE['onlineforum']) || $showoldetails == 'yes')) && $showoldetails != 'no';

  151.         if($detailstatus) {
  152.                 updatesession();
  153.                 @include language('actions');
  154.                 $whosonline = array();
  155.                 $forumname = strip_tags($forum['name']);
  156.                 $guestwhere = isset($_DCACHE['onlinelist'][7]) ? '' : "uid>'0' AND";

  157.                 $query = $db->query("SELECT uid, groupid, username, invisible, lastactivity, action FROM {$tablepre}sessions WHERE $guestwhere fid='$fid' AND invisible='0'");
  158.                 if($db->num_rows($query)) {
  159.                         $whosonlinestatus = 1;
  160.                         while($online = $db->fetch_array($query)) {
  161.                                 if($online['uid']) {
  162.                                         $online['icon'] = isset($_DCACHE['onlinelist'][$online['groupid']]) ? $_DCACHE['onlinelist'][$online['groupid']] : $_DCACHE['onlinelist'][0];
  163.                                         $online['action'] = $actioncode[$online['action']];
  164.                                         $online['lastactivity'] = gmdate($timeformat, $online['lastactivity'] + ($timeoffset * 3600));
  165.                                         $whosonline[] = $online;
  166.                                 } else {
  167.                                         if(isset($_DCACHE['onlinelist'][7])) {
  168.                                                 $online['icon'] = $_DCACHE['onlinelist'][7];
  169.                                                 $online['username'] = 'Guest';
  170.                                                 $online['fid'] = $online['fid'] ? $forumname[$online['fid']] : 0;
  171.                                                 $online['action'] = $actioncode[$online['action']];
  172.                                                 $online['lastactivity'] = gmdate($timeformat, $online['lastactivity'] + ($timeoffset * 3600));
  173.                                                 $whosonline[] = $online;
  174.                                         }
  175.                                 }
  176.                         }
  177.                 }
  178.                 unset($online);
  179.         }
  180. } else {
  181.         $whosonlinestatus = 0;
  182. }

  183. if($discuz_uid && $newpm) {
  184.         require_once DISCUZ_ROOT.'./include/pmprompt.inc.php';
  185. }

  186. if(empty($filter)) {
  187.         $threadcount = $forum['threads'];
  188. } else {
  189.         $query = $db->query("SELECT COUNT(*) FROM {$tablepre}threads WHERE fid='$fid' $filteradd AND displayorder>='0'");
  190.         $threadcount = $db->result($query, 0);
  191. }
  192. if($globalstick) {
  193.         $thisgid = $forum['type'] == 'forum' ? $forum['fup'] : $_DCACHE['forums'][$forum['fup']]['fup'];
  194.         $stickytids = $_DCACHE['globalstick']['global']['tids'].(empty($_DCACHE['globalstick']['categories'][$thisgid]['count']) ? '' : ','.$_DCACHE['globalstick']['categories'][$thisgid]['tids']);

  195.         $stickycount = $_DCACHE['globalstick']['global']['count'] + $_DCACHE['globalstick']['categories'][$thisgid]['count'];
  196. } else {
  197.         $thisgid = $stickycount = $stickytids = 0;
  198. }

  199. $filterbool = !empty($filter) && in_array($filter, array('digest', 'type', 'activity', 'poll', 'trade', 'reward'));
  200. $threadcount += $filterbool ? 0 : $stickycount;
  201. $multipage = multi($threadcount, $tpp, $page, "forumdisplay.php?fid=$fid$forumdisplayadd", $threadmaxpages);
  202. $extra = rawurlencode("page=$page$forumdisplayadd");

  203. $separatepos = 0;
  204. $threadlist = array();
  205. $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');

  206. $displayorderadd = !$filterbool && $stickycount ? 't.displayorder IN (0, 1)' : 't.displayorder>=0';

  207. if(($start_limit && $start_limit > $stickycount) || !$stickycount || $filterbool) {

  208.         $querysticky = '';
  209.         $query = $db->query("SELECT $dotadd1 t.*, b.message FROM {$tablepre}threads t $dotadd2 LEFT JOIN {$tablepre}posts b USING(tid, dateline)
  210. WHERE t.fid='$fid' $filteradd AND $displayorderadd
  211.                 ORDER BY t.displayorder DESC, t.$orderby $ascdesc
  212.                 LIMIT ".($filterbool ? $start_limit : $start_limit - $stickycount).", $tpp");

  213. } else {

  214.         $querysticky = $db->query("SELECT $dotadd1 t.*, b.message FROM {$tablepre}threads t $dotadd2 LEFT JOIN {$tablepre}posts b USING(tid, dateline)
  215. WHERE t.tid IN ($stickytids) AND t.displayorder IN (2, 3)
  216.                 ORDER BY displayorder DESC, $orderby $ascdesc
  217.                 LIMIT $start_limit, ".($stickycount - $start_limit < $tpp ? $stickycount - $start_limit : $tpp));

  218.         if($tpp - $stickycount + $start_limit > 0) {
  219.                 $query = $db->query("SELECT $dotadd1 t.*, b.message FROM {$tablepre}threads t $dotadd2 LEFT JOIN {$tablepre}posts b USING(tid, dateline)
  220. WHERE t.fid='$fid' $filteradd AND $displayorderadd
  221.                         ORDER BY displayorder DESC, $orderby $ascdesc
  222.                         LIMIT ".($tpp - $stickycount + $start_limit));
  223.         } else {
  224.                 $query = '';
  225.         }

  226. }

  227. $ppp = $forum['threadcaches'] ? $_DCACHE['settings']['postperpage'] : $ppp;

  228. while(($querysticky && $thread = $db->fetch_array($querysticky)) || ($query && $thread = $db->fetch_array($query))) {
  229.         $thread['icon'] = isset($_DCACHE['icons'][$thread['iconid']]) ? '<img src="'.SMDIR.'/'.$_DCACHE['icons'][$thread['iconid']].'" alt="" />' : '&nbsp;';
  230.         $thread['lastposterenc'] = rawurlencode($thread['lastposter']);

  231.         $thread['typeid'] = $thread['typeid'] && !empty($forum['threadtypes']['prefix']) && isset($forum['threadtypes']['types'][$thread['typeid']]) ?
  232.                 '['.$forum['threadtypes']['types'][$thread['typeid']].'] ' : '';
  233.                         $thread[message] = cutstr($thread[message],200);

  234.         $topicposts = $thread['replies'] + 1;
  235.         if($topicposts > $ppp) {
  236.                 $pagelinks = '';
  237.                 $topicpages = ceil($topicposts / $ppp);
  238.                 for($i = 1; $i <= $topicpages; $i++) {
  239.                         $pagelinks .= "<a href="viewthread.php?tid=$thread[tid]&amp;extra=$extra&amp;page=$i">$i</a> ";
  240.                         if($i == 6) {
  241.                                 $i = $topicpages + 1;
  242.                         }
  243.                 }
  244.                 if($topicpages > 6) {
  245.                         $pagelinks .= " .. <a href="viewthread.php?tid=$thread[tid]&amp;page=$topicpages&amp;extra=$extra">$topicpages</a> ";
  246.                 }
  247.                 $thread['multipage'] = ' &nbsp;<img src="'.IMGDIR.'/multipage.gif"  border="0" alt="" /> '.$pagelinks;
  248.         } else {
  249.                 $thread['multipage'] = '';
  250.         }

  251.         if($thread['highlight']) {
  252.                 $string = sprintf('%02d', $thread['highlight']);
  253.                 $stylestr = sprintf('%03b', $string[0]);

  254.                 $thread['highlight'] = ' style="';
  255.                 $thread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  256.                 $thread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  257.                 $thread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  258.                 $thread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  259.                 $thread['highlight'] .= '"';
  260.         } else {
  261.                 $thread['highlight'] = '';
  262.         }

  263.         $thread['moved'] = 0;
  264.         if($thread['closed'] || ($forum['autoclose'] && $timestamp - $thread[$closedby] > $forum['autoclose'])) {
  265.                 $thread['new'] = 0;
  266.                 if($thread['closed'] > 1) {
  267.                         $thread['moved'] = $thread['tid'];
  268.                         $thread['tid'] = $thread['closed'];
  269.                         $thread['replies'] = '-';
  270.                         $thread['views'] = '-';
  271.                 }
  272.                 $thread['folder'] = 'lock_folder.gif';
  273.         } else {
  274.                 $thread['folder'] = 'folder.gif';
  275.                 if($lastvisit < $thread['lastpost'] && (empty($_DCOOKIE['oldtopics']) || strpos($_DCOOKIE['oldtopics'], 'D'.$thread['tid'].'D') === FALSE)) {
  276.                         $thread['new'] = 1;
  277.                         $thread['folder'] = 'red_'.$thread['folder'];
  278.                 } else {
  279.                         $thread['new'] = 0;
  280.                 }
  281.                 if($thread['replies'] > $thread['views']) {
  282.                         $thread['views'] = $thread['replies'];
  283.                 }
  284.                 if($thread['replies'] >= $hottopic) {
  285.                         $thread['folder'] = 'hot_'.$thread['folder'];
  286.                 }
  287.                 if($dotfolders && $thread['dotauthor'] == $discuz_uid && $discuz_uid) {
  288.                         $thread['folder'] = 'dot_'.$thread['folder'];
  289.                 }
  290.         }

  291.         $thread['dateline'] = gmdate($dateformat, $thread['dateline'] + $timeoffset * 3600);
  292.         $thread['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);

  293.         if($thread['displayorder'] > 0) {
  294.                 $separatepos++;
  295.         }

  296.         $threadlist[] = $thread;

  297. }

  298. $separatepos = $separatepos ? $separatepos + 1 : ($announcement ? 1 : 0);

  299. $check = array();
  300. $check[$filter] = $check[$orderby] = $check[$ascdesc] = 'selected="selected"';

  301. $visitedforums = $visitedforums ? visitedforums() : '';
  302. $forumselect = $forummenu = '';
  303. if($forumjump && empty($jsmenu[1])) {
  304.         $forumselect = forumselect();
  305. }
  306. $typeselect = typeselect($typeid);

  307. $usesigcheck = $discuz_uid && $sigstatus ? 'checked' : '';
  308. $allowpost = (!$forum['postperm'] && $allowpost) || ($forum['postperm'] && forumperm($forum['postperm'])) || !empty($forum['allowpost']);

  309. $showpoll = $showtrade = $showreward = $showactivity = 0;
  310. if($forum['allowpostspecial']) {
  311.         $showpoll = substr(sprintf('%04b', $forum['allowpostspecial']), -1, 1);
  312.         $showtrade = substr(sprintf('%04b', $forum['allowpostspecial']), -2, 1);
  313.         $showreward = substr(sprintf('%04b', $forum['allowpostspecial']), -3, 1) && isset($extcredits[$creditstrans]);
  314.         $showactivity = substr(sprintf('%04b', $forum['allowpostspecial']), -4, 1);
  315. }

  316. if($allowpost) {
  317.         $allowpostpoll = $allowpostpoll && $showpoll;
  318.         $allowposttrade = $allowposttrade && $showtrade;
  319.         $allowpostreward = $allowpostreward && $showreward && isset($extcredits[$creditstrans]);
  320.         $allowpostactivity = $allowpostactivity && $showactivity;
  321. }

  322. $searchboxstatus = substr(sprintf('%03b', $qihoo_searchbox), -2, 1);

  323. if($fastpost && $allowpost) {
  324.         $editorid = 'fastpost';
  325.         $smcols = $smcols ? $smcols : 4;
  326.         $smileyinsert = $smileyinsert && is_array($_DCACHE['smilies_display']) ? 1 : 0;
  327.         $smilies = $smileyinsert ? smiliestable($_DCACHE['smilies_display'], $smcols, 4, $editorid) : '';
  328.         $moresmilies = $smileyinsert && count($_DCACHE['smilies_display']) > $smcols * 4 ? 1 : 0;
  329. }

  330. $threadsticky = explode(',', $threadsticky);

  331. $forumselect = $forummenu = '';
  332. if($forumjump) {
  333.         if($jsmenu[1]) {
  334.                 $forummenu = forumselect(FALSE, 1);
  335.         } else {
  336.                 $forumselect = forumselect();
  337.         }
  338. }

  339. include template('forumdisplay');

  340. ?>
复制代码

[ 本帖最后由 mengxinxu99 于 2006-10-7 05:36 编辑 ]
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-23 07:31 , Processed in 0.027694 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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