Previous Thread
Next Thread
Print Thread
Rate Thread
#264676 12/15/2003 3:22 PM
Joined: Jul 2003
Posts: 26
User
User
Joined: Jul 2003
Posts: 26
How does the Who's Online know where I am online.

Where does the variable get set?

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It goes by the name of the script

So if you are viewing ubbthreads.php then it compares the online.php langugae file for an entry for 'ubbthreads' and thus you are "viewing a list of posts".


Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
It is written in the w3t_Last table in your database and time stamped. It is continually updated and after your gone cleared from the w3t_Last table in the time period specified in 6.4 under your config settings or in prior versions in the ubbt_inc.php file usually set to 600 meaning every 10 minutes.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Actually the w3t_last table has to do with the timestamp of your last visit to each forum, and new post tracking.

The online information is in the w3t_Online table.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Duh time for a beer Josh is right.

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Duh time for a beer Josh is right. Forgot there were multiple tables for that.

Joined: Jul 2003
Posts: 26
User
User
Joined: Jul 2003
Posts: 26
But I dont see where w3t_Online table gets set with the script name.

Problem is I created another index.php in another directory and so when someone is in that page is says they are at the entrance.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Because the scripts can not have the same name. There is some script modifications that can be done to write the different index files to special names so you can add language strings appropriate to that index.

Last edited by Omegatron; 12/16/2003 5:07 PM.
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yes, it gets updated in ubbt.inc.php.

You can't really have more than one script with the same name.
What I would do.....

That "other" index.php file..... rename it to something like index2.php

Then create an index.php file in that directory which looks like this:

<?
header("Location:http://www.yourdomain.com/whatever/index2.php");
?>



Then the old index.php will redirect nicely to index2 which is unique enough for who's online purposes and fairly transparent to the user.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I posted a mod here

https://www.ubbdev.com/forum/showflat...5/o/all/fpart/1

that I have been using on my site for quite some time since I use Photopost Threads and Reviewpost. You do not have to go through all the renaming stuff as Josh meantioned above.

Sponsored Links
Joined: Jul 2003
Posts: 26
User
User
Joined: Jul 2003
Posts: 26
Chuck.. You Rock! Works like a charm

Thanks


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,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
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,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)