how to get user information??????????

nirvaan - March 11, 2008 - 06:50

hi frens,
how can i get the user information after he logged in. i need to keep logs of who is currently logged in. can anyone help me with the code. thank ou.

useglobal $user;From

nijulay - March 11, 2008 - 09:51

use
global $user;
From $user->uid you can get the users userid.
OR
For more details check the the who's online block [and edit that code]
http://drupal.org/node/66638
http://drupal.org/node/148974

thanx!!!

nirvaan - March 12, 2008 - 15:34

thanx nijulay. i have my problem solved........

Hi, do u have any idea about

Guddie - March 18, 2008 - 17:37

Hi,
do u have any idea about how to use user information in phpsnippet for LOGIN DESTINATION module.

I have a situation here,
where i get the user information and i can print the same on my front page,
but the if- else code does not work.

Thankyou.

 
 

Drupal is a registered trademark of Dries Buytaert.