Page 1 of 1

Post Message IF IS_CAT #2? (forumlist_body.html)

Posted: Fri Apr 07, 2017 12:45 pm
by aster59
I want to put a message for people before category #2 in my forumlist_body.html, but can't figure it out.

I am wondering if there is a conditional I can use or create like:

Code: Select all

<!-- IF forumrow.S_IS_CAT_2 -->
"Hello World!"
<!-- ENDIF -->
So when it loops through it only prints it out only at category 2 or forumrow 2.

Right around this line in forumlist_body.html:

Code: Select all

<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
I checked here:
https://wiki.phpbb.com/Forumrow_Template_Variables
I couldn't find what I needed.

Thanks.

Re: Post Message IF IS_CAT #2? (forumlist_body.html)

Posted: Fri Apr 07, 2017 5:17 pm
by kasimi

Code: Select all

<!-- IF forumrow.S_IS_CAT and forumrow.FORUM_ID == 2 -->
  "Hello World!"
<!-- ENDIF -->

Re: Post Message IF IS_CAT #2? (forumlist_body.html)

Posted: Fri Apr 07, 2017 6:20 pm
by aster59
I didn't think of forum_ID. Thanks.