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 |
|
Code Monkey
Administrator
|
vBulletin Version: 3.6x |
Mod Version: 1.0 |
Released: 11-14-2006 |
Installs: 22 |
Last Update: 11-13-2006 |
Rating:  |
|
|
|
|
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>
|
|
|
|
11-18-2006, 06:54 AM
|
#2 (permalink)
|
|
Junior Member
Join Date: Nov 2006
Posts: 8
|
Code:
google_ad_channel ="7167260008";
That line should also be changed
|
|
|
11-18-2006, 08:00 AM
|
#3 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,236
|
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.
|
|
|
11-20-2006, 04:42 PM
|
#4 (permalink)
|
|
Junior Member
Join Date: Nov 2006
Posts: 5
|
thanks for the tip. i'll try it on my board.
|
|
|
11-25-2006, 07:08 AM
|
#5 (permalink)
|
|
Junior Member
Join Date: Nov 2006
Posts: 8
|
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.
|
|
|
11-25-2006, 08:21 AM
|
#6 (permalink)
|
|
Senior Member
Join Date: May 2006
Location: France
Posts: 458
|
his board is using this .... not in every section but on normal forum pages.
|
|
|
11-25-2006, 08:43 AM
|
#7 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,236
|
This board uses it in normal vBulletin threads. Check it out and vist it our sponsors while your at it. 
|
|
|
11-25-2006, 09:15 AM
|
#8 (permalink)
|
|
Junior Member
Join Date: Nov 2006
Posts: 8
|
sure will,thanks...
|
|
|
11-27-2006, 07:12 PM
|
#9 (permalink)
|
|
Junior Member
Join Date: Nov 2006
Posts: 8
|
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?
|
|
|
11-27-2006, 07:44 PM
|
#10 (permalink)
|
|
Senior Member
Join Date: Oct 2006
Posts: 475
|
Quote:
Originally Posted by sidewinder1
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.
|
|
|
11-27-2006, 10:41 PM
|
#11 (permalink)
|
|
Junior Member
Join Date: Nov 2006
Posts: 8
|
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?
|
|
|
11-27-2006, 11:29 PM
|
#12 (permalink)
|
|
Senior Member
Join Date: Oct 2006
Posts: 475
|
Quote:
Originally Posted by sidewinder1
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.
|
|
|
11-27-2006, 11:34 PM
|
#13 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,236
|
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.
|
|
|
11-28-2006, 12:13 PM
|
#14 (permalink)
|
|
Junior Member
Join Date: Nov 2006
Posts: 8
|
sorry,thanks I will
|
|
|
12-19-2006, 10:14 PM
|
#15 (permalink)
|
|
Junior Member
Join Date: Dec 2006
Posts: 12
|
I also have this installed on my board, and it's pretty neat 
|
|
|
03-03-2007, 11:56 PM
|
#16 (permalink)
|
|
Junior Member
Join Date: Feb 2007
Posts: 11
|
How would I make a custom profile field that if a correct "ad removal key" the ads are removed?
|
|
|
03-15-2007, 01:37 AM
|
#17 (permalink)
|
|
Junior Member
Join Date: Mar 2007
Posts: 6
|
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
|
|
|
08-13-2007, 12:57 PM
|
#18 (permalink)
|
|
Junior Member
Join Date: Jun 2007
Location: Maryland, USA
Posts: 17
|
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.
|
|
|
10-03-2007, 09:06 PM
|
#19 (permalink)
|
|
Subscriber
Join Date: Oct 2007
Location: Australia
Posts: 12
|
Re: vBulletin Modder adsense after first post
Can this be changed for use with openads?
|
|
|
10-07-2007, 09:12 AM
|
#20 (permalink)
|
|
Junior Member
Join Date: Oct 2007
Posts: 1
|
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
|
|
|
10-07-2007, 12:31 PM
|
#21 (permalink)
|
|
Administrator
Join Date: May 2006
Posts: 2,236
|
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.
|
|
|
10-29-2007, 08:56 PM
|
#22 ( | |