尝试打开 /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}-->
复制代码效果如图:
如果觉得 (UID: )多余,也可以去掉,只用两个空格间隔。插入内容改为:
- <!--{if $post['authorid']}--><span class="uid"> $post[authorid]</span><!--{/if}-->
复制代码效果图:
如果想更改成其他样式,请自行研究。