Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 26, 20177 yr Hi guys, Last night I was trying to figure out how to use the forum ids combined with conditional statements in my custom theme. But couldn't get it to work. if($forum_id == "1") { echo $x; } else if($forum_id == "2") { echo $y; } else { echo $z; } If anyone can help with this it would be greatly appreciated, thank you!
April 26, 20177 yr These may help: https://invisionpower.com/4guides/themes-and-customizations/template-syntax/ https://invisionpower.com/forums/topic/433479-if-statement-based-on-forum-id/
April 26, 20177 yr Author Thank you Andy! Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.
April 26, 20177 yr 2 hours ago, DFORMS said: Thank you Andy! You're welcome. 2 hours ago, DFORMS said: Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime. Very true. I nearly started writing one or two but that topic about covers it already anyway hopefully.
Archived
This topic is now archived and is closed to further replies.