discuz编辑栏可以显示图片,查看文章时不显示图片
2012-08-22 20:17
281 查看
解决方案:http://www.discuz.net/forum.php?mod=viewthread&tid=3018865
测试启用运营关联链接时造成附件不显示的解决办法
1、打开source\class\helper\helper_seo.php文件
2、找到以下代码
$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、修改为以下代码
$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);
即可解决以上问题
本文出自 “沉鱼落雁” 博客,请务必保留此出处http://hdjdcyl.blog.51cto.com/3781506/1147833
测试启用运营关联链接时造成附件不显示的解决办法
1、打开source\class\helper\helper_seo.php文件
2、找到以下代码
$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、修改为以下代码
$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);
即可解决以上问题
本文出自 “沉鱼落雁” 博客,请务必保留此出处http://hdjdcyl.blog.51cto.com/3781506/1147833
相关文章推荐
- UEditor编辑文章时粘贴内容的时候导致原来的图片不能显示
- ueditor编辑文章时候,复制粘贴内容,原来的图片不能显示
- 之前没有显示图片的文章可以去我的网易博客观看
- 用CSS缩小文章里的图片可以在手机里显示
- 设置Discuz 7论坛游客可以查看图片,但不能下载附件.
- ueditor编辑文章时候,复制粘贴内容,原来的图片不能显示
- wordpress日志中的全部图片以缩略图的形式显示在文章摘要底部
- 使用base64对图片的二进制进行编码,使其可以利用ajax进行显示
- 在新浪云上安装Discuz论坛,发贴不能显示图片的问题
- IOS源码之OC相册,可以循环查看图片
- dede 5.7 联动类型 编辑文章时不显示
- 增强AW_Blog插件之后台文章编辑新增一图片字段
- 动态设置Button、ImageView等组件在不同状态下的背景/前景显示效果。 扩展下的话可以前景/背景的显示效果可以使用网络图片。
- MarkDown里显示图片的方式可以引入HTML方法
- 实现app上对csdn的文章查看,以及文章中图片的保存 (制作csdn app 完结篇)
- 减少HTTP请求之将图片转成二进制并生成Base64编码,可以在网页中通过url查看图片(大型网站优化技术)
- html无法显示中文名图片,改为英文就可以显示,解决方案
- android 阿拉伯语下,图库中编辑运动轨迹图片,动画中会显示绿色的图片
- 安装XP sp2 后,有些网站论坛不可以显示验证码图片的解决办法!
- 有一个table表格,选中某一行后,点击“查看(button)”按钮可以实现对该行内容的显示