vBulletin adsense unit insert

Discussion in 'vBulletin' started by nethelp, Apr 24, 2008.

  1. #1
    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!
     
    nethelp, Apr 24, 2008 IP
  2. Qryztufre

    Qryztufre Prominent Member

    Messages:
    6,071
    Likes Received:
    491
    Best Answers:
    0
    Trophy Points:
    300
    #2
    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:
     
    Qryztufre, Apr 24, 2008 IP
  3. nethelp

    nethelp Peon

    Messages:
    389
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you! ...very helpful! ...you got my reputation.
     
    nethelp, Apr 24, 2008 IP
  4. Qryztufre

    Qryztufre Prominent Member

    Messages:
    6,071
    Likes Received:
    491
    Best Answers:
    0
    Trophy Points:
    300
    #4
    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.
     
    Qryztufre, Apr 25, 2008 IP