Why won't this condition work X_X

x4rl

Well-known member
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
 
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.
 
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>
 
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.
 
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.
 
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.
 
Top Bottom