列表
页随机插入广告list.var代码
首先勾选“使用程序代码”,代码如下:$num='<div class="list"><a href="[!--titleurl--]"><img class="img" src="[!--titlepic--]" alt="[!--title--]"><h3>[!--title--]</h3>...
灵动标签调用会员教程
帝国CMS自带有会员调用函数,点击查看,不过有时调用不太方便,于是就想到使用万能的灵动标签来调用:示例代码如下:[e:loop={"select u.username,u.userid,userpic,mycall,ui.company from phome_enewsmember u LEFT JOIN phome_enewsmemberadd ui ON u....
帝国CMS二次开发调用关注我的
帝国CMS调用关注我的查询代码$totalquery="select count(*) as total from {$dbtbpre}enewshy where fname='$username'".$a;$num=$empire->gettotal($totalquery);$query="select * from {$dbtbpre}enewshy where fname='$user[use...
帝国CMS二次开发调用评论我的
帝国CMS调用评论我的查询代码$totalquery="select count(*) as total from {$dbtbpre}enewspl_1".$a;$num=$empire->gettotal($totalquery);$query="select * from {$dbtbpre}enewspl_1".$a;$query.=" order by plid desc limit $offset,$line";...
帝国CMS二次开发会员中心调用评论
帝国CMS调用评论查询代码$totalquery="select count(*) as total from {$dbtbpre}enewspl_1 where username='$user[username]'".$a;$num=$empire->gettotal($totalquery);$query="select * from {$dbtbpre}enewspl_1 where username=&#...
帝国调用评论我的信息
帝国CMS调用最新评论自己发布的文章信息<?php$sql1=$empire->query("select * from {$dbtbpre}enewspl_1 order by saytime desc limit 10");while($r1=$empire->fetch($sql1)){ $t1=$empire->query("select * from {$dbtbpre}ecms_news where id=&#...
帝国CMS二次开发循环自定义分类下的所有及信息
[e:loop={"select * from [!db.pre!]enewsuserlist where classid=2",1,24,0}] <? $url=str_replace('../','',$bqr['filepath']); ?> &l...
当前自定义调用所属分类下的所有链接
标题有点绕,不知道怎么起,首先给大家看看是效果,以免大家都知道是什么意思。这是一个帝国CMS自定义,他们都属于“字数”的自定义分类。我们需要在所有的前台自定义中,调用同属于“字数”...
帝国CMS自定义按时间调用
帝国CMS自定义按时间调用演示代码按8小时、24小时、7天、30天、365天时间调用,大家可以参照代码按实际情况修改3600*72=72小时8小时内select count(*) as total from [!db.pre!]ecms_news where unix_timestamp(now())-newstime<3600*720 select ...