备子比主题配置评论显示区和使用设所在IP地
发布时间:2025-11-04 05:29:06 作者:玩站小弟
我要评论
今天源码库教大家如何修改 我们的比主备子比主题显示评论地区代码已经为大家修改好了 只需要上传即可调用,废话不多说 直接上教程!题配下载地址: 隐藏内容,置评请登录后查看 1.先下载我们的论显代码包 例如,使用的地区主题是 zibll ,则RAR包上传至 wp-content/themes/zibll/ 目录下(然后网站根目录也复制一份show-useragent文件)2.替换代码 非常简单 不会联系博主:不免费 不白嫖 低情商别来把本压缩包上传到主题的和使根目录,注意不是用设WordPress根目录 加入function.php 在 php 作用域内,添加两行代码: include("show-useragent/show-useragent.php"); // 显示访客信息 include("show-useragent/ip2c-text.php"); // IP归属地和运营商查询功能 /wp-content/themes/zibll/inc/functions/zib-comments-list.php51行的比主备 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>; 把本压缩包上传到主题的根目录,注意不是题配WordPress根目录 加入function.php 在 php 作用域内,添加两行代码: include("show-useragent/show-useragent.php"); // 显示访客信息 include("show-useragent/ip2c-text.php"); // IP归属地和运营商查询功能 /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>; 把本压缩包上传到主题的根目录,注意不是论显WordPress根目录 加入function.php 在 php 作用域内,添加两行代码: include("show-useragent/show-useragent.php"); // 显示访客信息 include("show-useragent/ip2c-text.php"); // IP归属地和运营商查询功能 /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>; 效果可以看本站的评论!!和使!用设内容看完了 © 版权声明 1:本网站名称:蜡笔傻新2:本站永久网址:https://labishaxin.com/3:本站部分内容收集于互联网,比主备如果有侵权内容、请联系我们删除,不妥之处,敬请谅解4:本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责5:本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报6:本站资源大多存储在云盘,如发现链接失效,请联系我们我们会第一时间更新。

今天源码库教大家如何修改 我们的比主备子比主题显示评论地区
代码已经为大家修改好了 只需要上传即可调用,废话不多说 直接上教程 !题配
下载地址 :
隐藏内容,置评请登录后查看 1.先下载我们的论显代码包例如,使用的地区主题是 zibll ,则RAR包上传至 wp-content/themes/zibll/ 目录下(然后网站根目录也复制一份show-useragent文件)
2.替换代码 非常简单 不会联系博主:不免费 不白嫖 低情商别来
把本压缩包上传到主题的和使根目录 ,注意不是用设WordPress根目录 加入function.php 在 php 作用域内 ,添加两行代码 : include("show-useragent/show-useragent.php"); // 显示访客信息 include("show-useragent/ip2c-text.php"); // IP归属地和运营商查询功能 /wp-content/themes/zibll/inc/functions/zib-comments-list.php51行的比主备 return