Hello! I'm working on one of my forums and need to know where I need to insert the code into my vbulletin template to integrate an Adsense unit code after the 1st post, example as follow (can be seen on DP on any thread, just look at the bottom of this message, below my signature): Original post - Adsense unit code- reply 1 reply 2 . . . reply n Thank you!
http://www.vbulletin-faq.com/forum/showthread.php?t=4697 Has your answer, though you'll need to specify the actual pages. The diddled code is below (which I think I shared there as well, and note, I found the diddled code someplace on vBorg so do not take actual credit). <if condition="in_array($post['postcount'], array(1, 11, 21, 31, 41, 51)) 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"> [b]ADSENSE or IMAGE CODE HERE[/b] </td> </tr> </table> </div> </if> PHP:
Hey thanks THough, um, I forgot to mention, the above code will only show for guests... I think you can just get ride of the AND !$bbuserinfo[userid] and that will make everyone see them, or you can diddle it a bit more and make it so whoever can or can not see it.