guest only ads?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xjuliox
    Senior Member
    • Sep 2005
    • 1048
    • 3.7.x

    guest only ads?

    Hello,

    Can someone tell me what is wrong here with the code below.

    Code:
    [COLOR=red]<if condition="$post[postcount] == 1 AND !$bbuserinfo[userid]">[/COLOR]
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"><tr><td class="alt1" align="center">
     
    Adsense code here
     
    </td></tr></table>
    [COLOR=red]</if>[/COLOR]
    When i use the code above everyone can see the box with the google adsense ads. It is setup for only guest to see it but it does not work i don't know why.

    Can someone tell me how to fix it so that only guest can see the ads?
    Arcade.gs Game Site!
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    That code is correct. It should only show for guests. Make sure you are editing the same style and postbit template that you are viewing.

    Comment

    • xjuliox
      Senior Member
      • Sep 2005
      • 1048
      • 3.7.x

      #3
      When ever i put it on forum display and show thread. it disapear for guest and registered users on the template that i am using now
      Arcade.gs Game Site!

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        I assumed you were putting it in the postbit template. The $post[postcount] variable is only valid in that template.

        Comment

        • xjuliox
          Senior Member
          • Sep 2005
          • 1048
          • 3.7.x

          #5
          I want to post it in the show thread and forum display.

          How would i make it so only guest can look at it?
          Arcade.gs Game Site!

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            Use this condition:

            Code:
            <if condition="!$bbuserinfo[userid]">
            
            </if>

            Comment

            • xjuliox
              Senior Member
              • Sep 2005
              • 1048
              • 3.7.x

              #7
              Thanks Jake,

              That did the trick.
              Arcade.gs Game Site!

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...