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 inside the 2nd post - by AdSenseExperts.com Details »»
AdSense inside the 2nd post - by AdSenseExperts.com
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.1.2 Rating:
Released: 05-16-2011 Last Update: Never Installs: 9
Template Edits
 
No support by the author.

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/adsens...iness-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/adsens...usive-t47.html
http://www.adsenseexperts.com/adsens...usive-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; }
then open the template postbit_legacy and find:

Code:
{vb:raw post.message}
and add above:

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/adsens...usive-t67.html

you need to change the condition:
Code:
<vb:if condition="$show['guest'] AND $post[postcount] % $vboptions[maxposts] == 2">
to:
Code:
<vb:if condition="$show['guest'] AND $post[postcount] % $vboptions[maxposts] == 2 AND !$post['islastshown']">
If you don't change the condition you will get 2 Ads in one post if the 2nd post is the last post on any page.

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



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

Download Now

File Type: zip bg_maincontainer_line.zip (194 Bytes, 55 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-17-2011, 08:36 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First post reserved
Reply With Quote
  #3  
Old 05-17-2011, 11:00 PM
Special Pages Special Pages is offline
 
Join Date: Nov 2010
Location: www.TheDiscussionCafe.com
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice job mate!
Reply With Quote
  #4  
Old 05-21-2011, 03:39 PM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm i get the following error when installing..
Quote:
The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish
Reply With Quote
  #5  
Old 05-21-2011, 06:14 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was a copy&past error. Replace &quot; with " or reinstall the code above.
I fixed the bug
Reply With Quote
  #6  
Old 05-22-2011, 12:42 PM
preemz10314 preemz10314 is offline
 
Join Date: Oct 2010
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

keep em coming.. i love your integrations.
Reply With Quote
  #7  
Old 05-23-2011, 02:05 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks

I experiment a lot with placements however there are not many left
that bring in more money then the once that I published already.
But maybe I just did not discover them yet, we'll see...

So watch out for more
Reply With Quote
  #8  
Old 07-09-2013, 02:14 PM
Budget101 Budget101 is offline
 
Join Date: Jul 2008
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Float_Spacer isn't compatible with IE6 or IE7 and renders the ad BEHIND Text, which is a violation of Googles TOS.
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 01:50 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.06225 seconds
  • Memory Usage 2,296KB
  • Queries Executed 22 (?)
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
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete