Re: [SM-USERS] Plugins and getting the users email address.

2003-11-20 Thread Tomas Kuliavas
> -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > > If I'm writing a plugin and I need to get hold of the currently > logged in > > > users email address, what methods do I have to get this? > > > > It's a global variable. At the beginning of your function: > > > > function someplugin_init

Re: [SM-USERS] Plugins and getting the users email address.

2003-11-20 Thread Mark Watts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > > If I'm writing a plugin and I need to get hold of the currently logged in > > users email address, what methods do I have to get this? > > It's a global variable. At the beginning of your function: > > function someplugin_init() { >global $us

Re: [SM-USERS] Plugins and getting the users email address.

2003-11-20 Thread Chris Hilts
> If I'm writing a plugin and I need to get hold of the currently logged in > users email address, what methods do I have to get this? It's a global variable. At the beginning of your function: function someplugin_init() { global $username; print "Hi $username. Ostriches run fast.\n"; } T

[SM-USERS] Plugins and getting the users email address.

2003-11-20 Thread Mark Watts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If I'm writing a plugin and I need to get hold of the currently logged in users email address, what methods do I have to get this? Cheers, Mark. - -- Mark Watts Senior Systems Engineer QinetiQ TIM St Andrews Road, Malvern GPG Public Key ID: 45542