The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I would like to set up a script that changes, when Users change the style. This could be used for Advertising, changing the colour, when the Skin changes.
I am using 3 different styles so it should have an if, else, elseif function. But I am really not sure how to set it up. Style IDs: 16, 15 and 31 Code 16: Code:
<script type="text/javascript"><!-- google_ad_client = "pub-5644726162652543"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel = ""; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Code:
<script type="text/javascript"><!-- google_ad_client = "pub-5644726162652543"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "336699"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Code:
<script type="text/javascript"><!-- google_ad_client = "pub-5644726162652543"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2007-07-14: Welcome Area AD google_ad_channel = "5574964608"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> ![]() So to put it into a nutshell: If Style ID = 16 then Code 16 else if Style ID = 15 then Code 15 else if Style ID = 31 then code 31 Thank you, Hendricius |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|