设置

找到Hansome主题component目录下的commens.php文件,大约在该文件第69行左右修改为如下代码

1
2
3
<span class="comment-author vcard">
<b class="fn"><?php echo $author; ?></b><?php echo $Identity; ?><?php UserAgent_Plugin::get_useragent($comments->agent,$comments->ip); ?>
</span>

然后启用插件即可

详情请参考以下文章

[scode type=”yellow”]
https://doge.uk/coding/useragent-modify.html

[/scode]

评论