开启首页边框,怎么把友情链接和在线会员通栏显示?
论坛首页就是工厂开启侧边后,怎么把友情链接和在线会员通栏显示?修改前请备份好文件,防止修改失误导致的问题。
解决方法:
打开风格目录下的forum目录下的discuz.htm文件
查找
<!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
<div id="online" class="bm oll">
<div class="bm_h">
<!--{if $detailstatus}-->
<span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
<h3>
<strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
<span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
- <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
<strong>$guestcount</strong> {lang index_guests}
- {lang index_mostonlines} <strong>$onlineinfo</strong> {lang on} <strong>$onlineinfo</strong>.</span>
</h3>
<!--{else}-->
<span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
<h3>
<strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
<span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
- {lang index_mostonlines} <strong>$onlineinfo</strong> {lang on} <strong>$onlineinfo</strong>.</span>
</h3>
<!--{/if}-->
</div>
<!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
<dl id="onlinelist" class="bm_c">
<dt class="ptm pbm bbda">$_G</dt>
<!--{if $detailstatus}-->
<dd class="ptm pbm">
<ul class="cl">
<!--{if $whosonline}-->
<!--{loop $whosonline $key $online}-->
<li title="{lang time}: $online">
<img src="{STATICURL}image/common/$online" alt="icon" />
<!--{if $online['uid']}-->
<a href="home.php?mod=space&uid=$online">$online</a>
<!--{else}-->
$online
<!--{/if}-->
</li>
<!--{/loop}-->
<!--{else}-->
<li style="width: auto">{lang online_only_guests}</li>
<!--{/if}-->
</ul>
</dd>
<!--{/if}-->
</dl>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{if empty($gid) && ($_G['cache']['forumlinks'] || $_G['cache']['forumlinks'] || $_G['cache']['forumlinks'])}-->
<div class="bm lk">
<div id="category_lk" class="bm_c ptm">
<!--{if $_G['cache']['forumlinks']}-->
<ul class="m mbn cl">$_G['cache']['forumlinks']</ul>
<!--{/if}-->
<!--{if $_G['cache']['forumlinks']}-->
<div class="mbn cl">
$_G['cache']['forumlinks']
</div>
<!--{/if}-->
<!--{if $_G['cache']['forumlinks']}-->
<ul class="x mbm cl">
$_G['cache']['forumlinks']
</ul>
<!--{/if}-->
</div>
</div>
<!--{/if}-->剪贴后,查找
</div>
<!--{subtemplate common/footer}-->然后把剪贴的代码放在这句代码的前面就可以啦。
上传覆盖下,更新缓存看看是否已经修改了!
页:
[1]