Log in

View Full Version : what is the forum id variable?


zemic
06-20-2006, 08:03 AM
Hi,

Im looking for help with a simple image selector script where it selects an image depending on the forum your in.

My problem is , I dont know what the forum id variable is, so this code does not work:


//if forum id = 88
if($f == "88") {
//display this image
$var = "<img src="someimage.jpg">";
} else {
//do nothing
}


any ideas?

peterska2
06-20-2006, 08:58 AM
$forum[forumid] or $foruminfo[forumid] depending on where you are in the site.

zemic
06-20-2006, 09:26 AM
Thats the one ! Thank you very much! :)

Zachery
06-20-2006, 10:29 AM
There is also $thread[forumid] as well.