Skip to main content
Topic: Question about Moderator permissions (Read 4861 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Question about Moderator permissions

Is it possible to configure moderator permissions such that they can't see IP addresses on posts in the forums they moderate?

Re: Question about Moderator permissions

Reply #1

Quote from: oblivion – Is it possible to configure moderator permissions such that they can't see IP addresses on posts in the forums they moderate?

Antechinus helped me out with this, many thanks!

Re: Question about Moderator permissions

Reply #2

Meaning I showed her the relevant template hack, not relevant admin config. If anyone else wants it:

Code: (GenericMessages.template.php - Line 175) [Select]
	// Show the IP to this user for this post - because you can moderate?
if (!empty($context['can_moderate_forum']) && !empty($message['member']['ip']))
$poster_div .= '
<li class="listlevel2 poster_ip">

Code: (Change to:) [Select]
	// Show the IP to this user for this post - because you is teh admin and not a mere moderator?
if ($context['user']['is_admin'] && !empty($message['member']['ip']))
$poster_div .= '
<li class="listlevel2 poster_ip">

Which could obviously be done as a legit mod package if anyone wanted to.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Question about Moderator permissions

Reply #3

thanks again!

Re: Question about Moderator permissions

Reply #4

hmm... moderate "forum" is much more than just moderate a "board", from the help text:
QuoteThis permission includes all important member moderation functions:
access to registration management
access to the view/delete members screen
extensive profile info, including track IP/user and (hidden) online status
activate accounts
get approval notifications and approve accounts
immune to ignore PM
* several small things
that's why who has "moderate forum" permission can see IP, they need to.
Bugs creator.
Features destroyer.
Template killer.

Re: Question about Moderator permissions

Reply #5

Wasn't "moderate forum" originally just the same as global moderator?
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Question about Moderator permissions

Reply #6

Nope, never been.
Moderate forum has always included such things.
Bugs creator.
Features destroyer.
Template killer.

Re: Question about Moderator permissions

Reply #7

Ok. Well using is_admin does restrict it to the actual admin group, which is what she was after. So good enough AFAICT, unless you can think of something better.

ETA: And silly names inherited from YabBB. ::)
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Question about Moderator permissions

Reply #8

I was more leaning toward the question: are you sure the members need to have "moderate forum" permission? Or maybe they may just be happy belonging to the global mod group?

Re: naming: indeed. xD
Bugs creator.
Features destroyer.
Template killer.

Re: Question about Moderator permissions

Reply #9

Ok. Are you saying that in Elk, Global Mod doesn't allow viewing IP's in posts anyway? Because from back when I ran an SMF site, the global mods could see IP's in posts.

ETA: Hmm. I should test that on SMF on local. My memory may be playing tricks on me.
Last Edit: February 22, 2016, 04:32:57 am by Antechinus
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Question about Moderator permissions

Reply #10

From what I can see, no. The "Moderate forum members" (name of moderate_forum) permission is not on by default (it's not in the install code so it should not be on).
Bugs creator.
Features destroyer.
Template killer.

Re: Question about Moderator permissions

Reply #11

Y'know a good buglet fix would be to call it something else.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Question about Moderator permissions

Reply #12

Ah. I know what happened. Global mods could see IP's back on the SMF site, because when we were setting up the site we looked at the permissions page and checked "Moderate forum members" because hey, they were global mods so of course we wanted them to be able to moderate members. Not much point making them mods if they can't do any modding. :P
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Question about Moderator permissions

Reply #13

So I betcha Oblivion did the same thing for the same reason, and then found that global mods could see IP's.

(IOW, the naming is stoopid)
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Question about Moderator permissions

Reply #14

Quote from: Antechinus – Ok. Well using is_admin does restrict it to the actual admin group, which is what she was after. So good enough AFAICT, unless you can think of something better.

ETA: And silly names inherited from YabBB. ::)

What I was after was to prevent Board Mods (I think that's the ElkArte terminology for a moderator who is assigned to specific subforums) from seeing IP addresses.  Right now, I don't have any global moderators.  At some point I may need to add mods at that level.  So this fix did solve my immediate problem.

If I wanted to give global mods the ability to see IP addresses what would the correct label be?