Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
How do you display the logged-in username?
I’ve been cleaning up all my myriad instances of the rvm_if_privileged
plugin, swapping them out for if_logged_in
.
All good, bar this one: <txp:rvm_privileged_user type="name" />
.
Anyone know how to grab the logged-in username using native tags?
Offline
Re: How do you display the logged-in username?
Your only core option is, I’m afraid,
<txp:php>
global $userInfo;
echo $userInfo['name'];
</txp:php>
Replace echo $userInfo['name'];
with dmp($userInfo);
to see all available fields.
Offline
Re: How do you display the logged-in username?
Thanks, Oleg. Simple!
Offline