帝国CMS调用最新会员的方法!(头像+用户名+链接)

时间:2023年12月25日

/

来源:网络

/

编辑:佚名

帝国CMS调用最新会员的方法!(头像+用户名+链接)
很多的小伙伴们经常问到,帝国CMS怎么调用网站最新会员呢?针对这个问题,今天帝国CMS模板网就来告诉大家,帝国CMS调用最新会员的方法!(头像+用户名+链接)的方法,一起来看看吧:
【调用代码】:
<ul>
[e:loop={'select userid as userid,truename as title,userpic as titlepic from [!db.pre!]enewsmemberadd order by userid desc limit 8',10,24,0}]
<li><a href="/e/space/?userid=<?=$bqr[userid]?>" target="_blank"><img src="<?=$bqr[titlepic]?>" alt="<?=$bqr[title]?>" width="52" height="52" /><?=$bqr[title]?></a></li>
[/e:loop]
</ul>
【调用说明】:
用户ID:<?=$bqr[userid]?>
用户头像:<?=$bqr[titlepic]?>
用户名称:<?=$bqr[title]?>
OK,就这样搞定!
猜你需要

豫ICP备2021026617号-1  豫公网安备:41172602000185   Copyright © 2021-2028 www.78moban.com/ All Rights Reserved

本站作品均来自互联网,转载目的在于传递更多信息,并不代表本站赞同其观点和对其真实性负责。如有侵犯您的版权,请联系 1565229909#qq.com(把#改成@),我们将立即处理。