if ($xoopsUser){
foreach($xoopsUser->vars as $key=>$value){
$user[$key] = $value;
}
foreach($user as $key=>$value){
foreach($user[$key] as $key1=>$value1){
if ($key1 == 'value')
$user[$key] = $value1;
}
}
echo "Your user id is: ".$user['uid'];
}
?>
$xoopsTpl->assign('user',$user);
echo $user['uid'];