The current Google Adsense Link units you have after the first and 10th post of every thread here on AA, how've you done that? E verytime I try to put an ad after "n'th" amount of posts, it only goes after the first one.. Would be mighty nifty to know how you did it, I'm assuming/hoping it's template controlled and not a mod? If you'd share, I'd appreciate it
I would assume that it's either a mod, or vB's own Adsense addition: http://members.vbulletin.com/adsense.php
All I did was add the following to the end of the postbit_legacy template: Code: <if condition="in_array($post['postcount'], array([COLOR=Red][B]1, 10[/B][/COLOR]))"><br /> <table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center"> <tr valign="top"> <td class="alt1"><div> <center> [COLOR=DarkGreen][I][B]GOOGLE ADSENSE CODE[/B][/I][/COLOR] </center> </div></td> </tr> </table> </if> You can change the numbers (in red), and add as many as you'd like, to display the ad(s) after whichever post #s you want.
You can use any math as well.. Every 5th post for an ad unit? $post[postcount] % 5 == 0 Etc... There is a thread in the quick tips forum at vBulletin.com by Jake Bunce that includes a bunch of conditionals for these purposes. Here: How To Show A Banner After The First Post In A Thread