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 together with nice welcome message - StarBuG optimized blending Details »»
Adsense integration together with nice welcome message - StarBuG optimized blending
Version: 1.00, by StarBuG StarBuG is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.6 Rating:
Released: 09-15-2010 Last Update: Never Installs: 97
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 below the navbar together with an eye catching welcome message and a call to action (registration). This ad is the best performing ad on my forum. I run a forum with a fixed width and I think that on a fluid style this mod wont look that good but give it a try if you want.

Installation instructions:

in the template navbar find:

Code:
{vb:raw ad_location.global_below_navbar}
and add below:

Code:
<vb:if condition="THIS_SCRIPT != 'search'  AND !$show['notices'] AND $show['guest']">
 <div class="ads_lr_wrapper">
  <div class="ads_lr">
    YOUR GOOGLE ADSENSE CODE HERE
  </div>
  <div class="ads_lr_welcome">
   <p id="welcome_bold_big">Welcome to YOUR FORUM NAME</p><br>
     
     <p id="welcome_normal">your forum for YOUR THEME</p><br>
     
            <ul>
             <li><b>&nbsp;&raquo;</b>  some things people find</li> 
             <li><b>&nbsp;&raquo;</b>  on your forum</li> 
             <li><b>&nbsp;&raquo;</b>  some reasons why</li>
             <li><b>&nbsp;&raquo;</b>  guests should register</li>
            </ul>
            
            <br>
            
            <p id="welcome_bold">...then you have come to the right place!</p><br>

            <p id="welcome_normal">we will try to help you with your problem.</p><br>
            
            <p id="welcome_bold_big"><a href="http://www.YOURDOMAIN.com/register.php">YES! I want to register an account for free right now!</a></p><br />
            
            <p id="welcome_small">p.s.: For registered members YOUR FORUM NAME is free of ads</p>
  </div>
 </div>
</vb:if>
in template additional.css add:

Code:
/*------------------------------------------------------------------------------
| #> Large Rectangle Ad + Welcome Text below navbar
+-----------------------------------------------------------------------------*/
.ads_lr_wrapper {
    border: 2px solid #274C84;
    -moz-border-radius-bottomleft:5px;
    -moz-border-radius-bottomright:5px;
    -moz-border-radius-topleft:5px;
    -moz-border-radius-topright:5px;
    background: #ffffff;
    width:850px;
    height:290px;
    padding: 5px 5px 5px 5px;
}

.ads_lr {
    position: relative;
    background: #ffffff;
    width: 336px;
    margin-left: 10px;
    margin-right: 30px;
    float:left;
}

.ads_lr_welcome {
    background: #ffffff;
    position: relative;
    width: 460px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: 10px;
    float:right;
}

#welcome_normal {
  font-size:normal;
  font-family:Helvetica;
  text-decoration:none;
  text-align: left;
}

#welcome_small {
  font-size:x-small;
  font-family:Helvetica;
  text-decoration:none;
  text-align: left;
}

#welcome_bold {
    font-weight:bold;
    font-size:normal;
    font-family:Helvetica;
    text-decoration:none;
        text-align: left;
}

#welcome_bold_big {
    font-weight:bold;
    font-size:large;
    font-family:Helvetica;
    text-decoration:none;
        text-align: left;
        color:#274C84;
}



Additional Comments:

Make sure you change all lines marked RED to fit your forum.
Of course you should customize the welcome text to fit your forum and change the colors and size of the welcome box to fit your forums theme.

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!

ps: The welcome text in the screenshot is an automatic translation by google that's why it is hard to read

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.
Благодарность от:
livenetc

Comments
  #22  
Old 09-29-2010, 02:58 AM
bandare bandare is offline
 
Join Date: Nov 2004
Location: Derby, UK
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much for sharing this. I looked at your site a while ago and thought I'd like that registration box - very kind of you for sharing!

For those not sure, make sure you don't have any welcome notices for guests because if you do it wont show!
Reply With Quote
  #23  
Old 09-29-2010, 11:38 AM
stained stained is offline
 
Join Date: Jun 2009
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks from me too. I've been trying and trying but I can't get this to display correctly. I haven't bothered with colours etc yet but as you can see, there is a large gap between the two halves.

I have a fluid design and normally have a custom notice showing for guests (this is definitely set to inactive currently). http://www.vbseo.com/f28/how-make-yo...rs-image-7549/

The template edits in accordance with your instructions above are all in place. Would you have any idea why might be causing the welcome message to be displaying like this?

Thanks

Edit: okay, I see the answer now "and I think that on a fluid style this mod wont look that good but give it a try if you want"' I can get it looking better (second picture below) but when I log out of the forum the 'all cookies cleared' notice stops the ads from displaying. I'll keep fiddling with this but if anyone can help with a fix for fluid width forums that would be a great help! Thanks
Attached Images
File Type: jpg ggvhz.jpg (53.6 KB, 0 views)
File Type: jpg lkjghuiz.jpg (50.7 KB, 0 views)
Reply With Quote
  #24  
Old 09-29-2010, 03:38 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StarBuG View Post
Do it yourself

Shouldn't be hard to adapt.

Wrap it in a table create 2 tds both 50% width and put the content in it.
The css formating can stay

It's easy
can you post how to do this.
Reply With Quote
  #25  
Old 09-30-2010, 11:10 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stained View Post
Thanks from me too. I've been trying and trying but I can't get this to display correctly. I haven't bothered with colours etc yet but as you can see, there is a large gap between the two halves.
Don't replace the fixed width with a 100% width otherwise you get the "large gab" effect your are getting right now.
Reply With Quote
  #26  
Old 09-30-2010, 11:36 AM
stained stained is offline
 
Join Date: Jun 2009
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Thanks. I haven't changed anything to be honest. I just inserted the code as you posted it.
Reply With Quote
  #27  
Old 09-30-2010, 11:56 AM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did get it to sort of work on fuid styles, But there are two separate CSS attributes one for the ad and one for the welcome text. I was able to make the welcome half fluid But on lower res screens the two halfs would stack and that wasnt the outcome i was hoping for so i set it back to static for the time being.. Either way im getting good clicks from this.
Reply With Quote
  #28  
Old 09-30-2010, 12:14 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VonDoom View Post
Either way im getting good clicks from this.
Yeah the CTR is quite good for forums
Reply With Quote
  #29  
Old 10-04-2010, 03:00 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2nd post updated.

Optimization for using the full potential of "placement targeting" described.

I hope you like it!
Feedback is very welcome
Reply With Quote
  #30  
Old 10-04-2010, 10:06 AM
ckeins ckeins is offline
 
Join Date: May 2004
Location: Berlin
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod. Installed!

I first had problems, as I didn't noticed to "deactivate" the standard guest notice.

It works very good now, and I'm looking forward to get more clicks.

Edit:

I'm running Photopost Gallery on my forums and I recognized, that the additional.css wasn't loaded automatically. It was missing in the header-inc.php. You have to add the red code.
Code:
$extracss = "<link rel=\"stylesheet\" type=\"text/css\" href=\"$vboptions[bburl]/css.php?styleid=$vbstyleid&amp;langid=$vblang&amp;d=$vbdate&amp;sheet=forumbits.css\" />
	<link rel=\"stylesheet\" type=\"text/css\" href=\"$vboptions[bburl]/css.php?styleid=$vbstyleid&amp;langid=$vblang&amp;d=$vbdate&amp;sheet=forumhome.css\" />
	<link rel=\"stylesheet\" type=\"text/css\" href=\"$vboptions[bburl]/css.php?styleid=$vbstyleid&amp;langid=$vblang&amp;d=$vbdate&amp;sheet=forumdisplay.css\" />
	<link rel=\"stylesheet\" type=\"text/css\" href=\"$vboptions[bburl]/css.php?styleid=$vbstyleid&amp;langid=$vblang&amp;d=$vbdate&amp;sheet=additional.css\" />";
Reply With Quote
  #31  
Old 10-19-2010, 03:53 PM
TalkDisneyChann TalkDisneyChann is offline
 
Join Date: Jul 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason I can't get to the border to show. It's not the same color as the background, so im not sure what the problem is.
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 07:43 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.07897 seconds
  • Memory Usage 2,350KB
  • 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
  • (4)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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