Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Restrict Who's Online 1.0

Description: This will prevent unregistered users and users who have turned themselves invisible from viewing the who's online page.
Admins and Mods are exempt from this. Optional instructions are included to hide the contents of the onlinepal box in IIP.


Working Under: UBB.Threads 6.3

Mod Status: Beta

Any pre-requisites: none

Author(s): JoshPet

Date: 09/09/03

Credits: Others have posted similar for past versions. Can't remember specifically, but hats off to you.

Files Altered: online.php (Option: onlinepal.php in IIP)

New Files: none

Database Altered: no

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
94274-RestrictOnline1.0.txt (0 Bytes, 321 downloads)

Sponsored Links
Joined: Mar 2003
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2003
Posts: 118
Awesome Josh, Worked great. Thank you very much. You would think this feature would have been included in the original release of the product.

Joined: Oct 2001
Posts: 213
Member
Member
Offline
Joined: Oct 2001
Posts: 213
Is this the same for 6.4?

Thanks!

Joined: Oct 2001
Posts: 213
Member
Member
Offline
Joined: Oct 2001
Posts: 213
This does appear to work fine in 6.4.1.

Joined: Jan 2004
Posts: 79
Power User
Power User
Joined: Jan 2004
Posts: 79
I want to verify this will work with 6.4.1 , the reason why i ask is this.
The instructions say to find and replace this in online.php:
$user = $userob -> authenticate("U_TimeOffset,U_Groups");


I don't find it in my 6.4.1, but I find this:
$user = $userob -> authenticate("U_TimeOffset,U_Groups,U_TimeFormat");

I just wanted to check before I screw something up ; )

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You basically need to ADD this:
,U_Visible,U_Status

into the authenticate query - then also add that bit below, which stops them from viewing if they aren't allowed.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
To avoid any further confusion...

I worked my fingers to the bone to update the instructions for 6.4.1

Josh 2.0
Attachments
106583-RestrictOnline2.1.txt (0 Bytes, 319 downloads)

Joined: Jan 2004
Posts: 79
Power User
Power User
Joined: Jan 2004
Posts: 79
[] to the bone [/]

Funny.
thanks guys

Joined: Mar 2002
Posts: 7
Lurker
Lurker
Offline
Joined: Mar 2002
Posts: 7
I want to be able to hide Who's Online for people who are not registered, but people who are invisible should still be able to see who's online. Is there a way to do that?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Use this instead:

Code
<br />// ----------------<br />// If they are not logged in - block them - by JoshPet<br />	if (!$user['U_Username']) {<br />		$html = new html;<br />		$html -> not_right("You Must Be Logged in to see this.",$Cat);<br />	}	   <br /><br />

Sponsored Links
Joined: Mar 2002
Posts: 7
Lurker
Lurker
Offline
Joined: Mar 2002
Posts: 7
Nevermind, I figured it out all by myself. Thanks, I appreciate this mod.

Joined: Jul 2004
Posts: 43
User
User
Joined: Jul 2004
Posts: 43
I must say, this is an EXCELLENT alternative and tradeoff that I was looking for when it comes to our stealthy members... may I ask if this will work in 6.5.1 and what is the updated coding for it?

Thanx, Thanx, Thanx... in advance!


Helping the lost & lonely one sweet soul at a time...
Joined: Jul 2004
Posts: 43
User
User
Joined: Jul 2004
Posts: 43
Josh,

Relating to this:

[]I want to be able to hide Who's Online for people who are not registered, but people who are invisible should still be able to see who's online. Is there a way to do that? [/]
I would like a somewhat different approach.

For Non-Registered Users and Invisible Stealths, I do want them to see the number of registered users in the header, but I don't want them to see the names or information about those registered users. As far as seeing the unregistered users, I would like them to see that information.

In essence, I ONLY want to hide the specific information regarding Registered Users from Non-Registered and Invisible users. I don't mind them know how many registered or the information about the unregistered. Can only a section be hidden?

I am hoping to encourage the Invisible's to stay visible without having to take that feature away. We are using 6.5.1.


Helping the lost & lonely one sweet soul at a time...
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
you would just have to write some code that also uses the $user[U_Visible] as well as the !$user[U_Number] if bit


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)