NukeZero
Member
Not sure where to post this, if it's in the wrong place i apologize!
Anyways i'm trying to show X content per user post count in 2.0 beta 3 using a template conditional (message_macros) and i'm running into issues.
Old contionals used to be
These no longer work so i tried some stuff and im not getting the result i expect.
Iv'e tried (always returns 1 even if the user has 4 posts):
And even:
What's the issue? Any help would be greatly appreciated.
Anyways i'm trying to show X content per user post count in 2.0 beta 3 using a template conditional (message_macros) and i'm running into issues.
Old contionals used to be
Code:
<xen:if is="{$visitor.message_count} > x">
This content will show to members with more than x posts
</xen:if>
These no longer work so i tried some stuff and im not getting the result i expect.
Iv'e tried (always returns 1 even if the user has 4 posts):
Code:
<xf:if is="{$user.message_count} >= 1">
1
<xf:elseif is="{$user.message_count} >= 2" />
2
</xf:if>
And even:
Code:
<xf:if is="{$user.message_count|number} >= 1">
1
<xf:elseif is="{$user.message_count|number} >= 2" />
2
</xf:if>
What's the issue? Any help would be greatly appreciated.