Go Back   vBulletin Modification Discussions > Free vBulletin Modification Releases > vBulletin Template Modifications
Home Register FAQ Members List Calendar Mark Forums Read
vBSEO Info Tags

About This Page: This is a discussion on vBulletin Modder adsense after first post within the vBulletin Template Modifications forums, part of the Free vBulletin Modification Releases category, at vBulletin Modification Discussions. There have been many posts asking how we get the adsense after the first post here. Lot's of people have this and this is just a compilation of things I have tried over time. So it's not original


Comment
 
LinkBack Release Tools
Code Monkey
Administrator
Code Monkey's Avatar

vBulletin Version: 3.6x
 

Mod Version: 1.0
 

Released: 11-14-2006
 

Installs: 22
 

Last Update: 11-13-2006
 

Rating: Release Rating: 1 votes, 5.00 average.
 
Supported
DB Changes
Installer Included
Uses Plugins
Manual Template Changes
Automated Template Changes
Code Changes
Additional Files
Is a Beta!
Release

Release Tools
vBulletin Modder adsense after first post

There have been many posts asking how we get the adsense after the first post here. Lot's of people have this and this is just a compilation of things I have tried over time. So it's not original but it works.

Just place it at the bottom of your postbit or postbit_legacy template.

Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
    <div style="padding:6px 0px 0px 0px;margin-top:4px;">

    <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">
        <br />
<script type="text/javascript"><!--
google_ad_client = "pub-//your id goes here";
google_alternate_color = "444466";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="YOUR CHANNEL ID";
google_color_border = "EBE7DA";
google_color_bg = "EBE7DA";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
        </td>
    </tr>
    </table>

    </div>
</if>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-18-2006, 06:54 AM   #2 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 8
blacknight is on a distinguished road
Code:
google_ad_channel ="7167260008";
That line should also be changed
blacknight is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-18-2006, 08:00 AM   #3 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,237
Code Monkey is on a distinguished road
Obviously you would add all your own info. It's just a quick copy past from my template as requested. As well, you would want to change the color settings to match your style.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-20-2006, 04:42 PM   #4 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 5
Senhor Meursault is on a distinguished road
thanks for the tip. i'll try it on my board.
Senhor Meursault is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-25-2006, 07:08 AM   #5 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 8
sidewinder1 is on a distinguished road
does anyone have a board running this?I would like to see what it looks like... my site has a few sponcers and would like to move them from my headers.
sidewinder1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-25-2006, 08:21 AM   #6 (permalink)
Senior Member
 
Eric's Avatar
 
Join Date: May 2006
Location: France
Posts: 458
Eric is on a distinguished road
Send a message via ICQ to Eric Send a message via MSN to Eric
his board is using this .... not in every section but on normal forum pages.
Eric is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-25-2006, 08:43 AM   #7 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,237
Code Monkey is on a distinguished road
This board uses it in normal vBulletin threads. Check it out and vist it our sponsors while your at it.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-25-2006, 09:15 AM   #8 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 8
sidewinder1 is on a distinguished road
sure will,thanks...
sidewinder1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-27-2006, 07:12 PM   #9 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 8
sidewinder1 is on a distinguished road
So say i was wanting to ad my own image and url to this.Could you please post it so it shows where my image goes? I got the url part. and what about all the other google stuff? can it just go?
sidewinder1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-27-2006, 07:44 PM   #10 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
Quote:
Originally Posted by sidewinder1 View Post
So say i was wanting to ad my own image and url to this.Could you please post it so it shows where my image goes? I got the url part. and what about all the other google stuff? can it just go?
You could concievably, very easily swap out this code:

Code:
<script type="text/javascript"><!--
google_ad_client = "pub-//your id goes here";
google_alternate_color = "444466";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="7167260008";
google_color_border = "EBE7DA";
google_color_bg = "EBE7DA";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
With whatever you want.
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-27-2006, 10:41 PM   #11 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 8
sidewinder1 is on a distinguished road
maybe easier to say this...
ok my url when they click goes after src="my url when clicked"
my ? was where does my image url go so my own ad shows up?
and do I need all that google stuff in there?
sidewinder1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-27-2006, 11:29 PM   #12 (permalink)
Senior Member
 
