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




Adsense or Banner After The First Post -3.6x

Joeychgo
10-10-2006, 09:59 PM
Admin CP -> Styles & Templates -> Style Manager -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you are using)

Look for this line of code. It should be the last line of code in the template


<!-- / post $post[postid] popup menu -->

Now ad this below:


<div style="padding: $stylevar[cellpadding]px 0px 0px 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">

ADSENSE or IMAGE CODE HERE

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

</div>

Joeychgo
10-10-2006, 10:03 PM
One conditional for this -

If you want ONLY guests to see the ad -

before the code I gave you to add -- place this:

<if condition="$post[postcount] == 1 AND !$bbuserinfo[userid]">


And after the code I gave you add

</if>


You can do other conditionals, but this one I thought might be commonly requested so I tossed it in.

utw-Mephisto
10-11-2006, 09:53 AM
sweet :) thanks .. although for the moment I keep my forum ad-free .. but good reference :)

top
10-26-2007, 04:51 AM
There's problem when you reply a message, after the adsense mod was installed.

Here's the direct link:
http://www.awdforums.com/page-loading-problem-t809.html

Anybody know how to fix the problem?

Albahri65
11-24-2007, 02:55 PM
There is another problem. The Google Ads repeated every post!! But, I want it after the first post only.

qryztufre
02-21-2008, 05:42 AM
Is it possible to make this show after the first unread post? Many of my threads are multiple pages and I feel I am loosing some revenue due to guests not clicking into the first page.

qryztufre
02-21-2008, 07:16 AM
I think I found the answer here: http://www.vbulletin.org/forum/showthread.php?t=138312

I changed this line:


<if condition="$post[postcount] == 1 AND !$bbuserinfo[userid]">

With this line:
<if condition="in_array($post['postcount'], array(1, 11, 21, 31, 41, 51)) AND !$bbuserinfo[userid]">

and it shows after the first post in the first 5 pages (assuming the default 10 posts per page is in effect).

Joeychgo
02-21-2008, 10:32 AM
Interesting. Nice find.

qryztufre
02-22-2008, 07:09 AM
Interesting. Nice find.

*nod* I could not find just how to get it after the first unread post, putting it on every page certainly helps.

As most topics do not make it all the way to 5 pages, I figured that putting it out to there should be good enough for most of my needs. Most pages on my forum that make it out past that point are "fun & games" type things, so meh, they would likely not convert much anyway. The array can likely go on & on & on so you can get ads on as many pages as possible.

It is important to note that if you have your default page breaks set to 40 or more, then you will break the adsense TOS by putting 4 ads on a page. Likewise, if you decrease the numbers then keep in mind how many posts per page and the rules of Google (or any adnetwork).

It's also important to note, that the pages start with a x1 rather then an x0 (as in 11, not 10, or 51 not 50). I first put it as 1, 10, 20, x and got two ads on the first page and nothing at the top of the second :D

Either way though, I think I am happy with this.


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