Google AdSense (or other) after post...
This modification is in the archives.
I found this cod on vublletin.org and did some customization, I found this very useful and good place for ads.
Show a banner/ad after first (or somewhere else) post, show it to guests | register users | users with less then X posts... This is what I have: - It will show ad/banner after first post on every page (instead of just the first page) but only to guests. Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> Edit postbit or postbit_legacy (depending on which layout you are using) Find: Code:
<!-- / post $post[postid] popup menu --> Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1 AND !$bbuserinfo[userid]"> <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"> BANNER CODE HERE </td> </tr> </table> </div> </if> Here are several other conditions you can use in the above code to show the banner in different places. Simply replace the first "if" statement. ...after the first post on every page (instead of just the first page): Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1"> Code:
<if condition="$post[postcount] == 1 AND !$bbuserinfo[userid]"> Code:
<if condition="$post[postcount] == 1 AND $GLOBALS[threadinfo][replycount] >= 2"> Code:
<if condition="$post[postcount] == 1 AND in_array($GLOBALS[forumid], array(X,Y,Z))"> Code:
<if condition="$post[postcount] % X == 0"> Code:
<if condition="$post['islastshown']">
Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1 AND !$bbuserinfo[userid] AND in_array($GLOBALS[forumid], array(X,Y,Z))"> Download No files for download. Screenshots |
Similar Mods
Show Thread Enhancements Google Adsense / Adbrite Ads Based on Length of First Post | vBulletin 3.6 Add-ons |