3
sorry i was a bit unclear. it is kind of the other way around.
basically i just want to display the user name of the logged in user, or just as blank if he is not logged in.
this because i have dynamic functionality based on who is logged in in my module. if he is not logged in he will get the default functionality.
but i got it working with your help - thanks!!!
like this:
if (!is_object($xoopsUser)) {
// do nothing
}
else {
$loggedInAs = $xoopsUser->getVar('uname');
print ("User:");
print $loggedInAs;
}