The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Seperate Header per Forum?
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! |
#2
|
||||
|
||||
You'd need a hack or conditionals in templates (vB3).
|
#3
|
||||
|
||||
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..... |
#4
|
|||
|
|||
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.
|
#5
|
||||
|
||||
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.
|
#6
|
|||
|
|||
Ahh, but the forumhome is a seperate template, so you could have, say, forumhome.gif for the forumhome templates, if I'm correct?
|
#7
|
||||
|
||||
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.
|
#8
|
|||
|
|||
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! |
#9
|
||||
|
||||
If I understand you correctly, you would be referring to my first method I said earlier
Quote:
|
#10
|
|||
|
|||
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?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|