PDA

View Full Version : Which is correct when using forumid & array...


SCRIPT3R
09-29-2007, 03:04 AM
looking to do something affecting the first post only of every thread of certain forums only...

<if condition="$post[postcount] == 1 AND in_array($forumid, array(1,2)">

or

<if condition="$post[postcount] == 1 AND in_array($forum[forumid], array(1,2))">

Michael Biddle
09-29-2007, 03:21 AM
They both *might* work.

But I use $thread['forumid'] in my postbit template :D