Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Current User compared to Post User

Quote Reply
Current User compared to Post User
I'm trying to display some information on each post that will only be visible to the person who made the post. I'm working with current_user_username and post_username. When I simply print them on each post:

<%current_user_username%> <%post_username%>

... I get the output I'm expecting. My username on each post followed by the name of the user who made the post.

When I try to compare them using:

<%if current_user_username eq post_username%> This is your post! <%endif%>

...then I get this showing up on all posts. I'd expect it to show up on posts made by me only. I've also tried == and =

Any suggestions?

Safe swoops
Sangiro
Subject Author Views Date
Thread Current User compared to Post User sangiro 2923 Apr 6, 2004, 12:50 PM
Thread Re: [sangiro] Current User compared to Post User
yogi 2854 Apr 6, 2004, 12:56 PM
Post Re: [yogi] Current User compared to Post User
sangiro 2845 Apr 6, 2004, 1:15 PM