我已经解决了! 现在把修改方法分析给各位 看我的 去滑雪网 http://www.quhuaxue.com/show.php
我的版本 GBK X2.0
第一步:在show.php中找到如下代码,将红色标示部分全部删去
$rs=DB::query("SELECT t.*,p.message,mf.customstatus,mf.medals,c.collection
FROM ".DB::table("forum_thread")." t
JOIN ".DB::table("forum_post")." p on t.tid=p.tid and p.first=1
LEFT JOIN ".DB::table('common_member_field_forum')." mf on mf.uid=t.authorid
left join ".DB::table("forum_collectionrelated")." c on t.tid=c.tid
where t.fid in ($dyfids) and $whereadd and t.displayorder>=0
ORDER BY t.displayorder desc, $orderby
LIMIT $begin , $pagenum");
while ($rw=DB::fetch($rs)){
$rw['medals'] = explode("\t",$rw['medals']);
$rw['lastpost'] = date('Y-m-d H:i',$rw['lastpost']);
$rw['lastposterenc'] = urlencode($rw['lastposter']);
$rw['dateline'] = date('Y-m-d H:i',$rw['dateline']);
$rw['authorface'] = avatar($rw['authorid'],'small',1);
$rw['message'] = messagecutstr($rw['message'],$threadlength);
$rw['releatcollectionnum'] = $rw['collection']?substr_count($rw['collection'],"\t")+1:0;
第二步:打开template中的index_index.htm 把一下部分代码删掉。
<!--{if !$_G['forum']['disablecollect'] && helper_access::check_module('collection')}-->
<a href="forum.php?mod=collection&action=edit&op=addthread&tid=$thread[tid]" id="k_collect" style="background:none; padding-left:0px;">淘帖<sup><span id="collectionnumber">{$thread[releatcollectionnum]}</span></sup></a>
<!--{/if}-->
大功告成!X2.0也能用了! |