PDA

View Full Version : Show Content within Specific Forums Using <if> Statements


King Justice
06-13-2008, 11:31 AM
I would like to show special content within specific forums using the <if> statement.
The only problem is that I am needing to include many forum IDs within this <if> statement.

I was wondering if there is a way to separate each forum ID with commas?

Also, I was wondering if it would just be easier to NOT show the content for specific forum IDs, since the amount that I don't want the content to be viewed within is far less than the amount of forum IDs that should display the content.

Help. :o

Dismounted
06-13-2008, 11:41 AM
<if condition="!in_array($forum['forumid'], array(X, Y, Z)">CODE</if>
Where X, Y, Z is a comma-separated list of forums of which to NOT to display in.