PDA

View Full Version : Seperate Header per Forum?


Steve W.
05-24-2003, 03:30 PM
Hi there,

Is it possible to have a different header section perforum without having to resort to creating a seperate style for each? The problem is, I have about 10 forums that need a different image for each header, and I don't fancy having to go thru all of them to add a new hack or whatever.

Even if I need a new style assigned to each forum, is it okay to use the same template set, or would that cause problems?

And finnaly, does anyone have the default style set to download?

Thanks!

Austin Dea
05-24-2003, 03:50 PM
You'd need a hack or conditionals in templates (vB3).

assassingod
05-24-2003, 03:55 PM
Right, let's see (assuming you want to keep the usualy style for each for but different header)

Download your current style, upload it but make a new style, and modify your header. Then edit your forum so it uses your modified header style. and do that for each for

OR

You can add to your header template an image, and name all the images you want to use 1,2,3 or 4 etc (to relate to a forum and make sure they are the same extension) then use $forum[forumid] for the image name (i.e <img src="{imagesfolder}/$forum[forumid].gif)

First method is untested and should work
Second method is untested and MAY work.....

:)

Steve W.
05-24-2003, 07:26 PM
So theoreticlly, the image would change as you changed forums? That would be an incredible thing because that's EXACTLY what I'd like to do... cause any more than one or two styles is really hard to manage hacks and such.

assassingod
05-24-2003, 08:31 PM
Yes it's possible. Except with one flaw. If you weren't in a forum (I.E forumhome or showgroups) you'll get a broken image.

Steve W.
05-24-2003, 10:43 PM
Ahh, but the forumhome is a seperate template, so you could have, say, forumhome.gif for the forumhome templates, if I'm correct?

assassingod
05-24-2003, 10:57 PM
Well it's not as easy as that. Being the header template is global, {imagesfolder}/$forum[forumid].gif will always appear. Otherwise it'll involve hacking.

Steve W.
05-24-2003, 11:08 PM
True... well, there could be say a template with a set header for forumhome and such, and the forums could have another style designated to them with the alterable header gif... so that would be two templates?

Also, is it just a case of putting the replacement variable in the header section of the style?

Thanks for your help so far, btw!

assassingod
05-24-2003, 11:25 PM
If I understand you correctly, you would be referring to my first method I said earlier:)


Download your current style, upload it but make a new style, and modify your header. Then edit your forum so it uses your modified header style. and do that for each for


I'm not totally sure though. Otherwise, you'll have to hack (and i'm certain it would be a small hack)

Steve W.
05-24-2003, 11:32 PM
Well the problem is if I were to say install a new hack from vbulletin.org, I'd have to update all 10 templates or even 20 templates, which is why the variabled header idea would be alot better suited since I only want the one style/template set. But I dont know weather the headers are assigned to the style or template area, in which case I could have a new style for each forum, and they all use the same single template/replacement set?

assassingod
05-25-2003, 08:57 AM
Well, all you would have to do is edit 1 style header template (and I hope I wont get in trouble for breaking the rules but) this hack would only require you to have one style since all it would do it add an image to any forum and you wont have any other problems. I see what you mean, but the only real easy way is to hack, and it wont be that bad.

Steve W.
05-25-2003, 09:28 AM
Yeah, that would certainly be the easiest. I can understand templates really easily, but unfortunatly, when it comes to the coding side of things, I'm a real amatuer, lol!

Thanks for your help, I'll try and figure this out somehow! :D