Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
La-li-lu-le-lo Posted April 26, 2017 Posted April 26, 2017 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!
AndyF Posted April 26, 2017 Posted April 26, 2017 These may help: https://invisionpower.com/4guides/themes-and-customizations/template-syntax/ https://invisionpower.com/forums/topic/433479-if-statement-based-on-forum-id/
La-li-lu-le-lo Posted April 26, 2017 Author Posted April 26, 2017 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.
AndyF Posted April 26, 2017 Posted April 26, 2017 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.