去掉自动提取内容里面的图片作为缩略图:
找到 lecms/model/cms_content_model.class.php
大概在250行找到代码如下,并删除。
//匹配内容里面的图片(这里不生成缩略图小图,直接是完整的图片网址)
if(empty($cms_content['pic'])){
$pattern="/<[img|IMG].*?src=[\'|\"](.*?(?:[\.gif|\.jpg|\.png]))[\'|\"].*?[\/]?>/";
preg_match_all($pattern, $contentstr, $match);
if( isset($match[1]) ){
$cms_content['pic'] = isset($match[1][0]) ? $match[1][0] : '';
}
}
//处理缩略图 end
另外在480行左右也有改代码。