Also depends on your XOOPS API knowledge.
Generaly, you could use XOOPS member handler (kernel/member) function "getGroupsByUser" and play with the result.
Debug info should be visible to all users: administrators, members and anonymous. Disclosure of sensitive information should not be a concern in case debug mode is enabled since it is for debugging not for production.
$newuser->setVar("name", $name);
$newuser->setVar("uname", $username);
$newuser->setVar("email", $email);
$newuser->setVar("url", formatURL($url));
$newuser->setVar("user_avatar",'blank.gif');
$newuser->setVar("user_regdate", time());
/**
* Output buffering callback inserting logger dump in page output
*/
function render( $output ) {
global $xoopsUser;
if ( !$this->activated/* || !$xoopsUser || !$xoopsUser->isAdmin()*/ ) {
return $output;
}
$this->renderingEnabled = $this->activated = false;
$log = $this->dump( $this->usePopup ? 'popup' : '' );
$pattern = '<!--{xo-logger-output}-->';
$pos = strpos( $output, $pattern );
if ( $pos !== false ) {
return substr( $output, 0, $pos ) . $log . substr( $output, $pos + strlen( $pattern ) );
} else {
return $output . $log;
}
}