Fred Johnson
Lurker
Reged: 07/13/06
Posts: 5
|
|
Mod Name / Version: Stop Guests from seeing "Who's Online." [6.5.5]
Description: This modification stops guest accounts (anonymous users) from viewing who is online. In short, they must be logged in to see who is online.
This might work on previous versions, you would have to check. I have only put it on 6.5.5
Working Under: UBB.Threads 6.5
Mod Status: Finished
Any pre-requisites: None
Author(s): Fred Johnson
Date: 07/15/06
Credits: Fred Johnson
Files Altered: /online.php /languages/english/online.php
New Files: None
Database Altered: None
Info/Instructions: online.php
before // Get the user info $userob = new user; $user = $userob -> authenticate("U_TimeOffset,U_Groups,U_TimeFormat");
After: // Get the user info $userob = new user; $html = new html; $user = $userob -> authenticate("U_Groups"); if (!$user['U_Groups']) { $user['U_Groups'] = "-4-"; if (!isset($config['guestsearch']) || !$config['guestsearch']) { $html->not_right($ubbt_lang['NO_ONLINE'],$Cat); } } $user = $userob -> authenticate("U_TimeOffset,U_Groups,U_TimeFormat");
**languages/english/online.php added at bottom: $ubbt_lang['NO_ONLINE'] = "You must be logged in to see who is online.";
________________
Note, if you use other languages you will want to add a description in those language files.
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.
|
|
0 registered and 23 anonymous users are browsing this forum.
Moderator: JoshPet, Gardener, Ian_W, Anno
Print Topic
|
Forum Permissions
You cannot start new topics
You cannot reply to topics
HTML is disabled
UBBCode is enabled
|
Rating:    
Topic views: 2413
|
|
|
|
|
|
|
|
|
| No posts have caught fire as of yet. |
|
|
|
Are you looking for custom modifications? Upgrades? Installs?
We have developers who can help!
View Our Services Page for information.
|
|
|
| 112 guests have been online with in the last 90 minutes. |
|
|
| No current threads found... |
|
|
|
New Members: 4 Last 24 hours 20 Last 7 days 107 Last 31 days
Boards: 11676 Total topics 73324 Total replies
Totals: 5728 Members 85000 Posts
Max Online: 814 Total (06/01/06 09:46 AM) |
|
|
|