![]() |
Help with HTML/Adsense
I'm not a code but know my way around vB pretty well after dealing with it for years.
I have been using the Adsense Sharing hack for a long time but because of the dramatic growth of our site we can no longer use it. I need help with the following code if you would be willing! :) What I'm trying to do: I want to display a leaderboard to specific usergroups. I don't want our staff to see the adsense ad, but want guests and registered members to see it.... I know what template to place it, I just need help with the code I thought an "if" condition could do this, but am not sure how to write the code I thought this could work: <if condition="not sure what to put here to make it display to certain usergroups"> (ad code) </if> --------------- Added [DATE]1300124907[/DATE] at [TIME]1300124907[/TIME] --------------- Would this work? <if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"> Google Adsense Code </if> |
Yes, your condition will work. However in templates we usually try to use $bbuserinfo instead of $vbulletin->userinfo... so this will work as well:
Code:
<if condition="is_member_of($bbuserinfo, 1, 2, 3)"> |
All times are GMT. The time now is 10:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|