PDA

View Full Version : Each board has it's own logo?


nintendo
11-04-2003, 12:36 AM
Is there a hack where each board can have it's own logo??

Zachery
11-04-2003, 04:56 PM
you could do this rather simply with vb3 ^^


i think in vb2 you could add a varible to the logo img source in the header

so lets say fourm id 50 is your video game forum, in the header youd change the img source to read somthing like img src="{imagesfolder}/$forumid/logo.gif

or somthing along thos lines

Sylvus
11-04-2003, 05:55 PM
Could one not add something to the phpinclude template?


if ($forum['forumid']==XX) {

$mylogo = "<img src=http://www.mysite.com/images/logo1.gif>";
}


Then in the Forumhome or Forumdisplay, just change the vblogo default to $mylogo and it should change depending on the variable set in the above code. Repeat for the number of different logos you want for each different forum category.

XX = forumid #

Syl...

Dean C
11-04-2003, 06:23 PM
Or do this:

Have your image names like forumicon1.gif forumicon2.gif etc. Then in your template have something like <img src="{imagesfolder}/forumicon$forumid.gif" border="0" alt="" />

That way no need for any kind of php work :)

Sylvus
11-04-2003, 06:35 PM
Sigh. Owned again. :(

:)

Syl...

nintendo
11-05-2003, 12:06 AM
Except $forumid only works on the index of the board. Is there a way to make the board logo also show up in each thread in that board, and also have a main logo that shows up at the index and other areas of the site?