Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 05:53 am EDT

Geeklog Forums

How to make a "last 5 logged in users" block


Status: offline

pernas

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

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
 Quote

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?
 Quote

Status: offline

pernas

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

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
 Quote

All times are EDT. The time is now 05:53 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content