View Full Version : Advertising to guests only
DreadsUK
04-19-2014, 07:28 PM
It there any ways to add google ads (or whatever that google ad thing its) to only show to guests/non-logged in people?
If you're editing a template or using the ad manager, you can surround your code with a conditional, like:
<vb:if condition="!$show['member']">
Only guests can see this
</vb:if>
DreadsUK
04-20-2014, 02:59 PM
do i put that code above and below the ad code?
CAG CheechDogg
04-21-2014, 07:47 AM
Put your code inside the conditional ...replace all the red with your own ...
<vb:if condition="!$show['member']">
This here would be your code or template, replace this with yours...
</vb:if>
DreadsUK
04-28-2014, 01:28 PM
its cool. i found an option in the vb cp advertising bit to only allow unregistered to see it. thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.