The Arcive of vBulletin Modifications Site. |
|
Guest Only AdSense below Navbar - Increase registrations & revenue Details »»
|
|||||||||||||||||||||||||||
|
Guest Only AdSense below Navbar - Increase registrations & revenue
Developer Last Online:
This is pretty a straightforward template edit that will display adsense below the navbar for guests only. Not only will it put adsense in a decent location overall for revenue, but it will encourage new registrations as well.
Template Edits: 1 Install Time: 2 minutes Difficulty: Easy Step 1: AdminCP -> Styles and Templates -> Style Manager Edit the navbar template. At the very bottom, add the following: Code:
<!-- Guest Adsense --> <if condition="$bbuserinfo['userid'] == 0"> <div align="center"> <!-- AdSense Start --> ### PASTE YOUR ADSENSE CODE HERE ### <!-- /AdSense --> </div> <br /> </if> <!-- /Guest Adsense --> Optional I put a small blurb about logging in to remove the adds underneath it. To do so, add the following: Code:
<br> <font face="arial" size="1" color="#FFFFF">Login to remove these ads.</font> Code:
<!-- /AdSense --> Demo: http://www.sevenstring.org Please click Install if you find this useful. Cheers. ![]() Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
thanks man
this is very useful |
|
#3
|
|||
|
|||
|
Impressive! Good work Chris.
|
|
#4
|
|||
|
|||
|
Thx for yer work m8
|
|
#5
|
|||
|
|||
|
Hi
great MOD! How can you vary this, so that only specific usergroups do not see the ad (i.e. paying members)? |
|
#6
|
|||
|
|||
|
i believe that all you to is add the user id numbers here
Code:
<if condition="$bbuserinfo['userid'] == 1,2,3,0"> |
|
#7
|
|||
|
|||
|
p.s: Installed!!
|
|
#8
|
|||
|
|||
|
*clicks installed and MOTM*
|
|
#9
|
|||
|
|||
|
Hmm, the "<if condition="$bbuserinfo['userid'] == 1,2,3,0">" doesnt work, tells me
Parse error: syntax error, unexpected ',' in /home/girlgame/public_html/forums/includes/adminfunctions_template.php(3681) : eval()'d code on line 262 Doesnt like the comma lol. Any other ideas? Edit nvm i found out how. For those wondering......... Use the conditional that matches your needs - http://www.vbulletin.com/forum/showt...t=Conditionals For me i didnt want the ads to show to premium members, so i used Code:
<if condition="!is_member_of($bbuserinfo, X)"> |
|
#10
|
||||
|
||||
|
Quote:
:erm: Quote:
Thank you!! :up: :up: |
![]() |
|
|