5 min online status - decrease to 1 min?

The 2.0.x discussion forum has been locked; this will remain read-only. The 3.0.x discussion forum has been renamed phpBB Discussion.

5 min online status - decrease to 1 min?

Postby dekoven » Sun Feb 25, 2007 8:33 pm

I'd like my forum to show users as offline after 1 minute instead of 5. How can I achieve this?
dekoven
Registered User
 
Posts: 6
Joined: Thu Feb 22, 2007 10:53 pm

Postby Brf » Sun Feb 25, 2007 9:25 pm

So anyone who is reading a long post will show as offline?
User avatar
Brf
Support Team Member
Support Team Member
 
Posts: 31192
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Postby dekoven » Sun Feb 25, 2007 10:04 pm

Javascript updater in the page header. Updates every minute. That's why I want to get rid of the silly 5 minute timestamp as now they show up as online when they're really not. :roll:
dekoven
Registered User
 
Posts: 6
Joined: Thu Feb 22, 2007 10:53 pm

Postby Marshalrusty » Sun Feb 25, 2007 10:48 pm

Note that the time is in seconds. Replace "XXX" with new time
Open {root}/viewonline.php
Find:
Code: Select all
AND s.session_time >= ".( time() - 120 ) . "

Replace with:
Code: Select all
AND s.session_time >= ".( time() - XXX ) . "


Open {root}/admin/index.php
Find:
Code: Select all
AND u.user_session_time >= " . ( time() - 120 ) . "

Replace with:
Code: Select all
AND u.user_session_time >= " . ( time() - XXX ) . "

Find:
Code: Select all
AND session_time >= " . ( time() - 120 ) . "

Replace with:
Code: Select all
AND session_time >= " . ( time() - xxx ) . "


Open {root}/includes/page_header.php
Find:
Code: Select all
AND s.session_time >= ".( time() - 120 ) . "

Replace with:
Code: Select all
AND s.session_time >= ".( time() - XXX ) . "


Open {root}/language/lang_english/lang_main.php
Find:
Code: Select all
$lang['Online_explain'] = 'This data is based on users active over the past five minutes';

Replace with:
Code: Select all
$lang['Online_explain'] = 'This data is based on users active over the past minute';
Yuriy Rusko

Did I help you? Send a Kudo my way
User avatar
Marshalrusty
Support Team Leader
Support Team Leader
 
Posts: 26496
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City

Postby dekoven » Sun Feb 25, 2007 11:35 pm

Thanks! Pretty simple, though I probably wouldn't have been able to find all those different places to change the timeout by my self.

Maybe this could be put in a variable in the configuration?
dekoven
Registered User
 
Posts: 6
Joined: Thu Feb 22, 2007 10:53 pm


Return to 2.0.x Discussion

Who is online

Users browsing this forum: No registered users and 1 guest