1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Adsense Help

Discussion in 'XenForo Questions and Support' started by TFroehlichIII, Sep 15, 2014.

  1. TFroehlichIII

    TFroehlichIII Member

    Can someone please better explain the first two lines of code other than the already generated code within the window?

    "<xen:if is="!{$visitor.user_id}">
    <xen:if is="{$stickyThreads}">


    I have one ad that shows up on my forum without the lines of code above, when I put those lines in they do not show up. And if I go to put another ad within the forum, none of them show up if I do more than one. What am I doing wrong?

    I know that the </> is the end of the code, but I'm not sure what the first two if statements represent. Is it who sees the ads and the second where the ad will be placed? If so, how do I know all the names of the slots where ads can be placed?

    Thank you!

    P.S.- Is there an ad-on that will do this for me? If so can you reply with a link?

    I have look through the resources and found the page that gives me the lines of code shown above, I just don't know what to do with it.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    They are conditional statement related to guests and sticky threads.

    If both of those conditions are met (true) then the content will be displayed.
  3. TFroehlichIII

    TFroehlichIII Member

    So these are optional statements?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, you add them as required, based on your personal/site requirements.
  5. TFroehlichIII

    TFroehlichIII Member

    Do you know why once I enter another code for a different ad with a different location it neither of the ads show up? Am I doing something wrong?

Share This Page