Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Show Adsense After post number "x" and "x" Details »
Show Adsense After post number "x" and "x"
Mod Version: 1.00, by mcyates (Member) mcyates is offline
Developer Last Online: Jul 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.4 Rating: (2 votes - 4.00 average) Installs: 28
Released: 03 Feb 2007 Last Update: Never Downloads: 117
Supported Template Edits  

Works With Vbulletin V3.7.2

This is a very simple template modification have similar to absence hack and the random postbit advert hack. But you have more control with this hack as you change the option for where the adverts will appear "after which message"

Add one of these codes to the bottom of your postbit template.

Here are the codes:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The above code would show an ad after the first post on every thread. Change this number to show the advert under a different post. Or use loads together like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The above will show adverts after the 1st, 10th and 20th post in every thread.

Also there is another way for doing this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Enjoy!!

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements Show Adsense After post number "x" and "x" mcyates vBulletin 3.7 Add-ons 11 13 Jul 2009 21:45
Show Ads After post number "x" and "x" mcyates vBulletin 3.5 Template Modifications 18 18 Jun 2007 12:42

Comments
  #2  
Old 03 Feb 2007, 19:28
rezapci's Avatar
rezapci rezapci is offline
 
Join Date: May 2004
awesome Reserved
Reply With Quote
  #3  
Old 02 Mar 2007, 21:58
2 FN LOW 2 FN LOW is offline
 
Join Date: Feb 2007
any idea how to get rid of this space?



heres the code i added at the bottom

<if condition="in_array($post['postcount'], array(5,15,25, 35,45,55,65,75,85,95,100,115,125,135,145,155,165,175,185,195,205))">
<if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3, 4,5,6,7,8, 9))">
$spacer_open

<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
<td class="alt1" align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-5795442351285075";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "34383C";
google_color_bg = "34383C";
google_color_link = "FFFFFF";
google_color_text = "999999";
google_color_url = "999999";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>
</div>
$spacer_close
</if></if>
would like to click install if i can get this space removed and have it sit flush like it does on the top..Either that or give it a space at the top like the bottom...I would prefer no space at all though

Last edited by 2 FN LOW; 03 Mar 2007 at 05:05.
Reply With Quote
  #4  
Old 05 Mar 2007, 21:39
JJH35 JJH35 is offline
 
Join Date: Aug 2004
that screenshot is hardly viewable...
Reply With Quote
  #5  
Old 09 Mar 2007, 12:13
cddw.ltd cddw.ltd is offline
 
Join Date: Aug 2004
Originally Posted by JJH35 View Post
that screenshot is hardly viewable...
Take the .th. out before the .jpg and you get the full image -



Reply With Quote
  #6  
Old 10 Mar 2007, 11:04
mcyates mcyates is offline
 
Join Date: Jan 2003
Real name: Michael C Yates
The space is the natural space that happens between each post. I'll try to add a space to the top of the advert for you.
__________________
MY FOOTBALL FORUM
World Wide Football Discussion Forum
Reply With Quote
  #7  
Old 10 Mar 2007, 16:26
Smoothie Smoothie is offline
 
Join Date: Oct 2001
$spacer_open and $spacer_close is the problem.
Reply With Quote
  #8  
Old 11 Mar 2007, 09:42
mcyates mcyates is offline
 
Join Date: Jan 2003
Real name: Michael C Yates
I tried to remove them but it didn't help. There was still a gap on the bottom side.
__________________
MY FOOTBALL FORUM
World Wide Football Discussion Forum
Reply With Quote
  #9  
Old 14 Mar 2007, 20:23
Xtrm2Matt Xtrm2Matt is offline
 
Join Date: Aug 2002
Simply add <br /> before $spacer_open. Example:
<br />
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
Reply With Quote
  #10  
Old 14 Mar 2007, 22:45
starww starww is offline
 
Join Date: Mar 2007
its really a useful stuff !

thanks for sharing
Reply With Quote
  #11  
Old 14 Mar 2007, 23:56
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
thanks for sharing
Reply With Quote
  #12  
Old 20 Mar 2007, 15:48
proxx proxx is offline
 
Join Date: Oct 2003
does anyone know how to get rid of that space on the left and right of the ad box?

Reply With Quote
  #13  
Old 22 Mar 2007, 22:58
Chris-777's Avatar
Chris-777 Chris-777 is offline
 
Join Date: Jan 2006
Real name: Chris
At a guess (I don't have this installed), change:

google_ad_width = 468;


To whatever your default template scaling is. So something like:

google_ad_width = 95%;
Reply With Quote
  #14  
Old 23 Mar 2007, 06:54
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Real name: Call me X

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I through the <!-- controls --> part in for reference as to where I am using the code. I actually tried both if conditions referring to post count(not worried about the user group condition)
and neither condition worked for anything but the first post.
Reply With Quote
  #15  
Old 26 Mar 2007, 08:57
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Real name: Atakan KOÇ
Thanks...
__________________
vBulletin 5 : http://www.atabb.com/
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 17:37.

Layout Options | Width: Wide Color: