TShopping
標題:
限制遊客瀏覽帖子內容
[打印本頁]
作者:
woff
時間:
2009-1-25 13:30
標題:
限制遊客瀏覽帖子內容
打開template/default/viewthread_node.htm
找
<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post[pid]">$post[message]</td></tr></table>
複製代碼
改為
<!-- 限制遊客瀏覽 START -->
<!--{if $post['number'] == 1}-->
<!--{if $discuz_uid}-->
<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post[pid]">$post[message]</td></tr></table>
<!--{else}-->
<div class="t_msgfont" id="postmessage_$post[pid]" style="height:200px; overflow:hidden;">$post[message]</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[pid]">$post[message]</td></tr></table>
<!--{/if}-->
<!-- 限制遊客瀏覽 END -->
複製代碼
最後到後台更新即可.
歡迎光臨 TShopping (http://www.tshopping.com.tw/)
Powered by Discuz! X3.2