discuz 内容页显示作者姓名,文章篇数和发表时间的代码
<div class="layui-container"> <div class="layui-row" style="padding: 20px 0; "> <span class="dhhlistpic z"> <a href="home.php?mod=space&uid={$_G[forum_thread][authorid]}" target="_blank" class="toux"><!--{echo avatar({$_G[forum_thread][authorid]}, 'large')}--></a> </span> <div> <p class="contdhh-title">$_G[forum_thread][subject]</p> <p class="contpheight">作者: <!--{if $_G[page]==1}--> <!--{loop $postlist $post}--> <!--{if $post[first]}--> <a href="home.php?mod=space&uid={$_G[forum_thread][authorid]}" target="_blank" {if $post[groupcolor]} style="color: $post[groupcolor]"{/if}>{$_G[forum_thread][author]}</a> $authorverifys <!--{/if}--> <!--{/loop}--> <!--{else}--> <a href="home.php?mod=space&uid={$_G[forum_thread][authorid]}" target="_blank">{$_G[forum_thread][author]}</a></p> <!--{/if}--> <span>{lang credits}: </span><em><!--{echo DB::result_first('SELECT credits FROM '.DB::table('common_member').' WHERE uid ='.$_G[forum_thread][authorid].'')}--></em> <span>{lang posts}: </span><em><!--{echo DB::result_first('SELECT posts FROM '.DB::table('common_member_count').' WHERE uid ='.$_G[forum_thread][authorid].'')}--></em> <span>{lang thread_digest}: </span><em><!--{echo DB::result_first('SELECT digestposts FROM '.DB::table('common_member_count').' WHERE uid ='.$_G[forum_thread][authorid].'')}--></em> </p> <p class="contpheight"> <span class="xg1">{lang show}:</span> <span class="xi1">$_G[forum_thread][views]</span><span class="pipe">|</span><span class="xg1">{lang reply}:</span> <span class="xi1">$_G[forum_thread][allreplies]</span> <em id="authorposton$post[pid]">{lang poston} $post[dateline]</em> </p> </div> </div> <div style="line-height: 40px;height: 40px;"> <a href="forum.php?mod=post&action=newthread&fid=$_G[fid]" class="layui-btn layui-btn-danger layui-btn-xs"><i class="layui-icon layui-icon-edit"></i>发表帖子</a> <span class="bdsharebuttonbox"> <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a></span> <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script> </div> </div>