怎么循环指定次数。就是不要首条记录?
<!--{eval $postcount = 0;}--><!--{loop $postlist $post}-->
<!--{eval $needhiddenreply = ($hiddenreplies && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$post['first'] && !$_G['forum']['ismoderator']);}-->
<!--{hook/viewthread_posttop_mobile $postcount}-->
正文内容
<!--{hook/viewthread_postbottom_mobile $postcount}-->
<!--{eval $postcount++;}-->
<!--{/loop}-->
我要展示回复的人,原来这个是从作者发的原贴到回复全部循环出来了。 <!--{eval $postcount = 0;}-->
<!--{loop $postlist $post}-->
<!--{if $postcount !=0 }-->
<!--{eval $needhiddenreply = ($hiddenreplies && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$post['first'] && !$_G['forum']['ismoderator']);}-->
<!--{hook/viewthread_posttop_mobile $postcount}-->
正文内容
<!--{hook/viewthread_postbottom_mobile $postcount}-->
<!--{eval $postcount++;}-->
<!--{/if}-->
<!--{/loop}-->
按你写法。。一个都不输出了。。咋办?
页:
[1]