Previous Thread
Next Thread
Print Thread
Rate Thread
#234765 02/01/2003 7:42 AM
Joined: Jan 2003
Posts: 38
User
User
Offline
Joined: Jan 2003
Posts: 38
Where can I change the timeout for the online-timer? (10 minutes)

thanks
d-talk

Sponsored Links
Tuba #234766 02/01/2003 11:46 AM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Do you mean the time that the Who's online screen updates?

There are two areas you can look:
ubbt.inc.php
Code
<br />   // -----------------------------------------------<br />   // Expire any outdated entries in the Online table<br />      $Outdated = $html -> get_date();<br />      $Outdated = $Outdated - 600;<br />      $query = "<br />       DELETE FROM {$config['tbprefix']}Online<br />       WHERE O_Last < $Outdated<br />      ";<br />

The 600 is the number of seconds

and also in the online.php
Code
<br />// -------------------------<br />// Delete the inactive users<br />   $html = new html;<br />   $Outdated = $html -> get_date() - 600;<br />   $query = "<br />      DELETE FROM {$config['tbprefix']}Online<br />      WHERE       O_Last < $Outdated<br />   ";<br />   $dbh -> do_query($query);<br />


The above will change the time that the user's navigation on your forum changes the contents of the w3t_Online table. If you wish the Who's Online screen to refresh every say 20 minutes then all you have to do is go to the online.php and find this line:
Code
<br />// ------------------<br />// Send a html header<br />   $html -> send_header($ubbt_lang['ONLINE_HEAD'],$Cat,"<meta http-equiv=\"Refresh\" content=\"60;url={$config['phpurl']}/online.php?Cat=$Cat\" />",$user);<br />

and change the Refresh" content="60; to the number of seconds you want that page to refresh (for 20 minutes this will be 1200)

Warm regards

Nikos


Nikos
Hal_dup2 #234767 02/01/2003 2:40 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
If you are using IIP you can change the number of seconds in onlinepal.php as well.

Daine #234768 02/01/2003 11:40 PM
Joined: Jan 2003
Posts: 38
User
User
Offline
Joined: Jan 2003
Posts: 38
Thank you guys!!!
d-talk

Tuba #234769 01/15/2004 6:01 PM
Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
Will this work for 6.4.1? 60 minutes would be great!

Will this have any affect on server load and such?

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
What adjusting the online time?

You don't need this in 6.4 and higher.

You can do it from the config file.

Daine #234771 01/15/2004 6:52 PM
Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
Doh! Offcourse!

Thanks!

Joined: Jan 2002
Posts: 266
Kel Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
[]Gregori said:

Will this have any affect on server load and such? [/]

I'd like to know the answer to this question? I changed the 600 to 300. I'm having a terrible time with my AOL users and their unique IP's and I need those "old" connections to close as soon as possible. Will this help?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)