帝国CMS模板调用收藏该内容的会员(带头像和不带头像版)
[e:loop={"select * from [!db.pre!]enewsfava where classid='$navinfor[classid]' and id='$navinfor[id]' group by userid limit 10"
方法1、(不带头像)
[e:loop={"select * from [!db.pre!]enewsfava where classid='$navinfor[classid]' and id='$navinfor[id]' group by userid limit 10",1,24,0}]
<li><a href="[!--news.url--]e/space/?userid=<?=$bqr[userid]?>" target="_blank"><h5><?=$bqr[username]?></h5></a></li>
[/e:loop]
方法1、(带头像)
[e:loop={"select a.*,b.* from [!db.pre!]enewsfava a LEFT JOIN [!db.pre!]enewsmemberadd b ON a.userid=b.userid where classid='$navinfor[classid]' and id='$navinfor[id]'",0,24,0}]
<li><a href="[!--news.url--]e/space/?userid=<?=$bqr[userid]?>" target="_blank"><img src="<?=$bqr[userpic]?>"><h5><?=$bqr[username]?></h5></a></li>
[/e:loop]
- 上一篇
帝国CMS模板读取远程页面内容(readhttp) 和引用文件标签 (includefile)
1、开启标签 后台--模板--标签--标签管理--修改(选择对应标签)--开启 2、读取远程页面 (readhttp) [readhttp]'http://127.0.0.1/bbs//incfile/head.html'[/readh
- 下一篇
帝国CMS列表页内容显示判断文章来源,并带连接的方法
在列表内容模板里面写如下代码即可! $userr=$empire->fetch1("select befrom from {$dbtbpre}ecms_news_data_{$r[stb]} where id='$r[id]'"); if(empty($userr[bef
相关文章
- fcpx插件 9组可插入头像大图字幕条标题模板 Big Image Lower Thirds V3
- fcpx插件 视频博主推广宣传封面头像动画模板 Social Media Posts
- fcpx插件 9组炫酷可插入头像图片字幕条标题模板 Cool Lower Thirds
- fcpx插件 9组多彩带头像标题字幕条模板 Colorful Lower Thirds
- fcpx插件 添加Emoji自定义卡通头像制作工具 支持M1 可自动跟踪 Me Pop
- fcpx插件 9组时尚人名头像标题动画模板 Design Titles Pack
- fcpx插件 简约实用带头像人名条介绍字幕条 Clean Photo Lower Thirds
- 帝国CMS获取当前页面顶级栏目名称和连接,包含列表和内容页面使用
- 帝国CMS灵动标签SQL调用同时调用多条广告
- 帝国CMS模板自定义页面用PHP获取页面ID、页面名称、标题、关键词、描述、内容等变量的方法