Goza
-
Posts
164 -
Joined
-
Last visited
Community Answers
-
Goza's post in How do you grab a users name to input into a custom block? was marked as the answer
{{if \IPS\Member::loggedIn()->member_id}} {expression="\IPS\Member::loggedIn()->name"} {{else}} Guest {{endif}} So, this bit of code is basically saying. If a user is currently logged in, it will show their username but if they aren't logged in. It will get replaced with the word guest.