Discuz教程网

关于更新后 DIY 模块模板 [order=N]...[/order] 输出错误问题解决方法

[复制链接]
authicon dly 发表于 2012-5-30 14:56:35 | 显示全部楼层 |阅读模式
找到以下文件
source\function\function_block.php在这个文件中的function block_template($bid)方法中最后面找到

  1. $template = preg_replace('/\s*\[(order\d+)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
  2. $template = preg_replace('/\s*\[(index\d+)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
复制代码

修改为

  1. $template = preg_replace('/\s*\[(order\d*)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
  2. $template = preg_replace('/\s*\[(index\d*)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
复制代码

简单的说就是把加号替换成*号就可以了



上一篇:DX2.5论坛安装插件出现:对不起,您安装的不是正版应用的解决方式
下一篇:关于近期用户密码、邮箱被盗修改事件解决方案
authicon 中国营销沙龙 发表于 2012-5-30 15:29:37 | 显示全部楼层
真是难得给力的帖子啊。我不得不顶了……
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-5-2 10:07

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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