View Full Version : Adverts for guests only
Neal-UK
10-09-2011, 01:30 PM
I want to enable my google adverts for guests only, what is the code I need to put before and after the code for both vB4 please?
Reycer
10-09-2011, 01:58 PM
Just use the built in feature.
admincp--->advertising--->add new ad
Select where you want the ad to appear.
Place your title, and your HTML into the correct locations.
Now under "Display this ad if..." select
User belongs to group "Unregistered/Not Logged In"
Select save and your done.
Neal-UK
10-09-2011, 02:55 PM
ah of course, thanks
HMBeaty
10-09-2011, 03:50 PM
If you don't use the built in feature and have templates in more complicated places, you would use:
<vb:if condition="$show['guest']">
YOUR AD HERE
</vb:if>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.