7
well in the php code itself, it's quite different.
roughly (it all depends on where you place the code as you may need to also grab the uid aswell if it's not already defined in the script where you place the code)
$username = xoops_getLinkedUnameFromId($this->getVar('uid'));
and that all depends on if uid is defined from an object.
again tho, in registration, you might not even need that as if you place the code in the right place, you could get the uname straight from the $_POST['uname'] data that the user submitted.