MyBB Community Forums

Full Version: How to define this code for multiple forum ids?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
<if $GLOBALS['style']['fid'] != '3'  then>{myadvertisements[zone_4]}</if>

How can I define this for multiple forum id's? want 4 different forums excluded. tried to do it with array or just simply 4 lines of code but didn't work.
it can be like this (where a, b, c, d are required fid numbers)
<if !in_array($GLOBALS['style']['fid'], array(a,b,c,d)) then>{myadvertisements[zone_4]}</if>