The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hey,
I'm using the built in Ads Manager in Vbulletin 4 but I am trying to tweak it so that the Ads only show up to Guests and normal Registered members, I edited the template ad_navbar_below under the section Ad Location Templates which has: Code:
<vb:if condition="$adsense_pub_id AND CONTENT_PAGE"> <div style="width:728px; margin:0 auto; padding-bottom:1em"> <script type="text/javascript"><!-- google_ad_client = "{vb:var adsense_pub_id}"; google_ad_host = "{vb:var adsense_host_id}"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "{vb:stylevar alt2_bgcolor_hex}"; google_color_bg = "{vb:stylevar alt1_bgcolor_hex}"; google_color_link = "{vb:stylevar body_link_n_fgcolor_hex}"; google_color_text = "{vb:stylevar body_fgcolor_hex}"; google_color_url = "{vb:stylevar body_link_n_fgcolor_hex}"; google_ui_features = "rc:6"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </vb:if> Code:
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"> </if> Code:
<vb:if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"> </vb:if> Am I going about this all wrong? ![]() --------------- Added [DATE]1281643763[/DATE] at [TIME]1281643763[/TIME] --------------- Never mind, I found the solution now, its bbuserinfo instead of just userinfo incase anyone else runs into the same problem. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|