show-useragent放域名跟目录和主题根目录各一份
ip2c放主题目录
加入以下代码到function.php
include("ip2c/ip2c.php"); //IP 归属地和运营商查询功能
include("show-useragent/show-useragent.php"); //显示访客信息
找到以下文件
/wp-content/themes/zibll/inc/functions/zib-comments-list.php 51行的
return '<name class="flex ac flex1">
替换以下代码
$ip = convertip(get_comment_author_ip());
return '<name class="flex ac flex1">' . $user_name . $badge .'<span class="badg badge badg-sm flex0 ml3">'.$ip.'</span>'.'</name>';
然后 搜索 $time_html 注释掉//时间代码后替换以下代码
$diqu = CID_get_comment_browser();
$diqu .= CID_print_comment_flag();
$time_html = '<span class="comt-author"' . ($is_mobile ? ' data-toggle="tooltip"' : '') . ' title="' . date('Y年m月d日 H:i:s', strtotime($comment->comment_date)) . '">' . zib_get_time_ago($comment->comment_date) . '</span>'.'<span class="comt-author" title="">'.$diqu.'</span>';
更多推荐内容
- AudioRelay 0.27.5 手机充当电脑音响 10 天前
- AIGC指令进阶课:AI思维培养与高效生活应用 12 天前
- DeepSeek全栈开发实战:AI应用落地全链路指南 12 天前
- 花生十三 2025网课资料全套合集 12 天前
- 网易云音乐小灯泡抽SVIP会员 13 天前
- Google外贸客户开发实战是一本非常实用的快速入门指南。 17 天前
- 星辰八字教程:基础到进阶全解析 20 天前
- AI办公与副业创收实战指南 20 天前
- 正统道学精要:百年集成50册 20 天前
- 配方技术分享-粽子配方多套 21 天前

文章采用: 《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权。
版权声明:本站资源来自互联网收集,仅供用于学习和交流,请勿用于商业用途。如有侵权、不妥之处,请联系客服并出示版权证明以便删除!
草莓CDMS原创内容分销系统/微信小说平台系统v1.0,提供稳定可靠的内容分发服务
« 上一篇
08-26
QQ空间日引500+老涩粉,另类玩法流量爆炸
下一篇 »
08-26