<xen:if is="{$post.position} == 0>
.. do something crazy ..
</xen:if>
In templates, arrays use the dot (.) operator.
Have you checked if $message has the array key post_id? I'll check in a second and get back to you.
no im not working with templatesI think this works, to determine the first post position, assuming you want it in a xF template.
Code:<xen:if is="{$post.position} == 0> .. do something crazy .. </xen:if>
if (($visitor['user_id'] <= 0) && ($message['post_id'] == '1'))
always dont work
i want that visitor cant see the link in the first post of the thread ,only link in first postBasically you want unregistered users to not be able to view the contents of the original post unless they are logged in with permissions right?
We use essential cookies to make this site work, and optional cookies to enhance your experience.