The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Stylevar conditionals?
I'm not sure how to phrase the title for this..
I've got a background image for forumhead_background: I'd like that image to be different, depending on which forum it's the header image for. So if it's "Site news" it's forum #1, General Forums would be number 12 (whatever), etc, etc. I think, that the VB3 way would have been a simple pointer to the forumid in the image itself, eg: "/forum/images/blah/header$forum['forumid'].png" Since it's inside a stylevar, I'm not sure how to go about it this time. I'm looking to take my header image (catheader.png), and make a few version of it, so catheader_1.png for forumID #1, catheader_12 for #12, and so on. Would I need to preregister all of those conditionals, or is there a way that I can just directly pull the raw forumid inline with the image ponter in the stylevar? Something like this horrible syntax: Code:
url(images/misc/catheader_<vb:raw forumid>.png) |
#2
|
||||
|
||||
Not really the right method to go about it..
If you look at the code for your forumhome you will see each <li> has a unique id which is normally forum2, forum3 etc.. You are better off following that route and connecting that with your custom CSS. Im not quite certain if Style vars take the conditionals, even if they do you would have to have a new style var for each background.. |
#3
|
|||
|
|||
Thanks man - I'll definitely go about it that way. I'm just (last few days or so) starting to build my theme, and slowly wrapping my head around the new template system.
I think I'm going to end up rewriting a LOT of CSS. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|