Home Tour Demo FAQ App Gallery Buy Now    
Home > Template Tags > How to show logged-in users information ...


How to show logged-in users information on templates?

{USER}

{USER:firstName} Shows logged on user's first name on any page.
You can access any profile information of logged-in user by using this tag.

For example:
<a href="../profile/details.html?if_login={USER:username}">
  <img src="{USER:profilePicture}" />
  {USER:firstName} {USER:lastName}
</a>
will show logged-in users profile picture, first name last name in a direct link to users profile without having a listing tag.

There is a difference between field tag and USER tag. {firstName} will show the first name of the profile owner, while {USER:firstName} showing first name of the viewer (logged-in)



Tags: template tags
Related Articles:


Add a new comment

Send Comment

 
 
Customer Log-in | Support Forums | User Guide | Free Form Builder | Contact Memberkit Team