帝国cms

推荐列表 站点导航

当前位置:首页 > 建站教程 > 帝国cms >

帝国CMS评论调用自定义字段的方法

来源:网络整理  作者:网络  发布时间:2020-12-07 22:12
帝国CMS模板网下面的帝国CMS教程栏目为您提供了帝国CMS评论调用自定义字段的方法...

首页我们在后台 管理评论 添加一个自定义字段,比如 [!--kwpf--]字段,那么怎么在前台页面调用帝国评论的自定义字段了。下面就是调用方法

在其下面增加一行:

$sql=$empire->query("select plid,userid,username,saytime,id,classid,zcnum,fdnum,saytext from {$dbtbpre}enewspl_".$public_r['pldeftb']." where checked=0".$a." order by ".$order." limit ".$line);

改成

1、搜索:function sys_ShowPlInfo($line,$tempid,$classid=0,$id=0,$isgood=0,$enews=0)。 源文件未修改的话大概在2016行

$sql=$empire->query("select * from {$dbtbpre}enewspl_".$public_r['pldeftb']." where checked=0".$a." order by ".$order." limit ".$line);

或者改成

$sql=$empire->query("select plid,userid,username,saytime,id,classid,zcnum,fdnum,saytext,kwpf from {$dbtbpre}enewspl_".$public_r['pldeftb']." where checked=0".$a." order by ".$order." limit ".$line);

2、搜索:function ReplaceShowPlVars($no,$listtemp,$r,$formatdate,$subnews=0)

找到:

修改/e/class/t_functions.php

找到:$listtemp=str_replace("[!--fdnum--]",$r['fdnum'],$listtemp);

相关热词: 调用 帝国cms 方法

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/jz/ecms/1153.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

帝国CMS评论调用自定义字段的方法

2020-12-07 编辑:网络

首页我们在后台 管理评论 添加一个自定义字段,比如 [!--kwpf--]字段,那么怎么在前台页面调用帝国评论的自定义字段了。下面就是调用方法

在其下面增加一行:

$sql=$empire->query("select plid,userid,username,saytime,id,classid,zcnum,fdnum,saytext from {$dbtbpre}enewspl_".$public_r['pldeftb']." where checked=0".$a." order by ".$order." limit ".$line);

改成

1、搜索:function sys_ShowPlInfo($line,$tempid,$classid=0,$id=0,$isgood=0,$enews=0)。 源文件未修改的话大概在2016行

$sql=$empire->query("select * from {$dbtbpre}enewspl_".$public_r['pldeftb']." where checked=0".$a." order by ".$order." limit ".$line);

或者改成

$sql=$empire->query("select plid,userid,username,saytime,id,classid,zcnum,fdnum,saytext,kwpf from {$dbtbpre}enewspl_".$public_r['pldeftb']." where checked=0".$a." order by ".$order." limit ".$line);

2、搜索:function ReplaceShowPlVars($no,$listtemp,$r,$formatdate,$subnews=0)

找到:

修改/e/class/t_functions.php

找到:$listtemp=str_replace("[!--fdnum--]",$r['fdnum'],$listtemp);

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/jz/ecms/1153.shtml

相关文章

风云图片

推荐阅读

返回帝国cms频道首页