推荐应用
DIY模块模板 [order=N]...[/order] 输出错误问题解决方法
发布于 2013-02-04
DIY模块模板 [order=N]...[/order] 输出错误问题,导致很多门户模板溢出代码,现在给大家提供下解决方法,有出现模板问题的请参考下面方法解决:
找到以下文件
source\function\function_block.php在这个文件中的function block_template($bid)方法中最后面找到
找到以下文件
source\function\function_block.php在这个文件中的function block_template($bid)方法中最后面找到
$template = preg_replace('/\s*\[(order\d+)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
$template = preg_replace('/\s*\[(index\d+)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);修改为$template = preg_replace('/\s*\[(order\d*)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);
$template = preg_replace('/\s*\[(index\d*)=\w+\](.*?)\[\/\\1\]\s*/is', '', $template);简单的说就是把加号替换成*号就可以了,希望大家可以把解决掉DIY模块模板 [order=N]...[/order]代码溢出输出错误的问题。


添加微信客服
有偿服务QQ
关注公众号