Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Mod Name / Version: Multiple Index Pages in Who's Online

Description: Now keep in mind this is a simple way to allow the multiple INDEX files on your site
to get placed into Who's Online so that you do not get the dreaded private you see when
a page is not in the language file. The real brains behind this one is Astaran as he had
helped me sort this out a while back and this is never been posted.

You will need to modify the information to suit your site but the mod is simple enough to understand what it does. It rewrites the index file name to something else in the Online table so you can assign a language string to it so it is viewed correctly where a user is.

Working Under: UBB.Threads 6.2-6.3-6.4

Mod Status: Beta

Any pre-requisites: Threads

Author(s): Astaran

Date: 12/16/03

Credits: Omegatron for documenting it

Files Altered: ubbt-inc.php and online.php in your language directories

New Files: None

Database Altered: Nope

Info/Instructions:

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
102143-online.txt (0 Bytes, 82 downloads)

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369

Joined: Jul 2003
Posts: 26
User
User
Joined: Jul 2003
Posts: 26
This mod works fantastic with a minor modification becuase of the way my Hosting provider runs PHP.

Apparently the common method is to run PHP as an Apache module. However, for security reasons, they choose to run it as a CGI script instead.

So in order to make this work on our site I set

$currentPage = $_SERVER['PATH_TRANSLATED'];

instead of

$currentPage = $_SERVER['SCRIPT_FILENAME'];


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)