Previous Thread
Next Thread
Print Thread
Rate Thread
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
Sponsored Links
Entire Thread
Subject Posted By Posted
Online-Timer? dtalker 02/01/2003 2:42 PM
Re: Online-Timer? dimopoulos 02/01/2003 6:46 PM
Re: Online-Timer? JoshPet 02/01/2003 9:40 PM
Re: Online-Timer? dtalker 02/02/2003 6:40 AM
Re: Online-Timer? Gregori 01/16/2004 1:01 AM
Re: Online-Timer? JoshPet 01/16/2004 1:32 AM
Re: Online-Timer? Gregori 01/16/2004 1:52 AM
Re: Online-Timer? Kel 01/25/2004 7:14 AM

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
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,574
Posts293,926
Members13,850
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
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 20240506)