|
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?
|
|
|
|
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
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
Joined: Apr 2001
Posts: 3,266 |
Duh time for a beer Josh is right.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
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
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
Joined: Apr 2001
Posts: 3,266 |
I posted a mod here https://www.ubbdev.com/forum/showflat...5/o/all/fpart/1that 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.
|
|
|
|
Joined: Jul 2003
Posts: 26
User
|
User
Joined: Jul 2003
Posts: 26 |
Chuck.. You Rock! Works like a charm
Thanks
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|