Hey there!
In the API Quick Reference.doc from modx_docs.zip I saw 3 functions:
_______________________________________________________
getLoginUserID
Returns current user id.
getLoginUserName
Returns current user name.
getLoginUserType
Returns current login user type - web or manager
------------------------------------------------------------------------------------------------
Now the thing is that there are no additional details about them...
I tried to use them to build a snippet to display the current user information but the snippet doesn’t work. If I put the snippet in a page... let’s say the home page when I try to load it the whole page remains blank. Any suggestions ?
Here is the snippet code:
__________________________________________________
$out = "Current User ID: ";
$out .= getLoginUserID();
$out .= "; User Name: ";
$out .= getLoginUserName();
$out .= "; User Type: ";
$out .= getLoginUserType();
return $out;
--------------------------------------------------------------------------------------
Any suggestions