Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

<%user_username%> in include_post_display.html

Quote Reply
<%user_username%> in include_post_display.html
Hi,

In include_post_display.html, the tag <%user_username%> give strangely the same result than <%post_username%>. Why <%user_username%> is not equal to the username of the user who's reading the post? It is possible to change that in the next version of Gforum? I would like to create some rules in include_post_display.html with the tag <%user_username%> (same var than in the user profil).

Thank you! Smile

François
Quote Reply
Re: [Franco] <%user_username%> in include_post_display.html In reply to
I believe you should be using <%current_user_username%>


Realiiity.com Forums
Quote Reply
Re: [ellipsiiis] <%user_username%> in include_post_display.html In reply to
You're right! Thank you very much! Smile

Do you (or anybody else) know how to create this rule with the right syntax:

--> if <%post_username%> = <%current_user_username%> <--

I tried:

<%if post_username = current_user_username%>

<%if <%post_username%> eq <%current_user_username%>%>

<%if post_username eq current_user_username%>

<%if post_username eq <%current_user_username%>%>

...but it still don't work. Unsure

Thank you for your help!

François
Quote Reply
Re: [Franco] <%user_username%> in include_post_display.html In reply to
Try <%if post_username eq $current_user_username%>


Realiiity.com Forums
Quote Reply
Re: [ellipsiiis] <%user_username%> in include_post_display.html In reply to
Thank you very much, ellipsiiis! It works! Smile

François