本教程主要功能就是把编辑器内的img a标签等替代为MIP标准格式
1、打开/e/class/userfun.php添加处理函数:
function NewsTextReplace($add){ $add['newstext'] = preg_replace('//is', ' ', stripslashes($add['newstext'])); $add['newstext'] = preg_replace('/ /is', '', $add['newstext']); $add['newstext'] = addslashes($add['newstext']); return $add; }
2、打开/e/action/show.php搜索 $GLOBALS['navclassid'] = $r['classid'];
在前面添加代码:
$r = NewsTextReplace($r);
以上即可!
此函数可以处理所有此信息的字段内容。
更多的须要处置请参照处理函数自行重写。