Jump to content

Users Online In Beta Release


TAV1702

Recommended Posts

Sorry if i've missed something, but where do i get the relevant code for displaying the users online while using the beta?

James

If you have installed the beta version, it is default in the templates. It should show on the home page automatically under new pilots on right side. Currently, when you login, you must click the remember me box for it to save your session and show current user online in last 20 minutes.

While on this topic, is there any way we can change this to show number of users online in the last 24 hours instead of 20 minutes?

Link to comment
Share on other sites

  • Administrators

It would be:

$pilots = StatsData::UsersOnline();

foreach($pilots as $pilot)
{

}

Check out the default frontpage_main.tpl file, quick example in there. To change the online time, change the USERS_ONLINE_TIME setting in local.config, though I will change the function to also accept a time parameter.

Link to comment
Share on other sites

Alot of my templates are in the lib/skins folder as they have been edited, therefore some don't get updated automatically on updating. Thats the issue...i can't seem to find the code required.

Thanks for the help, though.

James

Sorry about that James. I guess it would have helped if I would have asked that or contemplated it.  ;)

And thanks for that tip on the time Nabeel. Much appreciated.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...