
代码修改:
修改文件:./source/module/forum/forum_viewthread.php
查找viewthread_is_search_referer函数,函数位于1208行左右,在函数第一行添加return false,最终函数如下:
function viewthread_is_search_referer() {
return false; //去除帖子左下角纵横搜索(可能感兴趣的内容)弹框
$regex = "((http|https)\:\/\/)?";
$regex .= "([a-z]*.)?(ask.com|yahoo.com|cn.yahoo.com|bing.com|baidu.com|soso.com|google.com|google.cn)(.[a-z]{2,3})?\/";
if(preg_match("/^$regex/", $_SERVER['HTTP_REFERER'])) {
return true;
}
return false;
}
除非注明,均为湛蓝天空原创,转载请注明本文网址:http://skyhome.cn/discuz/180.html
欢迎大家留言~