Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adsense Integration above similar threads - StarBuG optimized blending Details »»
Adsense Integration above similar threads - StarBuG optimized blending
Version: 1.00, by StarBuG StarBuG is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.6 Rating:
Released: 08-20-2010 Last Update: Never Installs: 24
Template Edits
 
No support by the author.

Introduction:
I am StarBuG, a clinical Physician for Children, and I am running several health Forums to support patients with medical questions. During the many years I am running my Forums I constantly worked on optimizing my Advertising integrations to maximize my earnings and the user experience using my forums. The click through rates for my Adsense integrations are good to very good for forums and may increase due to further optimizations so mark this mod as installed if you use it to make sure you always use the best optimized version of my adsense integration.

What this mod does:
This mod adds a Google Adsense leaderboard above active users and similar threads below each thread. It is blended to look like the other moduls below the thread without violating google adsense TOS. Make sure you use the same colors you use on your forum to optimize blending!

Installation instructions:

in the template SHOWTHREAD find:

Code:
<div id="thread_info" class="thread_info">
and add below:

Code:
<h4 class="threadinfohead"><span class="optiontitle">Advertising</span></h4>
    <div id="thread_onlineusers" class="thread_info_block">
        <div class="inner_block">
            <h5>Advertising</h5>
            <div>
             <div class="ads_lb_container_forumdisplay">
              <div class="ads_lb">
               <!- Your Google Adsense Code for a 728x90px leaderboard -->
              </div>
             </div>
            </div>
        </div>
    </div>
add the following to the template CSS >> additional.css

Code:
.ads_lb_container_forumdisplay {
    background: #FFFFFF;
    width:100%;
    margin-left: auto;
    margin-right: auto;
}

.ads_lb {
    position: relative;
    width: 728px;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
}
Additional Comments:
Make sure you change all lines marked RED to fit your forum.
If you only want this Advertising shown to guests like I do wrap the above code in this condition:

Code:
<vb:if condition="$show['guest']">

</vb:if>
Screenshot:



More of my Adsense Integrations:Demo:
Patientenfragen.net - we have the answers

Of course feedback is welcome and if you have suggestions to further improve CTR please let me know!

StarBuG



Google isn't paying you enough money! Discover WHY!

Show Your Support

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

Comments
  #12  
Old 11-09-2010, 02:03 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are welcome
Reply With Quote
  #13  
Old 11-12-2010, 02:19 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why have it above similar threads? I like mine to be right above the quick reply box
http://vgchat.info/forum/threads/153631-Xtreme-Sports
and when someone clicks reply to thread, it shows up in the reply box, under the title and above the editor
Attached Images
File Type: jpg adsense.jpg (69.4 KB, 0 views)
Reply With Quote
  #14  
Old 12-23-2010, 11:28 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why is there a closing tag at the end??

PHP Code:
</vb:if> 
Reply With Quote
  #15  
Old 12-25-2010, 03:57 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had it wrapped in a guest only condition. Fixed
Reply With Quote
  #16  
Old 02-08-2011, 10:48 PM
Aquestor Aquestor is offline
 
Join Date: May 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If u want to use it with vb 4.1.1 you have to change this:
Code:
<div id="thread_info" class="thread_info">
into this:
Code:
<div id="thread_info" class="thread_info block">
Greetz Kai
Reply With Quote
  #17  
Old 06-10-2011, 07:08 AM
abumohamed abumohamed is offline
 
Join Date: Mar 2005
Location: Saudi Arabia
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very good
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 06:45 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.04370 seconds
  • Memory Usage 2,285KB
  • Queries Executed 22 (?)
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
  • (6)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete