萝卜头IT论坛

搜索
查看: 1882|回复: 0
收起左侧

[Discuz!] Discuz! X2.5 升级0701版本后帖子图片不显示的解决方案

[复制链接]
发表于 2012-8-11 16:52:35 | 显示全部楼层 |阅读模式
测试启用运营关联链接时造成附件不显示的解决办法
1、打开source\class\helper\helper_seo.php文件
2、找到以下代码

  1. $content = preg_replace("/(<script\s+.*?>.*?<\/script>)|(<a\s+.*?>.*?<\/a>)|(<img\s+.*?[\/]?>)|(\[attach\](\d+)\[\/attach\])/ies", "helper_seo::base64_transform('encode', '<relatedlink>', '\\1\\2\\3', '</relatedlink>')", $content);
复制代码
3、修改为以下代码

  1. $content = preg_replace("/(<script\s+.*?>.*?<\/script>)|(<a\s+.*?>.*?<\/a>)|(<img\s+.*?[\/]?>)|(\[attach\](\d+)\[\/attach\])/ies", "helper_seo::base64_transform('encode', '<relatedlink>', '\\1\\2\\3\\4', '</relatedlink>')", $content);
复制代码
即可解决

回复

使用道具 举报

联系我们(Contact)|手机版|萝卜头IT论坛 ( 苏ICP备15050961号-1 )

GMT+8, 2024-3-28 18:38 , Processed in 0.100583 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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