关于discuz中帖子内容循环的问题,求大神帮忙

WBOY
Release: 2016-06-20 12:27:23
Original
908 people have browsed it

在 discuz的viewthread.htm 里。

<div id="postlist" class="WBThreadCont pl">	<!--{eval $postcount = 0;}-->	<!--{loop $postlist $post}-->		<!--{if $rushreply && $_GET['checkrush'] && $post['rewardfloor'] != 1}-->			<!--{eval continue;}-->		<!--{/if}-->		<div id="post_$post[pid]" {if $_G['blockedpids'] && $post['inblacklist']}style="display:none;"{/if}>			<!--{subtemplate forum/viewthread_node}-->		</div>		<!--{eval $postcount++;}-->	<!--{/loop}-->	<div id="postlistreply" class="pl"><div id="post_new" class="viewthread_table" style="display: none"></div></div>	<!--{if $_G['blockedpids']}-->		<div id='hiddenpoststip'><a href='javascript:display_blocked_post();'>{lang other_reply_hide}</a></div>		<div id="hiddenposts"></div>	<!--{/if}--></div>
Copy after login

这一段表示当前的主题里,包括主题内容和回复帖子循环在


现在我想单独把一楼内容和回复内容摘出来。1楼主题内容一个样式。然后所有的回复再用loop循环,给一个样式。怎么改呢?


回复讨论(解决方案)

$post['first'] 是1 就表示是第一楼,自己判断一下不就行了?

$post['first'] 是1 就表示是第一楼,自己判断一下不就行了?


试了2次还是不行。不知道哪写错了。
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!