bobshipwood 发表于 2015-7-28 13:05:25

怎么循环指定次数。就是不要首条记录?

    <!--{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}-->

       

bobshipwood 发表于 2015-7-28 13:06:58

我要展示回复的人,原来这个是从作者发的原贴到回复全部循环出来了。

技术帮助 发表于 2015-7-28 13:08:46

<!--{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}-->

bobshipwood 发表于 2015-7-28 13:14:20

按你写法。。一个都不输出了。。咋办?
页: [1]
查看完整版本: 怎么循环指定次数。就是不要首条记录?