xiuno修改让回帖每一个作者旁边加上自己的uid

admin 2月前 1907

修改教程,找到文件post_list.inc.htm.  定位<!--{hook thread_username_before.htm}-->
找到以下内容

<span class="username">
    <a href="<?php echo url("user-$_post[uid]");?>" class="text-muted font-weight-bold"><?php echo $_post['username'];?></a>
</span>

修改为

<!--{hook thread_username_before.htm}-->
                          
                                      <span class="username">
                                           <span class="badge" style="color:white;background:#52c7f8;">
										<a href="<?php echo url("user-$_post[uid]");?>" class="text-muted font-weight-bold"><?php echo $_post['username'];?></a></span></span>
										
										
                                            <span class="username">
                                                <span class="badge" style="color:white;background:#52c7f8;">
                            (UID:<?php echo $_post[uid];?>)
                                           
                              </span></span>

或下载替换以下文件

1 个附件 (3.75K) 状态
免费
最新回复 (29)
返回
帖子链接已复制到剪贴板