第一步,打开 /e/search/result/index.php 文件 ,有洁癖的朋友可以备份下。查找: require("../../class/connect.php"); require("../../class/db_sql.php"); require("../../data/dbcache/class.php"); require("../../class/q_functions.php"); require "../".LoadLang("pub/fun.php");
修改为:
require('../../class/connect.php'); require('../../class/db_sql.php'); require('../../class/functions.php'); require('../../class/t_functions.php'); require('../../data/dbcache/class.php'); require "../".LoadLang("pub/fun.php");
第二步,继续查找:
//替换公共模板变量 $listtemp=$tempr[temptext];
在其前面,插入代码:
//页面支持标签
$tempr[temptext]=DtNewsBq('list'.$tempid,$tempr[temptext],0);
就可以了。这样修改后,搜索页面的模板,就能支帝国的标签和php代码了。