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 as second post - StarBuG optimized blending Details »»
Adsense Integration as second post - 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: 90
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 large rectangle after the first post of each thread.
It is blended to look like a regular post in your thread without violating Google adsense TOS. Make sure you use the same colors you use on your forum to optimize blending!
This mod shows the AD only to GUESTS!
If you want to show it to your members as well remove the " AND $show['guest']" condition!.

Installation instructions:

in the template postbit_legacy find:

Code:
{vb:raw template_hook.postbit_end}
and add below:

Code:
<vb:if condition="$post['isfirstshown'] AND $show['guest']">
<ul>
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<!-- see bottom of postbit.css for .userinfo .popupmenu styles -->

    <div class="posthead">&nbsp;&nbsp;<img title="Alt" src="./images/statusicon/post_old.png" alt="Alt" border="0" /><span class="date">&nbsp;<a href="http://www.DOMAIN.COM/register.php" style="color:#FFFFFF; text-decoration:underline;">(No Advertising after the first post? Register now for free!)</a></span></div>
    <div class="postdetails">
        <div class="userinfo">
            <div class="username_container">
              <br />
                <span style="font-weight:bold;font-size:14px;margin-left:0px;color:#000000;">Advertising</span><br /><br />
                <img src="http://www.DOMAIN.COM/images/logo_ads.png" width="90px" height="90px" alt="advertising" title="advertising" />
                <dl class="userinfo_extra"> 
         <dd>Forumname.com</dd>
         <dd>has no influence</dd> 
         <dd>on advertisings</dd>
         <dd>that are displayed by</dd>
         <dd>Google Adsense</dd> 
        </dl>
            </div>
        </div>
        <div class="postbody">
           <br />
           &nbsp;&nbsp;<!- Your Google Adsense Code for a 336x280px large rectangle -->
         <div class="cleardiv"></div>
        </div>
    </div>
        <div class="postfoot">
            <div class="textcontrols floatcontainer">
                <span class="postcontrols">&nbsp;</span>
            </div>
        </div>
    <hr />
</li>
</ul>
</vb:if>
Additional Comments:
Make sure you change all lines marked RED to fit your forum.
For better blending I use my Websites Logo as "Avatar" to make it look more like a post. For the same reason I added the "we have no influence..." part below the "Avatar". You can remove the whole "userinfo_extra" part if you don't like the text.

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 09-14-2010, 07:01 PM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack.. I may look into this one very soon. But im really interested in the Adsense module under your breadcrumbs? Is there a link available for download?

Installing this now.. Question does the ad have to be the 336x280px large rectangle?
Reply With Quote
  #13  
Old 09-14-2010, 08:54 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you mean the big welcome message with the large rectangle on the left?

You can use whatever ad format you want however a large rectangle ad performs best in my experience
Reply With Quote
  #14  
Old 09-14-2010, 10:45 PM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StarBuG View Post
Do you mean the big welcome message with the large rectangle on the left?
Yes ive seen this on another forum a cpl years ago and have been looking for it every since.

Quote:
You can use whatever ad format you want however a large rectangle ad performs best in my experience
Thanks i was playing around with it for a minute and decided i preferred what you had suggested.
Reply With Quote
  #15  
Old 09-14-2010, 10:58 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did that myself (again ).

I try to release it in the next few days if I find the time
Reply With Quote
  #16  
Old 09-14-2010, 11:42 PM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StarBuG View Post
Did that myself (again ).

I try to release it in the next few days if I find the time
Oh WOW! Thanks a ton!!!
Reply With Quote
  #17  
Old 09-25-2010, 09:28 PM
Silmarillion's Avatar
Silmarillion Silmarillion is offline
 
Join Date: Jul 2004
Location: Germany/Bavaria
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Mod! Is there a way to get this work for vB 3.8.x? Would be great.
Reply With Quote
  #18  
Old 09-26-2010, 06:25 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I released that a long time ago.

Check my profile for the link
Reply With Quote
  #19  
Old 10-08-2010, 10:40 AM
Blade-uk Blade-uk is offline
 
Join Date: Nov 2003
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, got it all working, thanks

Also, is it possible for the advert to show too all usergroups barring 3 (admins, moderators and premium members)??

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

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

where X,Y,Z are the usergroups you don't want to show the ads to.
Reply With Quote
  #21  
Old 10-10-2010, 05:27 AM
westcan westcan is offline
 
Join Date: Apr 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod StarBuG! Just curious if you are using a 3rd party style for your site or if you customized the look/feel yourself?
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: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.06751 seconds
  • Memory Usage 2,332KB
  • 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
  • (2)bbcode_code
  • (3)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete