Jump to content

Getting a username to display on front end.

Featured Replies

Posted

If i wanted to display a message to a member when they are logged in how would i call their username. So the message would read Hey USERNAME, 

What code would i need to get the UERNAME to display the name of the logged in users?

Hey {member="name"},

Lorem ipsum dolar..

 

  • Author
2 minutes ago, bfarber said:

Hey {member="name"},

Lorem ipsum dolar..

 

Great thank you and how would i display this to only members that are logged in?

{{if \IPS\Member::loggedIn()->member_id}}
	Hey {member="name"},
	...
{{endif}}

 

  • Author

Great thank you so much for your help.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.