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.
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
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!!!
thanx nijulay. i have my problem solved........
Hi, do u have any idea about
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.