Posted on: 05/15/06 04:05pm
By: donaldp
Hi all,
Maybe I didn't search deep enough or with the right leywords, but I can't seem to find a solution for this.
I simply need to find about what is the current user's UID and his email address from a simple PHP script pasted in a Static Page plugin. I tried $_USER[...] but it's always empty.
Maybe a global setting that needs to be changed to allow this ?
We're using GL v1.3.11sr5.
thanks
Donald
Currently Logged In User Info ?
Posted on: 05/15/06 04:22pm
By: Dirk
You were on the right track - the $_USER array has that information. Please note that you have to declare it as being global before you can use it.
Another thing to watch out for: For an anonymous user, $_USER['uid'] may not be set.
bye, Dirk
Currently Logged In User Info ?
Posted on: 05/15/06 04:27pm
By: donaldp
Indeed, I was missing the global $_USER; line.
It works now.
Thanks for the quick reply!
Donald