• 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

#1
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}">

</xen:if>
</xen:if>"

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.
 

Brogan

XenForo moderator
Staff member
#2
They are conditional statement related to guests and sticky threads.

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