1
mktwain124
global xoopsUser?
  • 2004/2/22 0:14

  • mktwain124

  • Just popping in

  • Posts: 44

  • Since: 2002/9/27


I would like to call the function getUnameFromId($uid) from kernel/user.php to use within a specific module. For example, within a module I have a specific $uid and would like to use that function to retrieve and display the uname. I tried using
global xoopsUser;

at the top of the page, but that didn't work. Any suggestions on how to make a function like this available to a page within a module? Thanks in advance.

2
Jack404
Re: global xoopsUser?
  • 2004/2/22 2:42

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


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.

Login

Who's Online

138 user(s) are online (77 user(s) are browsing Support Forums)


Members: 0


Guests: 138


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