2
I'm not sure if this is it, but xoopsUser is actually an array of information, I believe.
You'll want to use the global command like this:
global $xoopsUser;
Instead of xoopsUser, you'll notice that it is $xoopsUser. I hope this helps!
Also, make sure you have the correct include(); lines at the top.