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
  #12  
Old 04-26-2009, 08:47 PM
slobra slobra is offline
 
Join Date: Jul 2008
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vithorius View Post
Ok, I believe that the info bellow is correct and the above should be considered as an error, right? :erm:






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:
If you would like to exclude more than one usergroup then you would use:

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

Where X, Y, and Z are the usergroup id's (numbers).
Reply With Quote
  #13  
Old 05-20-2009, 08:43 AM
lm3a.net's Avatar
lm3a.net lm3a.net is offline
 
Join Date: May 2009
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod

thanks,
Reply With Quote
  #14  
Old 07-27-2009, 06:13 AM
Sp32 Sp32 is offline
 
Join Date: Sep 2008
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amazing, thank you very much
Reply With Quote
  #15  
Old 02-25-2013, 05:34 PM
Dorgham's Avatar
Dorgham Dorgham is offline
 
Join Date: May 2012
Location: Egypt
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool this template
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:13 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.03755 seconds
  • Memory Usage 2,240KB
  • Queries Executed 19 (?)
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
  • (4)bbcode_code
  • (1)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
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (5)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