Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

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
  #2  
Old 08-21-2010, 12:11 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

first post reserved
Reply With Quote
  #3  
Old 08-21-2010, 03:51 PM
NightLord's Avatar
NightLord NightLord is offline
 
Join Date: Nov 2009
Location: cyprus
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very good :P
Reply With Quote
  #4  
Old 08-22-2010, 10:46 AM
rtyagis rtyagis is offline
 
Join Date: Feb 2009
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed. For Demo - www.policywala.com/forum.php
Reply With Quote
  #5  
Old 08-22-2010, 11:12 PM
asus78 asus78 is offline
 
Join Date: Feb 2010
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rtyagis View Post
Installed. For Demo - www.policywala.com/forum.php
How did you place adsense within the forum post and is it possible to show this only to unregistered/not logged in visitors?

thx
Reply With Quote
  #6  
Old 08-24-2010, 10:37 AM
WriteToEnlight's Avatar
WriteToEnlight WriteToEnlight is offline
 
Join Date: Dec 2009
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by asus78 View Post
How did you place adsense within the forum post and is it possible to show this only to unregistered/not logged in visitors?

thx
I'm curious about that one too, minus the unregistered/not logged in visitors part. (but wouldn't mind knowing that either)

I'm also interested in adding that same size adsize block underneath the text in the post and not just at the start of it like you did, can you comment on this for us and/or point us in a direction to learn more about this?
Reply With Quote
  #7  
Old 08-26-2010, 09:31 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want the ad below the message text and only in the first post for guests only find this in postbit_legacy template:

Code:
<blockquote class="postcontent restore ">
                            {vb:raw post.message}
and add below:
Code:
<vb:if condition="$post['isfirstshown'] AND $show['guest']">
<!-- YOUR ADSENSE CODE HERE
</vb:if>
However this is not tested!
Try it and see if it works
Reply With Quote
  #8  
Old 09-17-2010, 05:22 PM
Veer Veer is offline
 
Join Date: Feb 2006
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this ad allowed by google adsense for every publisher?

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

why shouldn't it?
Reply With Quote
  #10  
Old 11-06-2010, 12:41 AM
Hawkgirl's Avatar
Hawkgirl Hawkgirl is offline
 
Join Date: Aug 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this. I modified it for our forums, and I love the way it looks. Very well done. I am learning a lot from you!
Reply With Quote
Reply

Thread Tools

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 11:08 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.09159 seconds
  • Memory Usage 2,316KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_quote
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete