The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
How can I use {vb:raw vboptions.xxx} within CSS template??
Hello everyone, I currently have a slideshow to which I created a couple of options in the admin panel for the admin to be able to control it's width and height easily from the product options, instead of having to go edit style-vars.
The slideshow's width and height are controlled by CSS attributes. I created a custom CSS template and inlciuded it within my page with the slideshow making a call to said template. My problem is apparently it's not reading the CSS correctly using {vb:raw vboptions.xxx} as a replacement for actual values. Here's what I am trying to do: HTML Code:
#slide { position:relative; width:{vb:raw vboptions.cotw_sotw_max_width}px; height:{vb:raw vboptions.cotw_sotw_max_height}px; background:url(images/loading.gif) no-repeat 50% 50%; } HTML Code:
#slide { position:relative; width:500px; height:200px; background:url(images/loading.gif) no-repeat 50% 50%; } Note: I was unsure whether to place this thread here or in Design so if any mod wants to move it by all means. Sorry for the trouble in advance if you do. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|