Status: offline

pernas

Forum User
Newbie
Registered: 11/15/03
Posts: 7
Hi!

I need some help in making a phpblock to show "last 5 logged in users" as the lastlogin field is located in another table than the username is i'm not sure how to do this.

Regards,
Per

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
The Visitor Stats plugin has this feature. In fact, it shows you all users who logged in for a given day. You can see a working example of it here. You can download the plugin here.

Another option is a block I created that shows your current session information. I was having issues with remote IP addresses so I created this block to help debug. You can find the session block here.
In a world without walls and fences, who needs Windows and Gates?

Status: offline

pernas

Forum User
Newbie
Registered: 11/15/03
Posts: 7
Thanks, i'll give it a try

Status: offline

destr0yr

Forum User
Full Member
Registered: 07/06/02
Posts: 324
in regards to squatty's session block, i had to change line 11 in remote.php from:

Text Formatted Code
$headers = getallheaders();

 


to:

Text Formatted Code
$headers = $_SERVER['getallheaders()'];

 

-- destr0yr
"I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams