[scode type="lblue"]本教程仅作为个人美化记录[/scode] [scode type="lblue"]为了避免美化意外丢失,本教程会尽可能使用插件来进行美化。[/scode] [scode type="yellow"]本篇教程凡是通过修改主题文件达到美化目的的,大概率为其他站搬运[/scode] ## 美化记录 暂无 ## 插件推荐 ### UserAgent插件 食用方法: 操作前请做好相应备份工作,此插件只针对于 `Handsome`主题 [collapse title="UserAgent插件" status="false"] * 下载插件,解压到 `usr/plugins`目录中 * 修改文件夹名为UserAgent * 进入后台设置激活插件 * 修改 `Handsome`主题 `component`目录下 `comments.php`,代码大概在 `107~110`行左右。 ``` stars;echo ($stars) ? $stars : "";?> ``` 添加代码 `agent,$comments->ip); ?> `, 修改后代码如下: ``` stars; echo ($stars) ? $stars : ""; ?> agent,$comments->ip); ?> ``` 本教程来自:[松鼠の博客](https://doge.uk/coding/useragent-modify.html#comments) [/collapse] ### 邮箱评论通知插件CommentToMail [collapse title="邮箱评论通知插件CommentToMail" status="false"] 插件下载:[CommentToMail](https://pan.chario.cn/#/s/69529863f29a8ab9721e8bc8d22ea48b) 食用方法: * 下载插件,解压到 `usr/plugins/`目录中 * 修改文件夹名为CommentToMail * 进入后台设置激活插件 [/collapse] Loading... <div class="tip inlineBlock info"> 本教程仅作为个人美化记录 </div> <div class="tip inlineBlock info"> 为了避免美化意外丢失,本教程会尽可能使用插件来进行美化。 </div> <div class="tip inlineBlock warning"> 本篇教程凡是通过修改主题文件达到美化目的的,大概率为其他站搬运 </div> ## 美化记录 暂无 ## 插件推荐 ### UserAgent插件 食用方法: 操作前请做好相应备份工作,此插件只针对于 `Handsome`主题 <div class="panel panel-default collapse-panel box-shadow-wrap-lg"><div class="panel-heading panel-collapse" data-toggle="collapse" data-target="#collapse-d5438e7e4fbb1fd6d65e52670d5a312a28" aria-expanded="true"><div class="accordion-toggle"><span style="">UserAgent插件</span> <i class="pull-right fontello icon-fw fontello-angle-right"></i> </div> </div> <div class="panel-body collapse-panel-body"> <div id="collapse-d5438e7e4fbb1fd6d65e52670d5a312a28" class="collapse collapse-content"><p></p> * 下载插件,解压到 `usr/plugins`目录中 * 修改文件夹名为UserAgent * 进入后台设置激活插件 * 修改 `Handsome`主题 `component`目录下 `comments.php`,代码大概在 `107~110`行左右。 ``` <span class="star_count"><?php $stars = $comments->stars;echo ($stars) ? $stars : "";?></span></a> ``` 添加代码 `<?php UserAgent_Plugin::get_useragent($comments->agent,$comments->ip); ?> `, 修改后代码如下: ``` <span class="star_count"><?php $stars = $comments->stars; echo ($stars) ? $stars : ""; ?></span> </a><!--UserAgent--><?php UserAgent_Plugin::get_useragent($comments->agent,$comments->ip); ?> ``` 本教程来自:[松鼠の博客](https://doge.uk/coding/useragent-modify.html#comments) <p></p></div></div></div> ### 邮箱评论通知插件CommentToMail <div class="panel panel-default collapse-panel box-shadow-wrap-lg"><div class="panel-heading panel-collapse" data-toggle="collapse" data-target="#collapse-d6fe47fb2a7749d0b5ee1f03e72a20b625" aria-expanded="true"><div class="accordion-toggle"><span style="">邮箱评论通知插件CommentToMail</span> <i class="pull-right fontello icon-fw fontello-angle-right"></i> </div> </div> <div class="panel-body collapse-panel-body"> <div id="collapse-d6fe47fb2a7749d0b5ee1f03e72a20b625" class="collapse collapse-content"><p></p> 插件下载:[CommentToMail](https://pan.chario.cn/#/s/69529863f29a8ab9721e8bc8d22ea48b) 食用方法: * 下载插件,解压到 `usr/plugins/`目录中 * 修改文件夹名为CommentToMail * 进入后台设置激活插件 <p></p></div></div></div> 最后修改:2026 年 09 月 02 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