AdSense inside the 2nd post - by AdSenseExperts.com
AdSense inside the 2nd post v1.0 - AdSenseExperts.com Exclusive
Hello This is another AdSense implementation for your vBulletin 4.0 Forum. This placement is exclusively released for AdsenseExperts.com. You are allowed to use this placement on your own forum, however republishing this modification on other website is only allowed with prior written consent by me. What this mod does: This mod adds a Google Adsense rectangle inside the 2nd post of each thread and page. It is blended to complement your forum content but is clearly labeled as Ad to strictly separate Ads from content. This approach is taken for the reasons discussed here: http://www.adsenseexperts.com/adsense-placements/blending-bad-business-t46.html Make sure you use the same colors as you use on your forum to optimize blending! This mod goes perfectly with my other AdSense Integration mods: http://www.adsenseexperts.com/adsense-placements/adsense-inside-post-adsenseexperts-exclusive-t47.html http://www.adsenseexperts.com/adsense-placements/adsense-inside-post-adsenseexperts-exclusive-t67.html If you want to display the AD in the 2nd post on the right side of the content like in the AdSense inside the first post mod, simply copy the code and CSS from there. This mod shows the AD only to GUESTS! If you want to show it to your members as well remove the "$show['guest']" condition! Installation instructions: in the template additional.css add: Code:
/*------------------------------------------------------------------------------ | #> AdSense Rectangle inside 2nd post. By AdsenseExperts.com +-----------------------------------------------------------------------------*/ .float_spacer_left { float:right; width: 1px; height: 50px; } .AdInline_left { clear:right; float:left; } .AdLR336_left { margin-bottom:20px; margin-left:0px; margin-right:15px; width:336px; text-align:center; } .AdLR336_left .AdDottedLine, .AdDottedLine { float:none; margin:0; padding:0; width:100%; } .AdInline_left .AdLR336_left h5 { width:330px; font-size:10px !important; font-weight:normal; text-align:right; line-height:normal; margin:0; padding:0; font-family:verdana,arial,helvetica,geneva,sans-serif; z-index:10;} .AdCommercial { overflow:hidden; background-color:#FAFAFA; } .AdCommercialInner { margin-bottom:10px; margin-top:-10px; } .AdDottedLineTop { background-image:url(images/bg_maincontainer_line.gif); background-repeat:repeat-x; margin-bottom:10px; padding-bottom:10px; font-size:1px; height:1px !important; line-height:1px; width:100%; } .AdDottedLineBottom { background-image:url(images/bg_maincontainer_line.gif); background-repeat:repeat-x; margin:0px; padding:0; font-size:1px; height:1px !important; line-height:1px; width:100%; } .AdCenter { align:center; margin:0; padding:0;} .bbcode_container div.bbcode_quote { clear:both; } Code:
{vb:raw post.message} Code:
<vb:if condition="$show['guest'] AND $post[postcount] % $vboptions[maxposts] == 2"> <div class="float_spacer_left"></div> <div class="AdInline_left"> <div class="AdCommercial AdLR336_left"> <div class="AdDottedLineTop"></div> <div class="AdCommercialInner"> <h5>ADVERTISING</h5> <div class="AdCenter"> YOUR ADSENSE RECTANGLE CODE HERE </div> </div> <div class="AdDottedLineBottom"></div> </div> </div> </vb:if> Additional Comments: Make sure you change all lines marked RED to fit your forum. I added the background image for the dotted line as attachment. If you are using my Mod http://www.adsenseexperts.com/adsense-placements/adsense-inside-post-adsenseexperts-exclusive-t67.html you need to change the condition: Code:
<vb:if condition="$show['guest'] AND $post[postcount] % $vboptions[maxposts] == 2"> Code:
<vb:if condition="$show['guest'] AND $post[postcount] % $vboptions[maxposts] == 2 AND !$post['islastshown']"> I added a float_spacer which lets the text flow around the AD. Depending on the hight you set the more lines of text will be above the AD. But in a Forum where you don't have an influence on the length of the posts you should make a compromise otherwise all text will be above the AD which defeats the purpose of this implementation. If you want the text to start on the right side with the AD and not on top just set the hight of the float_spacer to 0px. Screenshot: Versions: v1.0: initial release Of course feedback is welcome and if you have suggestions to further improve CTR please let me know! Regards StarBuG http://www.AdSenseExperts.com http://www.adsenseexperts.com/consulting/adsense-optimization-service.html Download
bg_maincontainer_line.zip (194 Bytes, 57 downloads) |
Similar Mods
Mini Mods adsense unit on 2nd post and 1st profile on every thread page | vBulletin 3.6 Template Modifications |