Discuz! 移除首頁「我收藏的版塊」欄位
[*]編輯 Discuz! 主題檔案。
[*]編輯"discuz.html"檔案,路徑"/template/主題/forum/discuz.html"。
[*]尋找並刪除:
<!--{if empty($gid) && !empty($forum_favlist)}-->
<!--{eval $forumscount = count($forum_favlist);}-->
<!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}-->
<!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
<div class="bm bmw {if $forumcolumns} flg{/if} cl">
<div class="bm_h cl">
<span class="o">
<img id="category_0_img" src="{IMGDIR}/$collapse['collapseimg_0']" title="{lang spread}" alt="{lang spread}" />
</span>
<h2><a href="home.php?mod=space&do=favorite&type=forum">{lang forum_myfav}</a></h2>
</div>
<div id="category_0" class="bm_c" style="{echo $collapse['category_0']}">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<tr>
<!--{eval $favorderid = 0;}-->
<!--{loop $forum_favlist $key $favorite}-->
<!--{if $favforumlist[$favorite]}-->
<!--{eval $forum=$favforumlist[$favorite];}-->
<!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
<!--{if $forumcolumns>1}-->
<!--{if $favorderid && ($favorderid % $forumcolumns == 0)}-->
</tr>
<!--{if $favorderid < $forumscount}-->
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
<div class="fl_icn_g"{if !empty($forum) && !empty($forum)} style="width: {$forum}px;"{/if}>
<!--{if $forum}-->
$forum
<!--{else}-->
<a href="$forumurl"{if $forum} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum}_new{/if}.gif" alt="$forum" /></a>
<!--{/if}-->
</div>
<dl{if !empty($forum) && !empty($forum)} style="margin-left: {$forum}px;"{/if}>
<dt><a href="$forumurl"{if $forum} target="_blank"{/if}{if $forum} style="color: {$forum};"{/if}>$forum</a><!--{if $forum && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum)</em><!--{/if}--></dt>
<!--{if empty($forum)}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum)}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum)}--></em></dd><!--{/if}-->
<dd>
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if $forum['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($forum['lastpost'])}-->
<!--{if $forumcolumns < 3}-->
<a href="forum.php?mod=redirect&tid=$forum&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite>$forum <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G<!--{/if}--></cite>
<!--{else}-->
<a href="forum.php?mod=redirect&tid=$forum&goto=lastpost#lastpost">{lang forum_lastpost}: $forum</a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</dd>
<!--{hook/index_favforum_extra $forum}-->
</dl>
</td>
<!--{eval $favorderid++;}-->
<!--{else}-->
<td class="fl_icn" {if !empty($forum) && !empty($forum)} style="width: {$forum}px;"{/if}>
<!--{if $forum}-->
$forum
<!--{else}-->
<a href="$forumurl"{if $forum} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum}_new{/if}.gif" alt="$forum" /></a>
<!--{/if}-->
</td>
<td>
<h2><a href="$forumurl"{if $forum} target="_blank"{/if}{if $forum} style="color: {$forum};"{/if}>$forum</a><!--{if $forum && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum)</em><!--{/if}--></h2>
<!--{if $forum}--><p class="xg2">$forum</p><!--{/if}-->
<!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
<!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum</span></p><!--{/if}-->
<!--{hook/index_favforum_extra $forum}-->
</td>
<td class="fl_i">
<!--{if empty($forum)}--><span class="xi2"><!--{echo dnumber($forum)}--></span><span class="xg1"> / <!--{echo dnumber($forum)}--></span><!--{/if}-->
</td>
<td class="fl_by">
<div>
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if $forum['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($forum['lastpost'])}-->
<a href="forum.php?mod=redirect&tid=$forum&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite>$forum <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G<!--{/if}--></cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</div>
</td>
</tr>
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<!--{/loop}-->
<!--{if ($columnspad = $favorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
</tr>
</table>
</div>
</div>
<!--{ad/intercat/bm a_c/-1}-->
<!--{/if}-->
[*]進入「Discuz! 管理中心」,「更新緩存」。
頁:
[1]