Author Topic: "Online users" plugin  (Read 3040 times)

Offline skygge

  • Newbie
  • *
  • Posts: 6
"Online users" plugin
« on: November 07, 2012, 10:37:40 AM »

I'd like to ask you guys if there's some kind of plugin to RC that can display:

- number of online users (ie. on the login screen as in SQuirrelmail :) )
- last logged from: IP ADDRESS



Edit: I wrote this SQL query
"SELECT count(*) FROM `session` WHERE unix_timestamp(SYSDATE())-unix_timestamp(changed) <1800;"
which counts online users (with idle_timeout plugin set to 30 min).

I can modify login.html and display this number but I have to remember to modify login.html after each RC update. I can't write plugins :)
« Last Edit: November 08, 2012, 09:29:43 AM by skygge »