News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

User online time threshold Issue

Started by moner, July 17, 2016, 03:39:40 PM

Previous topic - Next topic

moner

Hi,

in User online time threshold ,i can't change number 1440
if i add 9999 and click save i see 1440 again
SMF 2.0.11

Shambles

The boundary for that setting is one day (1440 minutes) - you cannot set it higher without a code change in ManageSettings.php:


$_POST['lastActive'] = min((int) $_POST['lastActive'], 1440);

Arantor

And you really, really SHOULDN'T set it higher. You shouldn't even set it to that long.

The figure is used for setting how long someone appears to be online for, based on last access of forum. So if I access the forum with that setting at one day, I will continue to appear online for the next 24 hours, even when I'm clearly not online because I haven't done anything.

Heck, even an hour is way too large (but frequently set that way for performance reasons), 15 minutes is the default because that's a reasonable figure based on people browsing/walking away from their PC for a few minutes.

Why do you want to change this?
Holder of controversial views, all of which my own.


moner

Quote from: Shambles on July 17, 2016, 03:44:40 PM
The boundary for that setting is one day (1440 minutes) - you cannot set it higher without a code change in ManageSettings.php:


$_POST['lastActive'] = min((int) $_POST['lastActive'], 1440);

Hello ,Shambles

Done!  thank you so much

Quote from: Arantor on July 17, 2016, 03:57:00 PM
Why do you want to change this?

Hello ,Arantor
Sometimes i'm login board every three days and i need see ho last users login board in last days.

thank you so much

Arantor

QuoteSometimes i'm login board every three days and i need see ho last users login board in last days.

So instead of abusing (and breaking) your forum's functionality, there are proper ways to do this - Admin > Members > Manage Members > Search For Members, use the last login option, to see who has logged in during the last three days.

There is a reason SMF set it to 1 day. I may even have been the person who recommended that change originally, though I can't really be bothered to dig back through the old bug tracker now.
Holder of controversial views, all of which my own.


moner

Quote from: Arantor on July 17, 2016, 06:03:31 PM
There is a reason SMF set it to 1 day.

Hi
this reason in SMF2.0.11 Only or with SMF1.1.21 too ?
Because I used this setting SMF1.1.21 More than five years without any problem

Arantor

Oh, it'll break functionality in 1.1 except it got changed in 2.0 as a bug fix, and it got changed years ago.

You're still supposed to do it the way I suggested even in 1.1.
Holder of controversial views, all of which my own.


moner

Quote from: Arantor on July 18, 2016, 12:39:45 AM

You're still supposed to do it the way I suggested even in 1.1.

Hello ,Arantor
I'll do it

thank you so much


Advertisement: