1
Azpilot2211
Extracting Username for use in custom pages
  • 2005/11/17 12:41

  • Azpilot2211

  • Just popping in

  • Posts: 1

  • Since: 2005/11/17


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 :)




TopTop



Login

Who's Online

113 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 113


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits