[2.0.6] Hidden User Enhancement

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
4
67%
Very Good
0
No votes
Good
2
33%
Fair
0
No votes
Poor
0
No votes
 
Total votes: 6

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28012
Joined: Sat Aug 16, 2003 7:36 am

[2.0.6] Hidden User Enhancement

Post by Extensions Robot » Mon Oct 06, 2003 10:35 pm

MOD Name: Hidden User Enhancement
Author: wossName
MOD Description: Allows only the administrator(s) to see how many hidden users are online.

MOD Version: 1.0.2


Download File: hidden_users-1.0.2a.mod
File Size: 6857 Bytes
Last edited by Extensions Robot on Mon Apr 30, 2007 12:27 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric » Mon Nov 03, 2003 10:34 pm

MOD Validated/Released
Eric

User avatar
poncho1973
Registered User
Posts: 57
Joined: Thu Sep 25, 2003 2:20 pm

Post by poncho1973 » Mon Nov 03, 2003 11:18 pm

Thank you! This was exactly what I was looking for!

wacipi
Registered User
Posts: 20
Joined: Mon Dec 08, 2003 1:23 pm

hidden user enhancement

Post by wacipi » Mon Dec 08, 2003 1:52 pm

I don't suppose this mod fixes the issue of... unlogged in guests can see the names of the hidden users in the list of users online. This is stupid. Of course, when you log in you no longer see the hidden users unless you are the admin. Naturally, if you are always logged in on your computer to your forums you would not notice this, but it's for real.

User avatar
CyBot
Registered User
Posts: 75
Joined: Wed Nov 26, 2003 12:42 pm
Contact:

Re: hidden user enhancement

Post by CyBot » Mon Dec 08, 2003 3:46 pm

wacipi wrote: unlogged in guests can see the names of the hidden users in the list of users online. This is stupid. Of course, when you log in you no longer see the hidden users unless you are the admin. Naturally, if you are always logged in on your computer to your forums you would not notice this, but it's for real.


Can't confirm this (phpBB 2.0.6)
_________________
Help! I'm trapped in a Signature!

User avatar
TimeVirus
Registered User
Posts: 125
Joined: Sat Jul 12, 2003 12:17 am

Post by TimeVirus » Tue Dec 30, 2003 10:59 pm

[snip]
I'm probably wrong again...

Slow Joe
Registered User
Posts: 26
Joined: Thu Dec 11, 2003 9:48 pm

Post by Slow Joe » Wed Dec 31, 2003 1:20 am

I just test that problem on my forum. Coudn't see any hidden members while I was viewing as a guest. Don't believe that is a real issue.

Anyway, great mod!!!! I'm gonna use it.

[RF]MH
Registered User
Posts: 21
Joined: Mon Oct 13, 2003 4:56 am
Location: Nevada, USA
Contact:

Post by [RF]MH » Wed Dec 31, 2003 2:44 am

Great Mod.
Image

Seijin_Dinger
Registered User
Posts: 258
Joined: Tue Feb 24, 2004 7:07 pm
Location: Arguing in Linux Land
Contact:

Post by Seijin_Dinger » Mon Mar 22, 2004 6:24 am

can it be set to also allow Mods to see this number?

Seijin_Dinger
Registered User
Posts: 258
Joined: Tue Feb 24, 2004 7:07 pm
Location: Arguing in Linux Land
Contact:

Post by Seijin_Dinger » Tue Mar 23, 2004 6:18 am

If I change:

Code: Select all

if ( $userdata['user_level'] != ADMIN )
to something like:

Code: Select all

if ( $userdata['user_level'] != ADMIN & MOD )
will it make it so that this will just hide the Hidden users online number from regular users?

wossName
Registered User
Posts: 15
Joined: Sun Oct 27, 2002 3:40 pm
Location: Earth

Post by wossName » Tue Mar 23, 2004 9:30 pm

I haven't tested this, but you could try to replace all occurrences of

Code: Select all

if ( $userdata['user_level'] != ADMIN )
with

Code: Select all

if ( $userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD )
and

Code: Select all

if ( $userdata['user_level'] == ADMIN )
with

Code: Select all

if ( $userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD )
and see if it works.

(Obviously, only replace it where the MOD changes it too.)

Seijin_Dinger
Registered User
Posts: 258
Joined: Tue Feb 24, 2004 7:07 pm
Location: Arguing in Linux Land
Contact:

Post by Seijin_Dinger » Tue Mar 23, 2004 10:11 pm

Thanks It works perfectly

Underfoot
Registered User
Posts: 2
Joined: Wed Jun 09, 2004 7:17 pm
Contact:

Guests Mod additions

Post by Underfoot » Wed Jun 09, 2004 7:34 pm

I had some trouble with guests still being able to view the hidden users, so I made the following changes to the MOD:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
if ( $userdata['user_level'] != ADMIN )
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( empty($userdata['user_level']) || $userdata['user_level'] != ADMIN )
#
#-----[ FIND ]------------------------------------------
#
if ( $registered_users + $hidden_users == 0)
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( $registered_users + $hidden_users == 0 || ($userdata['user_level'] != ADMIN && $registered_users == 0))
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Seems to work with these changes. There is still residual carry over (when an admin logs out he can still see hidden users for the first screen), but I'd hardly count that as a threat.

Hope this helps anyone having a similar problem.
~Underfoot 8)

smart_blondei
Registered User
Posts: 2
Joined: Thu Jun 24, 2004 6:46 pm

help

Post by smart_blondei » Thu Jun 24, 2004 6:51 pm

I tried to install it; to my knowledge I did everything the instructions said. But I still got this message above the forum:

Warning: Cannot modify header information - headers already sent by (output started at /home/becca131/public_html/fantasy/language/lang_english/lang_main.php:1027) in /home/becca131/public_html/fantasy/includes/page_header.php on line 489

Warning: Cannot modify header information - headers already sent by (output started at /home/becca131/public_html/fantasy/language/lang_english/lang_main.php:1027) in /home/becca131/public_html/fantasy/includes/page_header.php on line 491

Warning: Cannot modify header information - headers already sent by (output started at /home/becca131/public_html/fantasy/language/lang_english/lang_main.php:1027) in /home/becca131/public_html/fantasy/includes/page_header.php on line 492

Underfoot
Registered User
Posts: 2
Joined: Wed Jun 09, 2004 7:17 pm
Contact:

language/lang_english/lang_main.php

Post by Underfoot » Thu Jun 24, 2004 7:03 pm

Sounds to me like you corrupted your language file:
language/lang_english/lang_main.php

Look at the line number it is giving you for a statement.
i.e - something that doesn't:
  1. begin: $lang[
  2. have an '=' in the middle
  3. end with a ;
[/b]The php compiler seems to think you started writing HTML in the language file, and you shouldn't have at that point.

Best of luck.
~ Underfoot 8)

Post Reply

Return to “[2.0.x] MOD Database Cleanup”