The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
using CSS in advertisements
Hi
I have 4 diufferent colour skins in my forum and would like to reflect these in some of the ads i am showing. The ad code which i have been given uses some conditionals to specify the colours etc and i was woindering how i tell it to use the main CSS instead. example of code Code:
link_font_color='000000'; link_font_hover_color='000000'; background_color='ffffff'; oh also the code is setup inside javascript similar to how google adsense code is given. I plan to create a seperate set of css files specifically for ads but thats not that important. Thanks in advance for your help |
#2
|
||||
|
||||
add the inline CSS to your headinclude template
use the same trigger/conditional that you have for displaying the ads |
#3
|
|||
|
|||
ok i founhd the info i was looking for by looking at the google adsense integration.
for those who want to do somethign similar and have ad colours change with your forum skin you can use Code:
google_color_border = "$stylevar[alt2_bgcolor_hex]"; google_color_bg = "$stylevar[alt1_bgcolor_hex]"; google_color_link = "$stylevar[body_link_n_fgcolor_hex]"; google_color_text = "$stylevar[body_fgcolor_hex]"; google_color_url = "$stylevar[body_link_n_fgcolor_hex]"; Anyone know if there is a definitive list of all the available stylevar variables written down anywhere? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|