使emlog支持内容搜索

2013-5-15 XMEN 探索

编辑search_controller.php(位置:/include/controller/search_controller.php)

第22行$sqlSegment = "and title like '%{$keyword}%' order by date desc";

替换成$sqlSegment = "and content like '%{$keyword}%' or title like '%{$keyword}%' order by date desc";

亦可增加: uid、sort、datetime

标签: EMLOG

发表评论:

Copyright © 2008-2017 寻梦网 All Rights Reserved.
 Email:mail@xmen.uno
 滇ICP备17004063号
 Sitemap