XF 1.5 please need small code help, XF 1.5.x

zoldos

Well-known member
I'm in the "Post" template. I've changed "Reply" so that is now shows "Reply to Username". But, I want to extend it further so if you are replying to YOURSELF, then it simple shows "Reply" and if not, then "Reply to User".

Here is the code I've dabbling with (I get errors on saving it, but I know I'm on the right track).

Code:
<xen:if is="{$post.username = $user}">Reply<xen:else />Reply to {$post.username}</xen:if></a>

Any help or tips would be greatly appreciated! (y)
 
I don't have access to my local 1.5 now to check it (and long time no xf1.5 coding), but:
In post template, change {xen:phrase reply} to:
Code:
<xen:if is="{$visitor.user_id} == {$post.user_id}">{xen:phrase reply}<xen:else />{xen:phrase reply} to {$post.username}</xen:if>
Is this working?
 
Top Bottom