我看没人发就想做第一个![[滑稽]](/public/face/f25.png)
![[滑稽]](/public/face/f25.png)
看下面
首先下载文件压缩包,直接上传在wp-content/themes/zibll目录下并解压,再将show-useragent文件复制一份到网站根目录。
大家最爱的水蓝蓝
:
然后替换代码:
1.在wp-content/themes/zibll目录的 functions.php 添加两行代码
详情见图一
----------------------------
include("show-useragent/show-useragent.php"); // 显示访客信息
include("show-useragent/ip2c-text.php"); // IP归属地和运营商查询功能
----------------------------
2.将/wp-content/themes/zibll/inc/functions/zib-comments-list.php 51行的
return '
替换代码为以下内容
详情见图二
----------------------------
$ip = convertip(get_comment_author_ip());
return '' . $user_name . $badge .''.$ip.''.'';
----------------------------
3.完成上面那步后不要退出,然后搜索 $time_html
在第一个 //时间 下面直接替换代码
详情见图三
----------------------------
$diqu = CID_get_comment_browser();
$diqu .= CID_print_comment_flag();
$time_html = '' . zib_get_time_ago($comment->comment_date) . ''.''.$diqu.'';
----------------------------
效果图




举报 0