冯 海

一个程序新人菜鸟的日记,希望大家多多关照。QQ:32316131

discuz 内容页面下方的评论中显示评论头像,作者和时间

要让主题内容和评论分开,他是使用的同一个looop,要加一个IF,同样的一个代码改下面的,在其他技术中有说明。

<div class="layui-row">
 
				<span class="dhhlistpic1 z" style="margin-top: 15px;">
        		
        	<!--{if !$postshowavatars}-->
					 {lang member_avatar_banned} 
				<!--{elseif $post['avatar'] && $showavatars}-->
					<!--{if $post[mobiletype]}-->
					<div class="mobile-type mobile-type-$post[mobiletype]">
						<a></a>
					</div>
					<!--{/if}-->
					<div class="avatar"{if !($_G['setting']['threadguestlite'] && !$_G['uid'])} onmouseover="showauthor(this, 'userinfo$post[pid]')"{/If}><a href="home.php?mod=space&uid=$post[authorid]" class="avtm" target="_blank">$post[avatar]</a></div>
				<!--{/if}-->
				</span>

 这里 是头像,下面是作者之类

<div class="pct" style="padding-top: 10px;">
			<div>	 
				<a href="home.php?mod=space&uid=$post['authorid']" target="_blank"  style="color:#FF8B3D;" ><i class="layui-icon layui-icon-friends"></i> $post[author]</a>
	<em id="authorposton$post[pid]">{lang poston} $post[dateline]</em>
			 		 
			</div>
			<!--{ad/thread/a_pt/2/$postcount}-->
			<!--{if empty($ad_a_pr_css)}-->
				<style type="text/css">.pcb{margin-right:0}</style>
				<!--{eval $ad_a_pr_css=1;}-->
			<!--{/if}-->

			<!--{if !$post['first'] && $post['replycredit'] > 0}-->
				<div class="cm">
					<h3 class="psth xs1"><span class="icon_ring vm"></span>
				 {lang replycredit} <span class="xw1 xs2 xi1">+{$post['replycredit']}</span> {$_G['setting']['extcredits'][$_G['forum_thread']['replycredit_rule']['extcreditstype']][unit]}{$_G['setting']['extcredits'][$_G['forum_thread']['replycredit_rule']['extcreditstype']][title]}
					</h3>
				</div>
			<!--{/if}-->

			<!--{subtemplate forum/viewthread_node_body}-->
		</div>

  

 

posted @ 2018-10-02 09:07  秋天来了哟  阅读(410)  评论(0编辑  收藏  举报
认识就是缘份,愿天下人都快乐!
QQ: 32316131
Email: 32316131@qq.com