Page 1 of 2

Mod Powers

PostPosted: Sun May 13, 2012 5:07 pm
Author: viragotech
Is there any way to give mods the power to see the email address of users and or also search for members via email???

seems to be only admins can do or see that.

always someone who can't rembmer their username or info and searching by email address is the easiest way but only Im allowed to do that.

PostPosted: Tue May 15, 2012 9:17 am
Author: Helter
are they Global Moderators with full mod permissions? Do you want to allow them user administrative permissions?
Under ACP/USERS AND GROUPS/Groups' Permissions
choose "Global moderators"
under "Select type:" choose "Admin Permissions" "Go" then "Advanced Permissions"
Under the "Users AND Groups" tab choose "can manage users" = yes

then you can watch the moderator log to see if the permissions are ever abused

Re: Mod Powers

PostPosted: Tue May 15, 2012 1:04 pm
Author: viragotech
no I don't want them to have full admin rights, but I see no reason why mods aren't allowed to see email addresses or search by them?

they can IP search, which lets them find lost accounts most time but not email.

xxxx.com/memberlist.php?mode=searchuser&sk=c&sd=d

PostPosted: Tue May 15, 2012 3:52 pm
Author: Helter
im sure there is a setting for that but I cant find it atm.
For now since mods have perms to search via ip but guests and bots do not,
OPEN root/ALL ACTIVE STYLES/template/memberlist_search.html

FIND
Code: Select all
<!-- IF S_EMAIL_SEARCH_ALLOWED -->

REPLACE WITH
Code: Select all
<!-- IF S_IP_SEARCH_ALLOWED -->


now anyone with permission to search via ip will have access. This should only be Global Mods and Admins

Re: Mod Powers

PostPosted: Tue May 15, 2012 5:18 pm
Author: viragotech
Do i need to use a special editor?

you warnd me once about editing file for some reason or such with this IM3

thanks dude ;)

PostPosted: Tue May 15, 2012 6:51 pm
Author: Helter
you only need to be concerned when editing language files as they have to be utf8 w/o bom and should use linux line endings. Template files can be edited with any editor.

Re: Mod Powers

PostPosted: Wed May 16, 2012 12:23 pm
Author: viragotech
so close but its not working 100%, they can now see that search line, and they can search by email, but it shows 100s of results for a said email where there should only be 1.

PostPosted: Thu May 17, 2012 1:58 pm
Author: Michaelo
Create a new group (something like Mods)...
Make your moderators part of this group...
Get the new group_id ( in this sample code I am using 8 as the group ID)
Edit the code to allow this group to see the email address while searching members...

Notes:
Not sure if ($user->data['group_id']) returns the default group ID, if so you may have to make this the default group for all moderators...

In: memberlist.php (it should already be part of this code assuming phpBB3, so the edit above may refer to IM?)
Find:
Code: Select all
'S_EMAIL_SEARCH_ALLOWED'=> ($auth->acl_get('a_user')) ? true : false,
and change to:
Code: Select all
'S_EMAIL_SEARCH_ALLOWED'=> ($auth->acl_get('a_user')) ? true : false || $user->data['group_id'] == 8,


To allow them to see email addresses in other areas you would need to modify the php code...
Probably something like find 'S_EMAIL_SEARCH_ALLOWED' ... and add to following code to the logic criteria...
Code: Select all
 || $user->data['group_id'] == 8


Note also this edit may simply allow viewing of members email address, I don't see any code to search by email, so this would need to be added...

If the member has forgotten their username and wants to find out what it was, we might have to edit the 'Forgot My Password' code to allow email address in place of username. It is very common to allow a user to login in with either Username or Email these days...

PostPosted: Thu May 17, 2012 2:17 pm
Author: Michaelo
@Helter, your edit above should already be part of the normal memberlist_search.html code in phpBB3, so are you referencing IM here?

Re: Mod Powers

PostPosted: Thu May 17, 2012 8:25 pm
Author: viragotech
Yea, a forgot my info and only needing to input an email address would be a great solution.

that one thing people don't forget ;)

PostPosted: Thu May 17, 2012 9:28 pm
Author: Michaelo
There is an actual mod for it... http://www.phpbb.com/customise/db/mod/p ... via_email/
It might be the best way to go...

PostPosted: Thu May 17, 2012 11:02 pm
Author: Helter
Michaelo";p="40122 wrote:@Helter, your edit above should already be part of the normal memberlist_search.html code in phpBB3, so are you referencing IM here?


no, i just changed the template switch since there was no acp setting to allow mods to search users via email

Re: Mod Powers

PostPosted: Fri May 18, 2012 8:50 am
Author: viragotech
Well its sort of up to Helter to the best course of action to take, since he often has to hold my hand while we cross the street so to speak when it comes to modding and changing things ;) [Can't ever thank him enough]

I don't want to make his job any harder.

Maybe in the next updates to IM3 you could remove the need to input your username to get sent your full info.

you know on the lost password page, you just have to give your email address and it sends you both your username and password.

don't really need folks to be able to log in via email.

but just be able to use email to request their full account info.

PostPosted: Fri May 18, 2012 4:00 pm
Author: Helter
the mod is really simple so I installed it for you. The only issue I see is that you still need your username and email only to request a new password, but they can now login using only their email and password

Re: Mod Powers

PostPosted: Mon May 21, 2012 1:32 pm
Author: viragotech
Cool, thanks.

Another small annoyance, have they come up with a thread title prefix mod yet?

when people find or figure out a problem with their motorcycle, we ask them to go back and edit the title to say (SOLVED)

don't ask me whey, but only about 20% can actualy do that right, and it drives the mods nuts.

Even though I made it so simple, just hold shift and type, but so many just don't get it.