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)
-   -   Show Thread Enhancements - Adsense Integration above similar threads - StarBuG optimized blending (https://vborg.vbsupport.ru/showthread.php?t=249058)

StarBuG 08-20-2010 10:00 PM

Adsense Integration above similar threads - 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 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:
https://vborg.vbsupport.ru/external/2010/09/14.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!

StarBuG

https://vborg.vbsupport.ru/

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

StarBuG 08-21-2010 12:11 PM

first post reserved

NightLord 08-21-2010 03:51 PM

thank you very good :P

rtyagis 08-22-2010 10:46 AM

Installed. For Demo - www.policywala.com/forum.php

asus78 08-22-2010 11:12 PM

Quote:

Originally Posted by rtyagis (Post 2087747)
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

WriteToEnlight 08-24-2010 10:37 AM

Quote:

Originally Posted by asus78 (Post 2088029)
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?

StarBuG 08-26-2010 09:31 AM

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

Veer 09-17-2010 05:22 PM

Is this ad allowed by google adsense for every publisher?

https://vborg.vbsupport.ru/external/2010/09/14.png

StarBuG 09-19-2010 12:56 PM

why shouldn't it?

Hawkgirl 11-06-2010 12:41 AM

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!


All times are GMT. The time now is 10:28 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.01040 seconds
  • Memory Usage 1,748KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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