Advertisement:

Author Topic: Which groups can see hidden users  (Read 5744 times)

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Which groups can see hidden users
« on: July 13, 2010, 04:40:46 PM »
Link to Mod

This is an add on I uploaded it here after seeing the request at this thread

http://www.simplemachines.org/community/index.php?topic=387296.0

It will add an extra options for the groups at your forum that can view the hidden users at the online list or not. The new options can be found now at Permissions->Usergroup->Modify. Below General permissions you will see a new permission, View hidden users in the online list. By default it is set to no. Tick the permission box if you want that group to view the the hidden users at the online list.

Offline mirahalo

  • SMF Hero
  • ******
  • Posts: 7,687
Re: Which groups can see hidden users
« Reply #1 on: July 13, 2010, 05:12:04 PM »
nice mod ;)

if you accept translations:   good for spanish_es and spanish_latin, utf8 also ;)
Code: [Select]
$txt['permissionname_view_hidden'] = 'Ver los usuarios ocultos en la lista de usuarios';
$txt['permissionhelp_view_hidden'] = 'Este permiso determina si un grupo especifico puede o no ver a los usuarios ocultos en la lista de usuarios en línea.';

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,598
  • Gender: Male
Re: Which groups can see hidden users
« Reply #2 on: July 13, 2010, 06:04:43 PM »
Those groups who have moderator power can still see it...


The (Hidden) text is suppose to be there?
“There is no god, and that’s the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Which groups can see hidden users
« Reply #3 on: July 14, 2010, 12:41:48 AM »
Nice mod :) . is it possible that admin can be seen online only by global moderator , not even by moderator ?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: Which groups can see hidden users
« Reply #4 on: July 14, 2010, 11:20:43 AM »
nice mod ;)

if you accept translations:   good for spanish_es and spanish_latin, utf8 also ;)
Code: [Select]
$txt['permissionname_view_hidden'] = 'Ver los usuarios ocultos en la lista de usuarios';
$txt['permissionhelp_view_hidden'] = 'Este permiso determina si un grupo especifico puede o no ver a los usuarios ocultos en la lista de usuarios en línea.';

Thank you. I will add it shortly.


Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: Which groups can see hidden users
« Reply #5 on: July 14, 2010, 11:21:20 AM »
Those groups who have moderator power can still see it...


The (Hidden) text is suppose to be there?

Can you please tell me what you mean by The (Hidden) text is suppose to be there?

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: Which groups can see hidden users
« Reply #6 on: July 14, 2010, 11:23:44 AM »
Nice mod :) . is it possible that admin can be seen online only by global moderator , not even by moderator ?

To do it for the global moderators only, you should change the part for the groups, !allowedTo('view_hidden') with this condition in_array(2, $user_info['groups']) and then declare the $user_info variable as global.


Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Which groups can see hidden users
« Reply #7 on: July 14, 2010, 12:49:56 PM »
To do it for the global moderators only, you should change the part for the groups, !allowedTo('view_hidden') with this condition in_array(2, $user_info['groups']) and then declare the $user_info variable as global.

i change the part for the groups, !allowedTo('view_hidden') with this condition !in_array(2, $user_info['groups'])

tried and it made hidden member only visible to global mods.
That code you gave to test will make only global mods to see invisible people.
i want that "Admins in hidden state can only be seen by Global mods" , if possible.

i know sometimes small looking tweaks are big tasks :)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: Which groups can see hidden users
« Reply #8 on: July 15, 2010, 04:51:42 PM »
To do it for the global moderators only, you should change the part for the groups, !allowedTo('view_hidden') with this condition in_array(2, $user_info['groups']) and then declare the $user_info variable as global.

i change the part for the groups, !allowedTo('view_hidden') with this condition !in_array(2, $user_info['groups'])

tried and it made hidden member only visible to global mods.
That code you gave to test will make only global mods to see invisible people.
i want that "Admins in hidden state can only be seen by Global mods" , if possible.

i know sometimes small looking tweaks are big tasks :)

Sorry for the late response but somehow I had not seen your post.
To do that use the add on in the original state and give only the global mods the permissions to see the hidden users, including the admins. I have to admit that I am a little confused by your request because that is what the add on does.

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Which groups can see hidden users
« Reply #9 on: July 15, 2010, 11:30:52 PM »
If i give this permission to everyone then all can see hidden users .

i want to achieve that is,

for admins i want to over rule it, even after having permissions users can't see admin online .Only Global moderators can see them online not even Moderators.

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: Which groups can see hidden users
« Reply #10 on: July 16, 2010, 06:49:50 AM »
If i give this permission to everyone then all can see hidden users .

i want to achieve that is,

for admins i want to over rule it, even after having permissions users can't see admin online .Only Global moderators can see them online not even Moderators.



This will require a total new add on then.

Offline Scoobymaniac

  • Semi-Newbie
  • *
  • Posts: 15
    • Scoobymaniacs
Re: Which groups can see hidden users
« Reply #11 on: December 04, 2010, 10:01:26 PM »
Can this mod be made to work on 1.1.12? Even manually?


Phil

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: Which groups can see hidden users
« Reply #12 on: December 06, 2010, 11:25:01 AM »
Can this mod be made to work on 1.1.12? Even manually?


Phil

Yes it can.

Offline Scoobymaniac

  • Semi-Newbie
  • *
  • Posts: 15
    • Scoobymaniacs
Re: Which groups can see hidden users
« Reply #13 on: December 09, 2010, 02:14:30 PM »
Yes it can.

Does that mean it will work as is or is there modifying to be done to make it work?

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: Which groups can see hidden users
« Reply #14 on: December 10, 2010, 02:26:12 PM »
Yes it can.

Does that mean it will work as is or is there modifying to be done to make it work?

I have not used Smf 1 much except to test it a few times. But from what I have seen there are huge changes between the 2 version. You must adapt the changes to reflect the 1 version.

Offline Scoobymaniac

  • Semi-Newbie
  • *
  • Posts: 15
    • Scoobymaniacs
Re: Which groups can see hidden users
« Reply #15 on: December 12, 2010, 06:04:03 PM »
Ah right,

I wouldn't know where to begin with that :-\