Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Guest Only AdSense below Navbar - Increase registrations & revenue Details »»
Guest Only AdSense below Navbar - Increase registrations & revenue
Version: 1.00, by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.5 Rating:
Released: 04-26-2007 Last Update: Never Installs: 57
Template Edits
 
No support by the author.

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 -->
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:

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

Code:
<!-- /AdSense -->
Screenshot:



Demo: http://www.sevenstring.org

Please click Install if you find this useful.

Cheers.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-18-2007, 02:34 PM
osmanungur osmanungur is offline
 
Join Date: Nov 2005
Location: Istanbul
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks man
this is very useful
Reply With Quote
  #3  
Old 05-20-2007, 02:32 AM
Tearstone Tearstone is offline
 
Join Date: Feb 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Impressive! Good work Chris.
Reply With Quote
  #4  
Old 05-20-2007, 06:23 AM
TheProphet TheProphet is offline
 
Join Date: Apr 2004
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx for yer work m8
Reply With Quote
  #5  
Old 05-20-2007, 04:40 PM
snoopy5 snoopy5 is offline
 
Join Date: May 2007
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

great MOD!

How can you vary this, so that only specific usergroups do not see the ad (i.e. paying members)?
Reply With Quote
  #6  
Old 09-28-2007, 05:36 AM
REIGN SS REIGN SS is offline
 
Join Date: Sep 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i believe that all you to is add the user id numbers here

Code:
<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)
Reply With Quote
  #7  
Old 09-28-2007, 05:37 AM
REIGN SS REIGN SS is offline
 
Join Date: Sep 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

p.s: Installed!!
Reply With Quote
  #8  
Old 03-06-2008, 06:58 AM
Phr34q Phr34q is offline
 
Join Date: Feb 2008
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*clicks installed and MOTM*
Reply With Quote
  #9  
Old 03-22-2008, 09:57 AM
Bexter Bexter is offline
 
Join Date: Nov 2006
Location: England
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)">
Reply With Quote
  #10  
Old 04-01-2009, 03:14 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by REIGN SS View Post
i believe that all you to is add the user id numbers here

Code:
<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? :erm:




Quote:
Originally Posted by Bexter View Post
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)">
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.)

Thank you!! :up: :up:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04529 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete