vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Adsense integration together with nice welcome message - StarBuG optimized blending (https://vborg.vbsupport.ru/showthread.php?t=250649)

StarBuG 09-15-2010 10:00 PM

Adsense integration together with nice welcome message - StarBuG optimized blending
 
1 Attachment(s)
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:
https://vborg.vbsupport.ru/external/2010/09/16.png

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 :p

StarBuG

https://vborg.vbsupport.ru/

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

StarBuG 09-16-2010 08:33 PM

2 days ago I made a big change to my website that hopefully will increase my earnings a lot over time.

So far I made extensive use of Adsense channels to track each of my Ads separately.
I also activated "placement targeting" for the best performing ad placements.

However I did not realize the full potential of "placement targeting" until 3days after I talked to my direct advertising marketer.

Q: What is the main goal of an advertiser?
A: To show there ads to their target group which most likely will convert

Q: Is wider or narrower targeting more effective?
A: I think it depends but mostly the more narrow the target group is, the better the Ads perform

Just as info to you:
CPM prices for a very narrow targeting e.g. topics about "cough" or "skin rash" are 40-50$ (campaigns that my direct advertising marketer runs)
Campaigns that are not that narrow e.g. health only get 10-20$ CPM.
Yes, it makes that much of a difference.

So what did I do?

I created a separate channel for each forum category that is interesting to advertisers e.g. health, diseases, nutrition, alternative medicine, etc. for the ad in this welcome message.
Each of these channels was selected for placement targeting and got a description that outlined the topics in which these ads will be shown.

Then I created several large rectangle ads and assigned each one a category channel I created before.

Now each thread in a specific forum shows the Ad with the channel that was created for this specific forum.
(At the bottom you'll find the condition chain I created to show different ad channel in each forum)

Now each advertiser can narrow down the placement targeting on my website to a certain topic which suites his campaign best.
For example an advertiser who is selling homeopathy can now target his Ads to my forum "alternative medicine" and his ads are only shown to people interested in "alternative medicine".
This way conversion and CTR should increase quite a bit and a lot more advertisers should use placement targeting on my website over time and with that increase my earnings.

To understand the naming concept for channels that I use read my post:
Google Adsense - The Secret to using Channels

Remember if you create these channels activate placement targeting for each channel and use a informative description!
I used:

Quote:

Show this channel to advertisers as an ad placement: YES
Ads appear on: other pages > TOPIC of the forum (e.g. alternative medicine)
Ad location: Top Center
Description: Your Ads will only appear on discussion pages with the topic "Topic of your forum". Short Description of my website.
and here is the condition code you can wrap around the above posted mod code:

Code:

<vb:if condition="THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'index' AND THIS_SCRIPT != 'showthread' AND !$show['notices'] AND $show['guest']">

WELCOME Message + LARGE RECTANGLE that is shown on all places except Homepage, Threads and Search.
I called the channel "PatFra - LR - Welcome Remainder"

</vb:if>

<vb:if condition="THIS_SCRIPT == 'showthread' AND !$show['notices'] AND $show['guest']">
 <div class="ads_lr_wrapper">
  <div class="ads_lr">
  <vb:if condition="$GLOBALS[forumid] == ForumID">
   
    ADSENSE Code for Large Rectangle shown on all Threads (and threads only!) in my "Health and prevention" forum
    Channel: PatFra - LR - WT - Health & Prevention
    (PatFra = Patientenfragen.net = Website Tag | LR = Large Rectangle = Ad Size | WT = Welcome message in Thread = Ad Location | Health & Prevention = Forum / Topic)
   
  <vb:elseif condition="$GLOBALS[forumid] == ForumID" />
 
    ADSENSE Code for Large Rectangle shown in my "Deseases" Forum
    Channel: PatFra - LR - WT - Deseases 

  <vb:elseif condition="$GLOBALS[forumid] == ForumID" />
   
    and so on.......

  <vb:else />
   
    ADSENSE Code for Large Rectangle shown in all Forums that are not interesting for placement targeting
    e.g. introductions, shit chat, news, etc.
    Channel: PatFra - LR - WT - Rest
   
   
  </vb:if>
  </div>
  <div class="ads_lr_welcome">

  Welcome message, for the code look in the mod thread above

  </div>
 </div>
</vb:if>

<vb:if condition="THIS_SCRIPT == 'index' AND !$show['notices'] AND $show['guest']">
 
 Welcome Message and Adsense Large rectangle Ad shown on Forum index only.
 Channel: PatFra - LR - Welcome Home
 This ad location is also interesting for many advertisers because
 some advertisers want to only show their ads on the homepage and not on subpages.
 
</vb:if>




What are your thoughts on this topic?
How do you handle placement targeting?

VonDoom 09-17-2010 01:09 AM

Installed rated and nominated.. Ive been looking for this for a cpl years now.. Thanks you very very much.. This little hack will finally complete my customizations!!!

Not really installed yet but clicked anyways because one way or another im going to make this work on my fluid style..

gwerzal 09-17-2010 05:24 PM

can ya please post a url up vondoom once you have done it so i can see what it looks like on a fluid theme

VonDoom 09-17-2010 07:08 PM

Sure im using it now, just click the doberman-chat link in my sig! Im still putting some thought into how to make it fluid. But i have no complaints. I think for now the 1024px compromise will work out fine for me.

http://img409.imageshack.us/img409/2...10155444sm.jpg

gwerzal 09-18-2010 01:59 AM

Iv not tried it yet but how abouts if you move it and put it so the sidebar goes along side it.

g00gl3r 09-18-2010 07:34 PM

Doesn't seem to be working on savs.co.uk.

Does this line need changing to just show if the visitor is a guest?
Code:

<vb:if condition="THIS_SCRIPT != 'search'  AND !$show['notices'] AND $show['guest']">

StarBuG 09-19-2010 01:00 PM

Just remove
Code:

THIS_SCRIPT != 'search'  AND !$show['notices'] AND
and the only condition is that only guests see it

Winter Sonata 09-19-2010 05:56 PM

Dear StarBuG :)

Your forum is well organized, Good luck with it.
i am eager to know how you have 2 languages interface ?

Thank you so much for this modification

StarBuG 09-19-2010 06:00 PM

i use vbenterprisetranslator.com but there are hacks available here for free too

And thank you ;)

Winter Sonata 09-19-2010 11:09 PM

Dear friend, please state this in the first post
Remove
Code:

THIS_SCRIPT != 'search'  AND !$show['notices'] AND
It works only when I delete it.....

Thanks , looking for other modifications :)

StarBuG 09-20-2010 08:34 AM

remove = delete ;)

bada_bing 09-20-2010 06:30 PM

Any way to post this great mod for vb 3.8.x ?

StarBuG 09-21-2010 06:28 AM

I don't run any 3.8 version anymore, sorry

bada_bing 09-21-2010 02:24 PM

Quote:

Originally Posted by StarBuG (Post 2101286)
I don't run any 3.8 version anymore, sorry

Awe weak..... (-:

StarBuG 09-21-2010 02:42 PM

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 ;)

m2006 09-22-2010 07:41 AM

wow.. optimize thanks you very good

SeZoNaS 09-23-2010 06:22 PM

installed ,,, so great

Blessewe 09-28-2010 02:19 PM

Hello, for some reason this only shows up after log out and not before log in. Did I do something wrong?

StarBuG 09-28-2010 02:39 PM

If you want it to show for members and guests remove:

Code:

AND $show['guest']

bandare 09-29-2010 02:58 AM

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!

stained 09-29-2010 11:38 AM

1 Attachment(s)
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

bada_bing 09-29-2010 03:38 PM

Quote:

Originally Posted by StarBuG (Post 2101441)
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.

StarBuG 09-30-2010 11:10 AM

Quote:

Originally Posted by stained (Post 2104588)
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.

stained 09-30-2010 11:36 AM

Hi,

Thanks. I haven't changed anything to be honest. I just inserted the code as you posted it.

VonDoom 09-30-2010 11:56 AM

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.

StarBuG 09-30-2010 12:14 PM

Quote:

Originally Posted by VonDoom (Post 2105042)
Either way im getting good clicks from this.

Yeah the CTR is quite good for forums :p

StarBuG 10-04-2010 03:00 AM

2nd post updated.

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

I hope you like it!
Feedback is very welcome

ckeins 10-04-2010 10:06 AM

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\" />";


TalkDisneyChann 10-19-2010 03:53 PM

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.

synseal 10-19-2010 07:11 PM

Hello, thank you for sharing this excellent mod, is there a way of adding another advertising block at the side of the first one.

When I try to add it in the navbar template after the first advert, it just adds the second add below rather than at the side of the 1st add.

Many thanks.

ictvb 10-19-2010 08:55 PM

Looks neat StarBuG. Do you know if this combination performs better than 2 large rectangles next to each other? (as suggested by many forum ad placement tutorials).

guni75 10-20-2010 06:39 AM

Thanks for the good add on for my guests. ;)

I have a fluid theme and i try to put it in a table. But then have a problem with the background from forum. the background stop direkt under your add on.

what is the right way?

Sorry about my english and i dont know so much about html and css.

Thanks

barcena 10-23-2010 06:13 AM

I can't get the two to be on the same rectangle.

The adsense will be on top of the Please Register blah blah blah, instead of everything looks "horizontal" it looks like "vertical", the Adsense in top of the invitation to join the site instead of been side by side.

Help Please.

Also, how can I make a border to wrap the whole thing like StarBug did on his site?

Thanks so much.

StarBuG 10-23-2010 07:12 AM

Quote:

Originally Posted by TalkDisneyChann (Post 2111691)
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.

Which border?

Quote:

Originally Posted by synseal (Post 2111758)
Hello, thank you for sharing this excellent mod, is there a way of adding another advertising block at the side of the first one.

When I try to add it in the navbar template after the first advert, it just adds the second add below rather than at the side of the 1st add.

use float:left; as additional CSS command for the first Ad, that should do the trick.

Quote:

Originally Posted by ictvb (Post 2111795)
Looks neat StarBuG. Do you know if this combination performs better than 2 large rectangles next to each other? (as suggested by many forum ad placement tutorials).

Did not try that but I hate it to slap ADs into my users faces.
I want to at least offer them something which is the welcome and call to action.
But that is my approach, feel free to test other ways.

Quote:

Originally Posted by barcena (Post 2113073)
I can't get the two to be on the same rectangle.

The adsense will be on top of the Please Register blah blah blah, instead of everything looks "horizontal" it looks like "vertical", the Adsense in top of the invitation to join the site instead of been side by side.

Help Please.

Also, how can I make a border to wrap the whole thing like StarBug did on his site?

Sounds like you forgot to add the code into the additional.css template.
Without the CSS the mod wont work.

barcena 10-23-2010 07:37 AM

No I dind't forgot StarBug, in fact I actually changed the colors and all. But it just won't work side by side but rather one in top of the other and it does looks pretty awful. :(

PS. I copied the following, one into the Navbar and the other into the additional.ccs template

PHP Code:

<vb:if condition="THIS_SCRIPT != 'search'  AND !$show['notices'] AND $show['guest']">
 <
div class="ads_lr_wrapper">
  <
div class="ads_lr">
    <
script type="text/javascript"><!--
google_ad_client "pub-xxxxxxxxxxxxxxx";
/* 336x280, created 10/22/10 */
google_ad_slot "xxxxxxxxxxxxxxxx";
google_ad_width 336;
google_ad_height 280;
//-->
</script>
<
script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</
script>
  </
div>
  <
div class="ads_lr_welcome">
   <
p id="welcome_bold_big">Welcome to sdadfadfdf!</p><br>
     
     <
p id="welcome_normal">More adsfadfad blah blah dfadfa!"</p><br>
     
            <ul>
             <li><b>&nbsp;&raquo;</b>  adfadfadfadf</li> 
             <li><b>&nbsp;&raquo;</b>  sdfasdfasdfadf</li> 
             <li><b>&nbsp;&raquo;</b>  asdfasdfadfad</li>
             <li><b>&nbsp;&raquo;</b>  asdfsdfdf</li>
            </ul>
            
            <br>
            
            <p id="
welcome_bold">.Etc etc etc</p><br>

            <p id="
welcome_normal">blah blah blah!</p><br>
            
            <p id="
welcome_bold_big"><a href="http://www.xxxxxxx.com/register.php">Register blah blah blah  </a></p><br />
            
            
<p id="welcome_small">Yadah Yadah ?etc etc adfadjkfadkjfadjf!</p>
  </
div>
 </
div>
</
vb:if> 

PHP Code:

.ads_lr_wrapper {
    
border2px solid #FFCC66;
    
-moz-border-radius-bottomleft:5px;
    -
moz-border-radius-bottomright:5px;
    -
moz-border-radius-topleft:5px;
    -
moz-border-radius-topright:5px;
    
background#ECE8DB;
    
width:850px;
    
height:290px;
    
padding5px 5px 5px 5px;
}

.
ads_lr {
    
positionrelative;
    
background#ECE8DB;
    
width336px;
    
margin-left10px;
    
margin-right30px;
    
float:left;
}

.
ads_lr_welcome {
    
background#ECE8DB;
    
positionrelative;
    
width460px;
    
margin-top10px;
    
margin-leftauto;
    
margin-right10px;
    
float:right;
}

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

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

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

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



StarBuG 10-23-2010 08:02 AM

Send me your link and I take a look.

But I guess that your welcome text is larger then 460px and that is causing the problem

stained 10-23-2010 08:51 AM

I've been using this (and your other enhancements for second and last posts) for the last few weeks and they are performing much better than anything else I've tried. The welcome message has performed particularly well so thank you very much for sharing your ideas StarBuG. The only change I made was to enter an extra line at the end of the welcome text to tell people to scroll down the page :)

StarBuG 10-23-2010 02:05 PM

You are welcome

As a German I just hope that you don't uphold nor emphasise the stupid ideology from the topic of your forum.
We all need to learn from our history otherwise it will repeat itself in our future and effect us and our children for the worse.

I also hope that you considered the Google program policies:

Quote:

Sites with Google ads may not include or link to:
  • Content related to racial intolerance or advocacy against any individual, group or organisation


stained 10-23-2010 04:02 PM

My forum doesn't contain 'ideology'. It's a militaria forum for collectors - something which is stated quite clearly in the box you designed and which I'm quite sure you looked at...

However, even if it were the type of forum you mentioned it would frankly have absolutely nothing to do with you. How dare you even mention that in this thread.


All times are GMT. The time now is 07:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01865 seconds
  • Memory Usage 1,927KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete