2007-11-18 16:51
edo
問題=.=!
問題一
1.投票的棒棒圖是不是未修正?
問題二
最新討論那個我用回i_threadlist
[code]
<!--{loop $_DCACHE['newthread'] $toploop}-->
<!--{eval $toploopt[dateline] = make_descriptive_time($toploop[lastpost]);}-->
<!--{eval $toploopt[author] = rawurlencode($toploop[author]);}-->
<!--{eval $name_color = rand_color();}-->
<tr><td align="left"><span class="tip_i"> <img src="$toploop[avatar]" alt="$toploop[author]" align="absmiddle" height="16" width="16" class="portrait" /> <a href="profile-username-$toploopt[author].html" style="color: $name_color;" class="var">$toploop[author]</a> ... <a href="go/$toploop[board_name]">$toploop[name]</a> ... [ <a href="viewthread.php?tid=$toploop[tid]" style="color: $toploop[csscolor];" class="var">$toploop[subjectc]</a> ] ... $toploopt[dateline],$toploop[replies]回復</span></td></tr><!--{/loop}-->
[/code]
但怎樣用這個:
如果有私人板块不希望出现在帖子列表中,请修改include/cache.func.php的$disinit变量
,,,即不希望私人板块出现在最新討論的帖子列表中。
-----------
include/cache.func.php好像修改了很多=.=!不懂改呢
來幫幫~謝!
2007-11-18 17:29
Sai
1.恩
2.找到[code]$conditions = "LEFT JOIN {$tablepre}forums f ON f.fid=t.fid LEFT JOIN {$tablepre}memberfields mf ON mf.uid=t.authorid WHERE t.displayorder!='-1' ORDER BY t.lastpost DESC LIMIT 0, 20";[/code]改成[code]$conditions = "LEFT JOIN {$tablepre}forums f ON f.fid=t.fid LEFT JOIN {$tablepre}memberfields mf ON mf.uid=t.authorid WHERE t.displayorder!='-1' {$disinit} ORDER BY t.lastpost DESC LIMIT 0, 20";[/code]在按格式修改$disinit即可
还有ParasySettings.inc.php中也有一处权限设置
2007-11-18 17:40
edo
兩段有什麼不同=.=?
用了原本那個,解決了,,謝謝你!
[code] $cols = 't.tid, t.fid, t.author,t.subject, t.dateline, t.lastpost, t.lastposter, t.views, t.replies,f.name,f.board_name, mf.avatar';
$conditions = "LEFT JOIN {$tablepre}forums f ON f.fid=t.fid LEFT JOIN {$tablepre}memberfields mf ON mf.uid=t.authorid WHERE t.displayorder!='-1' and f.fid!='72'and f.fid!='73'and f.fid!='76'and f.fid!='49'and f.fid!='67'and f.fid!='74'and f.fid!='77'and f.fid!='46' and f.fid!='6'and f.fid!='25'and f.fid!='51'and f.fid!='26'and f.fid!='64' ORDER BY t.lastpost DESC LIMIT 0, 20";[/code]
[[i] 本帖最后由 edo 于 2007-11-18 17:54 编辑 [/i]]