帝国cms二次开发搜索页支持php和动态标签代码
帝国CMS动态页面默认是不支持标签语法的,所以在制作搜索、留言等页面的时候需要改动下才行。帝国cms二次开发教程找到/e/search/result/index.php 文件在下面找到require("../../class/q_functions.php");替换为requir……
帝国CMS动态页面默认是不支持标签语法的,所以在制作搜索、留言等页面的时候需要改动下才行。
帝国cms二次开发教程
找到/e/search/result/index.php 文件
在下面找到
require("../../class/q_functions.php");
替换为
require('../../class/functions.php');require('../../class/t_functions.php');
继续找到$listtemp=$tempr[temptext];
在上面增加
$tempr[temptext]=DtNewsBq('list'.$tempid,$tempr[temptext],0);
修改完成 现在试试 搜索页模板里可以使用标签了php代码了
- 上一篇
帝国CMS[!--list.pageno--]当前分页号改造(动态+静态)
[!--list.pageno--]显示第X页,在/e/class/functions.php,改成$string=str_replace('[!--list.pageno--]',($pagenum==1?'':'_第'.$pagenum.'页'),$string);动态的改e/action/ListInfo/index.php
- 下一篇
帝国cms更改系统默认的时区
帝国cms更改系统默认的时区修改e/class/connect.php//时区if(function_exists('date_default_timezone_set')){@date_default_timezone_set("PRC");}改成@date_default_timezone_set("Europe/London");