The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Sidebar block conditionals..
I'm pretty much just trying to change the head color according to the block. It's not working though.
Code:
<div style=" background-color:<vb:if condition="$blockid == 13">#2D6294<vb:else /> #C31F26</vb:if>; margin-bottom:10px;"> |
#2
|
|||
|
|||
?
|
#3
|
|||
|
|||
..
|
#4
|
||||
|
||||
Spit out the variable $blockid first and make sure it works. Is it even registered for use in that template? If not, then you will need to preregister it for that template in order to use it in there (Cellarius wrote a good article in the vB4 articles forum on how to do that).
|
#5
|
|||
|
|||
What do you mean by spit out the variable $blockid? I never registered it, don't know how too. I've looked across vbulletin.com for Cellarius' articles. I only came across one.. .
http://www.vbulletin.com/forum/conte...page-in-vB-CMS Not the one though, I'm guessing. |
#6
|
||||
|
||||
Cellarius' article is here - [HOW TO - vB4] Rendering templates and registering variables - a short guide
What I meant about 'spitting' it out, is have it parse the value right there on that page. If you don't think something is working, then take a look at the variables by placing them in the template so you can see what they are. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|