在帝国cms自带的评论和留言系统的功能上,简单修改一下它的样式,就能美美的调用出畅言一样的效果了。
哪怎么做评论调用呢?
[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]