1
Not sure if this goes here or not..
I am looking for a way to extract the username from XOOPS to include in a custom php page.
After some tweeking, what i came up with will print out the current user just fine using c-jay content. but when trying to pass thevariable $name to a custom php page, it doesnt seem to work. Are there any better ways of grabbing the current users name from xoops?
define('XOOPS_ROOT_PATH', '/home/xoops');;
include '/home/xoops/header.php';
$mdm = $xoopsUser->getVar('uname');
$name = $mdm;
echo $name;
?>
thanks :)