全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
12
返回列表 发新帖
楼主: sphfy
打印 上一主题 下一主题

[疑问] 听说有人要dux5.3,发一个满足要求!

[复制链接]
11#
发表于 2019-6-10 10:58:53 | 只看该作者
此主题为什么这样?
14#
发表于 2019-6-11 20:02:59 | 只看该作者
shenzt 发表于 2019-6-10 10:58
此主题为什么这样?

原来是蜜蜂采集与dux5.3不兼容,删除蜜蜂采集插件就行了
15#
发表于 2019-6-14 23:11:36 | 只看该作者
在functions.php中 将原本评论者链接跳转,修改为下面的代码。
// 评论者链接跳转
add_filter('get_comment_author_link', 'add_redirect_comment_link');
function add_redirect_comment_link() {
        $encodeurl = get_comment_author_url( $comment_ID );
        $url = get_template_directory_uri().'/go.php?url=' . base64_encode($encodeurl);
        $author = get_comment_author( $comment_ID );
        if ( empty( $encodeurl ) || 'http://' == $encodeurl )
                return $author;
        else
                return "<a href='$url' target='_blank' rel='external nofollow' class='url'>$author</a>";
}

即可修复评论怎么显示的是用户呢称而不是评论内容的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-15 11:23 , Processed in 0.065229 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表