Try to change your code to:Either I'm losing it or I'm just not with it today. Why can't I get this to work...
Code:<xen:if is="!{$contentTemplate} =='myTemplate'"> Stuff </xen:if>
<xen:if is="{$contentTemplate} != 'myTemplate'">
Thanks a lot, very simple but it works great<xen:if is="{$post.position} == 0">
Hello,How can I show content on a specific page?
<xen:if is="{$contentTemplate} == 'xyz'">
This content will show on the xyz template
</xen:if>
ΟΚ... Can this work together with !{$visitor.user_id}? I've tried in many ways but it didn't work.Code:<xen:if is="in_array({$contentTemplate}, array('thread_view', 'forum_view', 'category_view'))"> Content Here... </xen:if>
<xen:if is="{xen:date $serverTime, 'D'} == 'Sat'">
This content will show on Saturdays
</xen:if>
<xen:if is="{xen:date $serverTime, 'D'} == 'Sat' AND {xen:date $serverTime, 'G'} == '3'">
This content will show between 3 and 4 on Saturdays
</xen:if>
That's not a conditional statement.
True, I was thinking of something like
Code:<xen:if is="{xen:date $serverTime, 'D'} == 'Sat'"> This content will show on Saturdays </xen:if>
In my case I'd like something that would show up on Saturdays between 3 and 4. With some help from your tutorial and @Chris D, I think I've figured out that the following will work if I make corrections for time zones.
Code:<xen:if is="{xen:date $serverTime, 'D'} == 'Sat' AND {xen:date $serverTime, 'G'} == '3'"> This content will show between 3 and 4 on Saturdays </xen:if>
Theoretically, yes. You'll have to know your stuff to write it and I won't be able to help. If you do know your stuff, the following might help:is it possible to hours, during business hours for example ?
<xen:hook name="ad_message_below" />
<xen:if is="({$post.position} % {$xenOptions.messagesPerPage} == 0 OR {$post.position} % {$xenOptions.messagesPerPage} == {$xenOptions.messagesPerPage} - 1) AND !{$visitor.user_id} == x AND !in_array({$thread.node_id}, array(25))">
<xen:if is="{$variable}">
<p>Text indicating that no staff is present in the conversation.</p>
<xen:else />
<p>Text advising that staff is present in the conversation.</p>
</xen:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.