嘗試打開 /template/default/forum/viewthread_node.htm,將第26行替換成:
- <div class="authi"><a href="home.php?mod=space&uid=$post['authorid']" target="_blank" class="xw1"{if $post[groupcolor]} style="color: $post[groupcolor]"{/if}>$post[author]</a>$authorverifys<!--{if $post['authorid']}--><span class="uid"> (UID: $post[authorid])</span><!--{/if}--></div>
復制代碼也就是在 $authorverifys 后面加上:
- <!--{if $post['authorid']}--><span class="uid"> (UID: $post[authorid])</span><!--{/if}-->
復制代碼效果如圖:
(, 下載次數: 34)
如果覺得 (UID: )多余,也可以去掉,只用兩個空格間隔。插入內容改為:
- <!--{if $post['authorid']}--><span class="uid"> $post[authorid]</span><!--{/if}-->
復制代碼效果圖:
(, 下載次數: 38)
如果想更改成其他樣式,請自行研究。