adsence to show for users not logged in only?

Discussion in 'General PHP' started by Rupert Avery, Mar 25, 2012.

  1. Rupert Avery

    Rupert Avery New Member

    Joined:
    Nov 24, 2011
    Messages:
    157
    Likes Received:
    4
    how would I implement this?

    I want my adsence ads to show for non registers & not logged in users only.
     
  2. Guest

    Guest Guest

    Hi Rupert
    in the .tpl file where the ad code is

    <!-- IF B_LOGGED_IN -->
    <!-- ELSE -->
    your adsense code
    <!-- ENDIF -->

    Enjoy :)
     
    Last edited by a moderator: Mar 25, 2012
  3. Rupert Avery

    Rupert Avery New Member

    Joined:
    Nov 24, 2011
    Messages:
    157
    Likes Received:
    4
    do I put that on the php or the tpl?

    it works just no ad showing yet :)
     
    Last edited: Mar 25, 2012
  4. Rupert Avery

    Rupert Avery New Member

    Joined:
    Nov 24, 2011
    Messages:
    157
    Likes Received:
    4
    thank you.. lets just op i did it all correctly :)
     
  5. Rupert Avery

    Rupert Avery New Member

    Joined:
    Nov 24, 2011
    Messages:
    157
    Likes Received:
    4
    hmm how long does it take for them to fully register your account takes too long in my books lol
     
  6. Rupert Avery

    Rupert Avery New Member

    Joined:
    Nov 24, 2011
    Messages:
    157
    Likes Received:
    4
    Its okay i am just ranting :)
     
  7. Rupert Avery

    Rupert Avery New Member

    Joined:
    Nov 24, 2011
    Messages:
    157
    Likes Received:
    4
    why is the second part needed?
     
  8. Rupert Avery

    Rupert Avery New Member

    Joined:
    Nov 24, 2011
    Messages:
    157
    Likes Received:
    4
    yes it did.. the ads disappear as soon as you log in :)
     
  9. Box Lot

    Box Lot Super Moderator Staff Member Developer

    Joined:
    Dec 18, 2008
    Messages:
    2,561
    Likes Received:
    134
    Please don't delete posts from threads for any reason.
     
  10. Guest

    Guest Guest

    LOL, Relax box
    it was only , some chat between me and Rupert.
     
  11. Box Lot

    Box Lot Super Moderator Staff Member Developer

    Joined:
    Dec 18, 2008
    Messages:
    2,561
    Likes Received:
    134
    Cool, it's happened in a big way a few times here and really breaks continuity.
     
  12. Box Lot

    Box Lot Super Moderator Staff Member Developer

    Joined:
    Dec 18, 2008
    Messages:
    2,561
    Likes Received:
    134
    Lol, bad (unhelpful) rating on my posting.

    Take a look at the huge holes made by users deleting in mass and tell me it's a good thing.

    People are funny. Don't hate the player...
     

Share This Page