帝国cms灵动标签调用discuz-x1帖子
新帖(动态地址)[e:loop={"select tid,subject,dateline from pre_forum_thread order by tid desc limit 10",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><a href="/bbs/forum.php?mod=viewthread&……
新帖(动态地址)
[e:loop={"select tid,subject,dateline from pre_forum_thread order by tid desc limit 10",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><a href="/bbs/forum.php?mod=viewthread&tid=<?=$bqr[tid]?>&extra=page%3D1" target="_blank"><?=$bqr[subject]?></a></li>[/e:loop]
精华(动态地址)
[e:loop={"select tid,subject,dateline,digest from pre_forum_thread where digest!=0 order by tid desc limit 10",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><a href="/bbs/forum.php?mod=viewthread&tid=<?=$bqr[tid]?>&extra=page%3D1" target="_blank"><?=$bqr[subject]?></a></li>[/e:loop]
新帖(静态地址)
[e:loop={"select tid,subject,dateline from pre_forum_thread order by tid desc limit 4",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><a href="/bbs/thread-<?=$bqr[tid]?>-1-1.html" target="_blank"><?=$bqr[subject]?></a></li>[/e:loop]
精华(静态地址)
[e:loop={"select tid,subject,dateline,digest from pre_forum_thread where digest!=0 order by tid desc limit 4",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><a href="/bbs/thread-<?=$bqr[tid]?>-1-1.html" target="_blank"><?=$bqr[subject]?></a></li>[/e:loop]
热帖 (动态地址)回复达到20,及更多
[e:loop={"select tid,subject,dateline,replies from pre_forum_thread where replies>=20 order by tid desc limit 10",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><a href="/bbs/forum.php?mod=viewthread&tid=<?=$bqr[tid]?>&extra=page%3D1" target="_blank"><?=$bqr[subject]?></a></li>[/e:loop
]热帖 (静态地址)回复达到20,及更多
[e:loop={"select tid,subject,dateline,replies from pre_forum_thread where replies>=20 order by tid desc limit 10",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><a href="/bbs/thread-<?=$bqr[tid]?>-1-1.html" target="_blank"><?=$bqr[subject]?></a></li>[/e:loop]
- 上一篇
帝国cms增实现会员每天第一次登录赠送积分功能
实现功能:会员每天登陆实现赠送积分~每天一次。修改步骤:1、进入管理会员字段增加如下字段:字段名:LastTime字段标识:最后登陆时间字段类型:大数值型(INT)2、打开,e/class/user.php 找到大约1019行if($set1&&$set2) 这个地方
- 下一篇
帝国cms实现文章点击月、周、日排行效果方法
在模型管理增加相应3个字段,分别是:DayHits WeekHits MonthHits 这3个字段全部在主表,int类型字段再增加 ConditionHits 字段,为文本型,同样在主表 注意大小写$time=mktime(0,0,0,8,5,2010);//设置日期为2010年8月5号$wzid