限制遊客瀏覽帖子內容
打開template/default/viewthread_node.htm找
<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post">$post</td></tr></table>改為
<!-- 限制遊客瀏覽 START -->
<!--{if $post['number'] == 1}-->
<!--{if $discuz_uid}-->
<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post">$post</td></tr></table>
<!--{else}-->
<div class="t_msgfont" id="postmessage_$post" style="height:200px; overflow:hidden;">$post</div>
<div style="text-align:center; line-height:30px; border:1px solid #99CC00">您所在的用戶組只能看到部分內容. <br>如查看全部內容, 請先<a href="/logging.php?action=login"><font color="#FF0000">{lang login}</font></a>或者<a href="/register.php"><font color="#FF0000">$reglinkname</font></a>.</div>
<!--{/if}-->
<!--{else}-->
<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post">$post</td></tr></table>
<!--{/if}-->
<!-- 限制遊客瀏覽 END -->最後到後台更新即可.
頁:
[1]