vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




[How To] Show A Banner Ad After The First Post In A Thread

Joeychgo
05-13-2005, 09:20 AM
Several people have asked me about this so here is a little instructions set on how to do this. Its pretty easy to do. With this you can place either a standard banner or your Google Adsense code below the first post of every thread.

I would recommend you use a 468x60 banner size only if your using adsense so you get the 2 highest paying ads available.

Find your postbit template (postbit or postbit_legacy - depending on which layout you are using)


Add this code to the very bottom of the template, after the very last line:


<if condition="$post[postcount] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left">Sponsored Advertisements</td>
</tr>
<tr>
<td class="alt1" align="center">

PLACE YOUR BANNER OR ADSENSE CODE HERE

</td>
</tr>
</table>
</if>

extreme-mobile
06-13-2005, 04:21 PM
hi

i seem to be getting just a blank box and no ads!

any ideas?

regards

dean

ResaleBroker
06-13-2005, 04:53 PM
Did you insert your "adsense" code?

Joeychgo
06-13-2005, 05:45 PM
Your ads are working.....

extreme-mobile
06-14-2005, 01:44 AM
yeh i pasted over the bit that said INSERT BANNER OR ADSENSE CODE HERE

here is screen shot of whats not happening :D

Joeychgo
06-14-2005, 01:48 AM
My friend, I told you - your ads are working.....

extreme-mobile
06-14-2005, 01:51 AM
its working on some but but not others

Joeychgo
06-14-2005, 03:09 AM
That has to do with other things - the ads are 'working'

Part of your problem is that you have the forums closed off -- unregistered guests, (which spiders are) cant read posts. SO the adsense spiders cant read the text on the pages and doesnt know what ads to run.

Beyond that, the search engine spiders cant index your pages either.

I would suggest you let unregistered guests view posts.

extreme-mobile
06-14-2005, 12:21 PM
ah right thanks ill look into that :)

djc
06-14-2005, 03:56 PM
Mine are occasionally blank also. Wrote it off as an adesnse glitch

Aeolian X
06-19-2005, 11:10 AM
My users HATED this hack. I recommend not using it, as it really seems to annoy people.

Scribbller
07-05-2005, 10:20 AM
You are going about it the wrong way ofcourse members will hate you for this that is why I used wonderfull conditionals system by VB to achieve this, adds will only be displayed to guests and will be displayed after first post on each page, we have 50 posts on one page so add is showing after 1st post, then 51st then 101st you can change that to suit your need. Here is my code, ofcourse I didnt make this code myself had help from admin of FansOfRealityTv but I have pretty much customized it to suit my need myself.
<!-- / post #$post[postid] -->
<if condition="($post[postcount] == 1 OR $post[postcount] == 51 OR $post[postcount] == 101 OR $post[postcount] == 151 OR $post[postcount] == 201 OR $post[postcount] == 251 OR $post[postcount] == 301 OR $post[postcount] == 351 OR $post[postcount] == 401 OR $post[postcount] == 451 OR $post[postcount] == 501 OR $post[postcount] == 551 OR $post[postcount] == 601 OR $post[postcount] == 651 OR $post[postcount] == 701 OR $post[postcount] == 751) AND $bbuserinfo[userid] == 0">

<if condition="$show['spacer']">$spacer_open<if condition="!$post['islastshown']"><div style="padding:0px 0px $stylevar[cellpadding]px 0px"></if></if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" $scrolltothis><div class="normal">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="" border="0" />&nbsp;&nbsp;
<if condition="$show['member']">
<a href="$vboptions[bburl]\register.php" style="text-decoration: none;">Remove this ad</a>
<else />
Welcome Guest - Register now to get rid of this add.
</if>
</div>
</td>
</tr>
<tr>
<td class="alt1">
<!-- Google AdSense Code -->

<!-- End Google AdSense Code -->
</td>
</tr>
</table>
<if condition="$show['spacer']"><if condition="!$post['islastshown']"></div></if>$spacer_close</if>
</if>
<!-- / Google AdSense Postbit Code -->
</if>

Aeolian X
07-05-2005, 06:29 PM
That's more like it. BTW, Ad is spelled A-D not A-D-D. A.D.D. is what my PITA Brother has. lol!

CentraOne
07-21-2005, 09:25 AM
I`ve got same problem with extreme-mobile, I can`t see my adsense when I open it with my real domain, but I can see when opened with redirect service

