TShopping

標題: 限制遊客瀏覽帖子內容 [打印本頁]

作者: woff    時間: 2009-1-25 13:30
標題: 限制遊客瀏覽帖子內容
打開template/default/viewthread_node.htm

  1. <table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post[pid]">$post[message]</td></tr></table>
複製代碼
改為

  1. <!-- 限制遊客瀏覽 START -->
  2.                      <!--{if $post['number'] == 1}-->
  3.                      <!--{if $discuz_uid}-->
  4.                                     <table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post[pid]">$post[message]</td></tr></table>
  5.                      <!--{else}-->
  6.                                 <div class="t_msgfont" id="postmessage_$post[pid]" style="height:200px; overflow:hidden;">$post[message]</div>
  7.                                 <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>
  8.                     <!--{/if}-->
  9.                     <!--{else}-->
  10.                                     <table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post[pid]">$post[message]</td></tr></table>
  11.                     <!--{/if}-->
  12. <!-- 限制遊客瀏覽 END -->
複製代碼
最後到後台更新即可.




歡迎光臨 TShopping (http://www.tshopping.com.tw/) Powered by Discuz! X3.2