CSDN:帝国cms7.5中如何调取评论用户名字字段username?

- 编辑:爱思60度微信公众号(wangxi2004324235) -

在帝国cms自带的评论和留言系统的功能上,简单修改一下它的样式,就能美美的调用出畅言一样的效果了。

blob.png

哪怎么做评论调用呢?

[e:loop={"select * from {$dbtbpre}enewspl_1 where saytext not like '%ecomment%' order by saytime DESC limit 10",0,24,0}]
<?php
$myid=$bqr['userid'];
$myid2=$bqr['id'];
$member=$empire->fetch1("select userpic from {$dbtbpre}enewsmemberadd where userid='$myid'");
$mytitle=$empire->fetch1("select titleurl,title from {$dbtbpre}ecms_news where id='$myid2'");
$picnum=intval(mt_rand(1,7));
for($i=0;$i<1;$i++)
{
$randpic='/e/extend/lgyPl/assets/userpic/user_0'.substr(strval($picnum),$i,1).'.jpg';
}
?>
<li>
        <div class="user">
                                                                <img src="<?=$member['userpic']?$member['userpic']:$randpic?>" alt="">
                                                                <span><?=$bqr['username']?></span>
                                                                <em><?=lgy_tranTime($bqr['saytime'])?></em>
                                                        </div>
        <div class="info">
                
                <p><?=esub(strip_tags($bqr['saytext']),80,'...')?></p>
                <span>来自:<a href="<?=$mytitle['titleurl']?>"><?=$mytitle['title']?></a></span>
                
                
        </div>
</li>
[/e:loop]


99%的人还阅读了:

帝国CMS删除栏目提示没有权限删除不了?

织梦(DEDECMS)、Phpmywind、Thinkphp百度智能小程序

脚本之家:帝国CMS刷新 ’ doesn’t exist

公众号搜索“爱思60度”,领取大礼包

微信二维码

来源:,欢迎分享本文,转载请保留出处!(微信公众号:wangxi2004324235)