Jump to content

Conditional statements in template using forum id


La-li-lu-le-lo

Recommended Posts

Posted

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!

Posted
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...