PDA

View Full Version : template and forumid


floleb7
02-05-2002, 06:14 AM
i have two differents template i want to show one if the forum id is XX and the other one if it's YY i have to put a if forumid=XX template = X else template = YY or there is better to do ?

Admin
02-05-2002, 06:58 AM
Use the Admin CP. ;)

Under every forum options you can set the style it's using.

floleb7
02-05-2002, 08:39 AM
it's not for style it's for smiley :D
i'm using an other system than the default of vb and i want to have for a specific categorie the smiley in newthread ...

so i use this :

if ($forumid == 18 || $forumid == 19 || $forumid == 20) {
eval("\$smile_bible = \"".gettemplate('smile_bible')."\";");
}

but i don't know if there is a better way

Admin
02-05-2002, 08:41 AM
Ok then, just use that somewhere in forumdisplay.php and you're set. :)

floleb7
02-05-2002, 08:56 AM
forumdisplay

i was thinking to newthread.php and newreply.php no ?

Admin
02-05-2002, 10:18 AM
Oh right, it's for posting... then yes, the files you said.

But use $foruminfo['forumid'] because there is no $forumid in newreply.php.

floleb7
02-05-2002, 01:18 PM
ok thanks :up: