PDA

View Full Version : Mini Mods - Guest Only AdSense below Navbar - Increase registrations & revenue


04-26-2007, 10:00 PM
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:


<!-- Guest Adsense -->
<if condition="$bbuserinfo['userid'] == 0">
<div align="center">
<!-- AdSense Start -->

### PASTE YOUR ADSENSE CODE HERE ###

<!-- /AdSense -->
</div>
<br />
</if>
<!-- /Guest Adsense -->


Paste your Adsense ad unit code in place, and you're good to go.

Optional

I put a small blurb about logging in to remove the adds underneath it. To do so, add the following:


<br>
<font face="arial" size="1" color="#FFFFF">Login to remove these ads.</font>


UNDER:

<!-- /AdSense -->

Screenshot:

https://vborg.vbsupport.ru/

Demo: http://www.sevenstring.org

Please click Install if you find this useful.

Cheers. :)

osmanungur
05-18-2007, 02:34 PM
thanks man
this is very useful

Tearstone
05-20-2007, 02:32 AM
Impressive! Good work Chris.

TheProphet
05-20-2007, 06:23 AM
Thx for yer work m8

snoopy5
05-20-2007, 04:40 PM
Hi

great MOD!

How can you vary this, so that only specific usergroups do not see the ad (i.e. paying members)?

REIGN SS
09-28-2007, 05:36 AM
i believe that all you to is add the user id numbers here


<if condition="$bbuserinfo['userid'] == 1,2,3,0">


(the red text is just an example of what to add, depending on what your user group # are it will vary)

REIGN SS
09-28-2007, 05:37 AM
p.s: Installed!!

Phr34q
03-06-2008, 06:58 AM
*clicks installed and MOTM*

Bexter
03-22-2008, 09:57 AM
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/showthread.php?t=200894&highlight=Conditionals

For me i didnt want the ads to show to premium members, so i used <if condition="!is_member_of($bbuserinfo, X)">

vithorius
04-01-2009, 03:14 PM
i believe that all you to is add the user id numbers here


<if condition="$bbuserinfo['userid'] == 1,2,3,0">


(the red text is just an example of what to add, depending on what your user group # are it will vary)

Ok, I believe that the info bellow is correct and the above should be considered as an error, right? :confused: :erm: :eek: :confused:




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/showthread.php?t=200894&highlight=Conditionals

For me i didnt want the ads to show to premium members, so i used <if condition="!is_member_of($bbuserinfo, X)">

Ok, this info is quite useful! But what if I need to exclude more than one group? (in my case, I would like to exclude Premium, Admins and Mods.) :confused:

Thank you!! :up: :up:

slobra
04-26-2009, 08:47 PM
Ok, I believe that the info bellow is correct and the above should be considered as an error, right? :confused: :erm: :eek: :confused:






Ok, this info is quite useful! But what if I need to exclude more than one group? (in my case, I would like to exclude Premium, Admins and Mods.) :confused:

Thank you!! :up: :up:

If you would like to exclude more than one usergroup then you would use:

<if condition="!is_member_of($bbuserinfo, X, Y, Z)">


Where X, Y, and Z are the usergroup id's (numbers).

lm3a.net
05-20-2009, 08:43 AM
great mod

thanks,

Sp32
07-27-2009, 06:13 AM
Amazing, thank you very much

Dorgham
02-25-2013, 05:34 PM
Very cool this template :)