![]() |
Conditionals on a non-vB page?
Alright here is what I want to do:
For members registered on my message board, I want to hide my Google Adsense ads - on vB and non-vB pages. How would I go about doing this? I have looked for some time now and it seems pretty complicated... :ermm: :ermm: |
To hide ads on vB powered page, put
HTML Code:
<if condition="!$bbuserinfo[userid]">Your Ads Code Here</if> |
Easy.
On the non Vb page (must be a .php page, not .html ) At the very top of the page just add this (Make sure you change the 'path/to/your/forums' to what your forums path is) PHP Code:
PHP Code:
|
Didnt work for me =( I tried this with an else statement though. COuld that be why?
|
All times are GMT. The time now is 11:14 PM. |
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:
|