1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Adsense after first post for guests only in VB?

Discussion in 'Forum Management' started by mightyb, Mar 28, 2006.

  1. #1
    This code works a treat

    <if condition="!$GLOBALS['FIRSTPOSTID']">
    
    $spacer_open
    <div style="padding:0px 0px $stylevar[cellpadding]px 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 code here>
    </if>
        </td>
    </tr>
    </table>
    
    </div>
    $spacer_close
    
    </if> 
    PHP:
    However what condition do i need to add in order for it to show my code for guests only? Thanks!
     
    mightyb, Mar 28, 2006 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Probably something like this... if it's the first post and they don't have a userid...
    <if condition="!$GLOBALS['FIRSTPOSTID'] && !$bbuserinfo[userid]">
    PHP:
     
    digitalpoint, Mar 28, 2006 IP
    mightyb likes this.
  3. mightyb

    mightyb Banned

    Messages:
    6,566
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Shawn, il give it a try :D

    -edit-

    Yep, worked a treat! Ta!
     
    mightyb, Mar 28, 2006 IP