La-li-lu-le-lo Posted April 26, 2017 Share 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! Link to comment Share on other sites More sharing options...
AndyF Posted April 26, 2017 Share 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/ Link to comment Share on other sites More sharing options...
La-li-lu-le-lo Posted April 26, 2017 Author Share 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. Link to comment Share on other sites More sharing options...
AndyF Posted April 26, 2017 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.