faizanno1
06-04-2007, 08:30 AM
i cant find the place where i can put this code plz help me

Joeychgo
06-04-2007, 03:18 PM
Read the instructions again - they are about as clear as can be.

faizanno1
06-05-2007, 06:30 AM
dear i dnot know what to do i add this code but its not working file plz tell me how to remove this erorr here is the pic

Joeychgo
06-05-2007, 09:35 AM
You added extra code somehow.

Delete what you have already added, and ad just the code in the first post.

MikeDammann
06-08-2007, 01:46 PM
implemented bot Joeys and post #12 code, and in both cases it show red lines underneath each word of the posts. Any idea what it could be?

Joeychgo
06-08-2007, 02:03 PM
Not sure - I looked on your site and didnt see the ads.

MikeDammann
06-08-2007, 02:08 PM
it's actually on www.frogengine.com/forum and it works with the adsense code, but when I entered the banner http://www.frogengine.net/hohoho.jpg it messed up

Added: nevermind, just added the banner in addition it now works, must have messed something up in the banner code first time :o

http://www.frogengine.com/forum/showthread.php?t=634

Joeychgo
06-08-2007, 02:10 PM
Try wrapping the ads in center tags -- also making the border on the banner=0

MikeDammann
06-08-2007, 02:20 PM
Done thanks! Thinking about adding another banner, but it might be too cluttered.

Joeychgo
06-08-2007, 06:10 PM
You really cant unless you go to 2 rows. A 3rd 468x60 will force the page too wide for most monitors.

MetalX
06-28-2007, 04:48 PM
The ads boarder merger with first post..How to make it have space like post space..

Joeychgo
06-28-2007, 05:54 PM
try adding <br /> after the first IF statement

MetalX
06-28-2007, 07:12 PM
try adding <br /> after the first IF statement

What you mean..How..??

Cyclops
07-12-2007, 06:53 AM
Do you do this in the Admin Control Panel or in Cpanel, I figured Cpanel but can't find any reference in there to postbit template (postbit or postbit_legacy.

Could someone show me the path to follow :please:....... show me the light before I :badpc: :D

Mike54
07-12-2007, 07:15 AM
You do it from within the Admin CP

Admin CP > Styles & Templates > Style Manager > << >> (expand the style you are modifying) > scroll down to Postbit Templates > Click Expand/Collapse and then modify whichever template you are using - postbit or posbit_legacy

Remember to Save your changes and you are finished.

Cyclops
07-12-2007, 08:13 AM
Thanks for that Mike54 .... worked a treat, I don't think I would ever have found that on my own :tiphat:.
I think others will find this very helpful as well.

Mike54
07-12-2007, 10:58 AM
I'm glad I was able to help you.

smellyfed
07-24-2007, 03:54 PM
Can this be made to work with a conditional? For instance, I might like to do some of this for my users who are too cheap to donate to my forums - make a particular usergroup see the ad and another group ad-free?

samj
08-28-2007, 04:53 PM
Does this work on 3.6.8?

LILMO
09-02-2007, 10:41 PM
thanx...

technom8t
01-02-2008, 03:41 PM
Can this be made to work with a conditional? For instance, I might like to do some of this for my users who are too cheap to donate to my forums - make a particular usergroup see the ad and another group ad-free?

i would like to know this also, can it be done for 1 forum only ie a guest forum??

thanks?

Joeychgo
01-02-2008, 10:12 PM
im not good at coding conditionals - but yes, I believe it can be done.

technom8t
01-06-2008, 08:13 AM
i would like to know this also, can it be done for 1 forum only ie a guest forum??

thanks?

BUMP!

can ay1 help please

Thanks in advance

gujju1234
01-17-2008, 08:53 PM
Not working. I tried. :( please help

windows vizta
01-18-2008, 09:14 AM
Can i add my banners - may b more than one - by sequence -- not to be same each time like ads?

gujju1234
01-21-2008, 02:04 PM
Thanks Joeychgo,

Its working perfectly fine but i have one request for you. It would be very nice if the ads appear in Actual thread.
Link, when you create a new thread ads apprear in the thread. look at the pic. you will get it. Thanks. Let me know if it possible or not.

http://i168.photobucket.com/albums/u162/highranger/Ads1.jpg


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum