The above functions (lines 1991-2024 of document.parser.class.inc.php in 0.9.6.3) will not return info on a user if they have logged in via the backend but are viewing the frontend.
$modx->getLoginUserID(’mgr’) will work in this situation, but the other two functions don’t have a ’context’ parameter.
Can
function getLoginUserID($context= '') {
if ($context && isset ($_SESSION[$context . 'Validated'])) {
return $_SESSION[$context . 'InternalKey'];
}
be added to the other two functions for the next release please?
-- Tim.