Moderator Needed

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Tazmanian
Registered User
Posts: 218
Joined: Wed Jan 25, 2006 7:02 pm
Location: Belgium
Contact:

Re: Moderator Needed

Post by Tazmanian » Thu Dec 04, 2008 9:42 pm

Great Mod.

My Dutch translation file:

[The extension zip has been deactivated and can no longer be displayed.]


User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Moderator Needed

Post by RMcGirr83 » Thu Dec 04, 2008 10:24 pm

:D

Thank you!!
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

Re: Moderator Needed

Post by Richazey » Wed Dec 10, 2008 4:06 pm

Great mod :D

HODDemon
Registered User
Posts: 66
Joined: Tue Feb 07, 2006 3:34 am

Re: Moderator Needed

Post by HODDemon » Mon Dec 15, 2008 5:34 pm

Hi mate,

Lovin your mod! I was just curious if there is any way for me to add the ability for Moderators to see new user accounts waiting for admin/moderator approval as well (rather than just posts and topics). I have a LOT of spam accounts try to register on my board, and I modified the permission system to allow Moderators (as well as Administrators) to approve of these new accounts or deny them, however, I don't believe this mod has that feature (to display accounts waiting for approval as well)

Is there any way I could add to the current code to achieve this easily? Or would it be a headache? Would you be able to include it in a future release perhaps?

Thanks!

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Moderator Needed

Post by RMcGirr83 » Mon Dec 15, 2008 6:44 pm

Possibly, where would the link take someone who had the correct authorizations/permissions (a_user)?
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Moderator Needed

Post by RMcGirr83 » Mon Dec 15, 2008 7:27 pm

Played around with it for a while....you can try this if you like.

OPEN

includes/moderator_needed.php

FIND

Code: Select all

		// user isn't authed for any of this mularky
BEFORE, ADD

Code: Select all

		// approval of user registrations
        if ($auth->acl_get('a_user'))
        {        
 
			$allow = true;
			$sql = 'SELECT user_id
						FROM ' . USERS_TABLE . '
					WHERE user_inactive_reason =' . INACTIVE_REGISTER;
					
			$result = $db->sql_query($sql);
			$inactive_registered = 0;
			while ($row = $db->sql_fetchrow($result))
			{
				// count the inactive registered users
			    if ($row['user_id'])
			    {
					$inactive_registered++;
				}
			}
			$db->sql_freeresult($result);
			// we gots us some inactive registered users
			if ($inactive_registered)
			{
			    $user->add_lang('mods/moderator_needed');
			    // inactive users
				$l_inactive_registered_count = $inactive_registered ? (($inactive_registered == 1) ? $user->lang['MODERATOR_NEEDED_INACTIVE_USER'] : $user->lang['MODERATOR_NEEDED_INACTIVE_USERS']) : '';
				$total_inactive_registered = sprintf($l_inactive_registered_count, $inactive_registered);

				// what good is the data if we can't see it?
				// Dump the data to the template engine
				$template->assign_vars(array(
					'TOTAL_INACTIVE_USERS'		=> $total_inactive_registered,
					'U_INACTIVE_USERS'			=> append_sid("{$phpbb_root_path}adm/index.$phpEx", 'i=inactive&mode=list', false, $user->session_id),

				));
			}
		}
OPEN

language/en/mods/moderator_needed.php

FIND

Code: Select all

'MODERATOR_NEEDED_APPROVE_TOPICS'   => '<strong style="color:#FF0000;">%d</strong> Topics need approval',
AFTER ADD

Code: Select all

	'MODERATOR_NEEDED_INACTIVE_USER'    => '<strong style="color:#FF0000;">%d</strong> User is inactive',
	'MODERATOR_NEEDED_INACTIVE_USERS'   => '<strong style="color:#FF0000;">%d</strong> Users are inactive',	
OPEN

styles/prosilver/template/index_body.html

