gavpedz Posted August 22, 2019 Share Posted August 22, 2019 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? Link to comment Share on other sites More sharing options...
bfarber Posted August 22, 2019 Share Posted August 22, 2019 Hey {member="name"}, Lorem ipsum dolar.. Link to comment Share on other sites More sharing options...
gavpedz Posted August 22, 2019 Author Share Posted August 22, 2019 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? Link to comment Share on other sites More sharing options...
bfarber Posted August 22, 2019 Share Posted August 22, 2019 {{if \IPS\Member::loggedIn()->member_id}} Hey {member="name"}, ... {{endif}} Link to comment Share on other sites More sharing options...
gavpedz Posted August 22, 2019 Author Share Posted August 22, 2019 Great thank you so much for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.