G_Man's Avatar
 
Join Date: Oct 2006
Posts: 475
G_Man is on a distinguished road
Quote:
Originally Posted by sidewinder1 View Post
maybe easier to say this...
ok my url when they click goes after src="my url when clicked"
my ? was where does my image url go so my own ad shows up?
and do I need all that google stuff in there?
No, you don't need the Google stuff. Which is why I said you could replace that bit above.

You would put something like this in there:

Code:
<a href="your link here"><img src="path to your image here" alt="alt text here"></a>
Use the path for wherever on your server you have your image stored and it will show there instead of the google ad, linked to whatever link you use.

Hope that is what you meant.
G_Man is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-27-2006, 11:34 PM   #13 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,237
Code Monkey is on a distinguished road
Ok, this mod is for adding google adsense after the first post of a thread. Nothing more, nothing less. I you need help with something else then please make a thread in the vBulletin Modification discusion forums on this site. Thanks for your understanding.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-28-2006, 12:13 PM   #14 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 8
sidewinder1 is on a distinguished road
sorry,thanks I will
sidewinder1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-19-2006, 10:14 PM   #15 (permalink)
Junior Member
 
Join Date: Dec 2006
Posts: 12
Magnumutz is on a distinguished road
I also have this installed on my board, and it's pretty neat
Magnumutz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-03-2007, 11:56 PM   #16 (permalink)
Junior Member
 
Join Date: Feb 2007
Posts: 11
eliavsd is on a distinguished road
How would I make a custom profile field that if a correct "ad removal key" the ads are removed?
eliavsd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-15-2007, 01:37 AM   #17 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 6
basketmen is on a distinguished road
If you want this adsense code just shown in some categories dont use code above, but use this code





Quote:
<if condition="in_array($thread[forumid], array(5,6,7))">
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
<div style="padding:6px 0px 0px 0px;margin-top:4px;">

<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">
<br />
<script type="text/javascript"><!--
google_ad_client = "pub-//your id goes here";
google_alternate_color = "444466";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="7167260008";
google_color_border = "EBE7DA";
google_color_bg = "EBE7DA";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>

</div>
</if>
</if>


change 5,6,7 above to your ID forum you choose for shown adsense



This is very useful if your content language not supported by adsense (always show PSA),

like my forum http://www.indonesiaindonesia.com/forum/

i use this code adsense only show in English - FORUM indonesia forum
basketmen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2007, 12:57 PM   #18 (permalink)
Junior Member
 
Join Date: Jun 2007
Location: Maryland, USA
Posts: 17
Soynot69 is on a distinguished road
Re: vBulletin Modder adsense after first post

It's on my board and I've not had any problems with it as yet.
I like the idea that it doesn't flood the whole forum with ads like you get with some forums.
Soynot69 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-03-2007, 09:06 PM   #19 (permalink)
Subscriber
 
directprint's Avatar
 
Join Date: Oct 2007
Location: Australia
Posts: 12
directprint is on a distinguished road
Send a message via MSN to directprint
Re: vBulletin Modder adsense after first post

Can this be changed for use with openads?
directprint is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2007, 09:12 AM   #20 (permalink)
Junior Member
 
Join Date: Oct 2007
Posts: 1
darren1981 is on a distinguished road
Re: vBulletin Modder adsense after first post

i would like to know if this can be used with adbrite type.. im new to vBulletin.. tried your code in my 3.6.8 board and i cant even get it to give any indication that its going to work
darren1981 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2007, 12:31 PM   #21 (permalink)
Administrator
 
Code Monkey's Avatar
 
Join Date: May 2006
Posts: 2,237
Code Monkey is on a distinguished road
Re: vBulletin Modder adsense after first post

I don't use adbrite so I have no idea. Theoretically you would just replace the adsense code with whatever html they give you.
__________________
Please do not PM me unless it's personal. General vBulletin or mod questions by PM will be ignored.

Try the vBSEO Demo

Click here for Instant Community
Code Monkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-29-2007, 08:56 PM   #22 (