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

Why won't this condition work X_X

Wuebit

Well-known member
#1
HTML:
<xen:if is="{$post.position} == 0 AND  !{$visitor.user_id} AND !{$message.conversation_id}">
Was working last time I used it but now it will not work.
Did something change?

Cheers
 

Brogan

XenForo moderator
Staff member
#2
It's working for me.
What are you expecting it to do?

I'm not sure you need the last condition as it will only apply to guests anyway.
 

Wuebit

Well-known member
#3
It's working for me.
What are you expecting it to do?

I'm not sure you need the last condition as it will only apply to guests anyway.
What is it doing for you?
For me it just will not show "test" after the first post on every thread (page 1,2,3,etc..)
The last condition to to stop it showing in the conversations.

Template ad_message_below

HTML:
<xen:hook name="ad_message_below" />
<xen:if is="{$post.position} == 0 AND  !{$visitor.user_id} AND !{$message.conversation_id}">
<Code>
</xen:if>
 

Brogan

XenForo moderator
Staff member
#4
If you want it on every page then you need to use this:
Code:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND  !{$visitor.user_id}">
As it's only shown to guests then you don't need the conversation condition as you have to be logged in to read them.
 

Wuebit

Well-known member
#5
If you want it on every page then you need to use this:

Code:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND  !{$visitor.user_id}">
As it's only shown to guests then you don't need the conversation condition as you have to be logged in to read them.
So it did change also that does not work still.
 

Brogan

XenForo moderator
Staff member
#6
It's working for me.
It shows after the first post on every page when not logged in.

The conditional has always been like that for first post on every page.