MyBB Community Forums

Full Version: Use if-then statements in specific subforum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've installed this plugin that allows me to use PHP in templates:
http://mybbhacks.zingaburga.com/showthread.php?tid=260

What code should I use in order to add if-then statements in specific forums (considering their ID)?

e.g.

If $fid is 1 {
echo:"this forum's ID is 1";
}
Note: for the if conditionals, its better to use template conditionals plugin (instead of php in templates)

<if $fid == 1 then> required content </if>

plugin release thread consists of required guidance - see also this thread on this community
(2015-07-13, 12:30 PM).m. Wrote: [ -> ]Note: for the if conditionals, its better to use template conditionals plugin (instead of php in templates)

<if $fid == 1 then> required content </if>

plugin release thread consists of required guidance - see also this thread on this community

Thank you for both advice and solution, will take note of thisĀ  Smile