FIND

Code: Select all

{TOTAL_MODERATOR_TOPICS}</a><!-- ENDIF -->&nbsp;
IN LINE, FIND

Code: Select all

&nbsp;
IN LINE, BEFORE ADD

Code: Select all

<!-- IF TOTAL_INACTIVE_USERS --> &bull; <a href="{U_INACTIVE_USERS}">{TOTAL_INACTIVE_USERS}</a><!-- ENDIF -->
...and that should do it. If you want the link to appear on the other pages, just do the last part for the html files involved. The link will take the user to the inactive user list in the ACP.
Last edited by RMcGirr83 on Sat Dec 27, 2008 12:55 pm, edited 1 time in total.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

HODDemon
Registered User
Posts: 66
Joined: Tue Feb 07, 2006 3:34 am

Re: Moderator Needed

Post by HODDemon » Wed Dec 17, 2008 4:06 am

Thank you! This has helped a lot. Cheers :)

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Moderator Needed

Post by RMcGirr83 » Wed Dec 17, 2008 11:59 am

:mrgreen:
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

hunterp
Registered User
Posts: 4
Joined: Tue Dec 30, 2008 2:11 pm

Re: Moderator Needed

Post by hunterp » Tue Dec 30, 2008 2:14 pm

Ok, I'm apparently a complete noob. I've followed the instructions and so far, it's not working. Would someone be willing to copy the particular sections of the files showing the modifications? I would very much appreciate any assistance.

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Moderator Needed

Post by RMcGirr83 » Tue Dec 30, 2008 6:57 pm

What, exactly, isn't working? Did you remember to purge the cache/refresh the template files after making the edits to the files as stated in the mod download?
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
GoBieN
Registered User
Posts: 538
Joined: Fri Mar 05, 2004 5:22 pm
Location: Belgium
Contact:

Re: Moderator Needed

Post by GoBieN » Tue Jan 20, 2009 7:39 pm

Works excellent !
I added the option or U_ACP to the beginning MCP IF statement, so that I as admin could also see the messages, without assiging myself as Mod on the forums.

User avatar
JezUK1
Registered User
Posts: 735
Joined: Wed Jul 27, 2005 11:12 pm
Location: England, Somerset
Contact:

Re: Moderator Needed

Post by JezUK1 » Tue Jan 20, 2009 11:25 pm

Will this mod work for Admins as well or just Moderators?
Jez

ControlThis.co.uk - Your online model shop

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Moderator Needed

Post by RMcGirr83 » Wed Jan 21, 2009 12:29 am

If the admin group/user has permission to act on reported auths and/or approval auths for posts and topics, then it will work for both groups. If the admin group/user does not have the correct auths, then no it only works for moderator groups.

Further it will only work for those (groups and/or users) that have permissions for a specific forum(s). EG, if a user/group has permission for reported or waiting approval posts/topics in one forum but not another, they will only get notification for whatever forum they have the permission set.

Acting on reported posts or waiting for approval posts/topics is a moderator permission, not an administrator permission.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
JezUK1
Registered User
Posts: 735
Joined: Wed Jul 27, 2005 11:12 pm
Location: England, Somerset
Contact:

Re: Moderator Needed

Post by JezUK1 » Wed Jan 21, 2009 6:24 pm

So how do I get it to work with Admins as well? Im the admin of my own site and would like it for mods and Admins but I cant see it.
Jez

ControlThis.co.uk - Your online model shop

User avatar
JezUK1
Registered User
Posts: 735
Joined: Wed Jul 27, 2005 11:12 pm
Location: England, Somerset
Contact:

Re: Moderator Needed

Post by JezUK1 » Wed Jan 21, 2009 6:29 pm

Forget that I just figured it out. This is a fantastic modification thanks! :mrgreen:
Jez

ControlThis.co.uk - Your online model shop

Locked

Return to “[3.0.x] MOD Database Releases”