The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
need to call adsense in sidebar via $adsense - think i'm close need help
ok this is my sidebar plugin code:
Code:
if ($vbulletin->userinfo[usergroupid] == 1) { $sidebar_adsense = '<div align="center">$adsense</div>'; $forumsidebarorder["<a href=\"/register.php/\">Ads</a>"] = "3"; $forumsidebaritem["<a href=\"/register.php/\">Ads</a>"] = "$sidebar_adsense";} and i want $adsense to call the google script, tried it in headinclude template like this: Code:
<if condition="$adsense"> <script type="text/javascript"><!-- google_ad_client = "pub-8857731200276534"; google_ad_width = 120; google_ad_height = 240; google_ad_format = "120x240_as"; google_ad_type = "text"; //2007-02-08: apug sidebar google_ad_channel = "5450211729"; google_color_border = "dfdfdf"; google_color_bg = "eeeeee"; google_color_link = "444444"; google_color_text = "444444"; google_color_url = "444444"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></if> |
#3
|
|||
|
|||
that looks a bit over my head but i'll give it a try, thanks
|
#4
|
||||
|
||||
At least you don't have to pay somebody for it
|
#5
|
|||
|
|||
Well, I can't figure that out i've offered $10 for a fix in the serv request forum, thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|