Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Sarge on May 18, 2007, 09:22:09 PM

Title: Select Admin for Notifications
Post by: Sarge on May 18, 2007, 09:22:09 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=811)

This mod allows an admin to select only one admin (or another member with proper permissions) to receive notifications regarding new member registrations.

After the mod installation, the member to be notified can be selected in Admin > Registration > Settings tab > "Select administrator to notify" -- the default value is All, which is the default SMF setting.

Version history:
1.2
Applied a workaround for a bug in SMF (versions 1.1.1 and earlier) that can cause text strings to appear at the top of forum pages after uninstall. SMF 1.1.2 and later don't have this issue. From the SMF changelog:

Quote from: changelog.txt
! The package manager wasn't uninstalling "end" searches correctly. (Subs-Package.php)

1.1
Fixed a bug regarding proper permissions.

1.0
First release.
Title: Re: Select Admin for Notifications
Post by: JungleBunny on May 25, 2007, 09:59:15 AM
Thanks Sarge 8) 8)

Works perfect with 1.1.2
Title: Re: Select Admin for Notifications
Post by: Sarge on May 25, 2007, 02:30:31 PM
Quote from: JungleBunny on May 25, 2007, 09:59:15 AM
Thanks Sarge 8) 8)

Works perfect with 1.1.2

Glad to read about it. :)
Title: Re: Select Admin for Notifications
Post by: Rafferty on September 16, 2007, 05:22:34 AM
The Script lines removed ok manually thanks sarge. My version is 1.1.3, installation still doesn't work correctly. On installing, I have a blank Admin/Registration page screen. It has unistalled correctly though. Thanks for your help.
Title: Re: Select Admin for Notifications
Post by: Sarge on September 16, 2007, 05:45:07 AM
Quote from: Rafferty on September 16, 2007, 05:22:34 AM
On installing, I have a blank Admin/Registration page screen.

Are you using the new version (1.2) that I posted to the mod site today? It installs, works and uninstalls fine in all my SMF 1.1.3 forums where I tested it.

Do you have any other mods installed? The best way to fix the issue is to upload all files from the SMF 1.1.3 Large Upgrade package, except for upgrade.php and the two .sql files, to your forum directory on the server. This will remove all mods, so you should uninstall them before doing the upload; after that, you should be able to reinstall all mods.

Or, send me these files: ManageRegistration.php and Subs-Post.php (both from the Sources directory) and Register.template.php from Themes/default/ and I will try to find what's wrong.
Title: Re: Select Admin for Notifications
Post by: airdance on September 19, 2007, 02:38:24 PM
Installed, works like a charm on my 1.1.3 with TinyPortal. Excellent mod, just what we were looking for. Thanks !  ;)
Title: Re: Select Admin for Notifications
Post by: Davy-D on October 24, 2007, 04:56:27 PM
Hi.

Great mod but I have a problem as follows: the readme states, that:

"This mod adds a select list to allow an admin to select only one admin (or another member with proper permissions) to receive notifications."

How can I grant another member the proper permissions? Which permission needs to be set in order to select ANY specific non-admin member of my board?

Any help is pretty much appreciated.

Thx
Davy
Title: Re: Select Admin for Notifications
Post by: dvk01 on October 31, 2007, 10:30:37 AM
could this be updated to give a checklist of admins/ members to receive notifications

I have several forums where some of the admin are involved in registration/welcome to new members & some not and this only allows 1 or all
Title: Re: Select Admin for Notifications
Post by: ccbtimewiz on November 10, 2007, 10:14:54 AM
mm, interesting modification.

Only problem is, I'm able to select any administrator except for myself. Is that normal? x.x
Title: Re: Select Admin for Notifications
Post by: Sarge on November 29, 2007, 08:49:36 AM
Quote from: dvk01 on October 31, 2007, 10:30:37 AM
could this be updated to give a checklist of admins/ members to receive notifications

Good suggestion, I will update it.
Title: Re: Select Admin for Notifications
Post by: Sarge on November 29, 2007, 08:50:23 AM
Quote from: ccbtimewiz on November 10, 2007, 10:14:54 AM
Only problem is, I'm able to select any administrator except for myself. Is that normal? x.x

Is "Administrators" your primary membergroup?
Title: Re: Select Admin for Notifications
Post by: Sarge on November 29, 2007, 08:56:58 AM
Quote from: Davy-D on October 24, 2007, 04:56:27 PM
Which permission needs to be set in order to select ANY specific non-admin member of my board?

It's the moderate_forum permission. Be careful who you give this permission to, it's very powerful.
Title: Re: Select Admin for Notifications
Post by: ccbtimewiz on December 06, 2007, 03:17:25 PM
Sorry for the late reply, but yes. My default group is "Administrator" (or rather, group 1).

Am I supposed to see myself as one of the users whom can be picked? I made another account and gave them admin rights and I was able to choose that account but not my other, so my account won't show up on any account attempting to edit it.

Is that normal? o.o;
Title: Re: Select Admin for Notifications
Post by: Rafferty on December 21, 2007, 05:02:33 AM
Probably my fault Sarge but I had problems installing with 1.1.3 initially but didn't uninstall it prior to upgrading to 1.1.4. After installing 1.1.4, the mod didn't show up in my mod list so I installed your mod 1.2 over it i think, now i have 3 drop down boxes in the admin menu. I tried uninstalling the mod but the 3 boxes are still there. How do i remove those so i can start over.
Title: Re: Select Admin for Notifications
Post by: dvk01 on December 21, 2007, 05:13:45 AM
Any news on an update so we can pick specific ADMINS as I run several forums where there are multiple admins but only 1 or 2 want to be involved in allowing members admission

1 of my forums only allow members that are known to be employed by certain organizations and only 2 people have the access to that list so there is no need for 5 admins to get 20 or 30 emails every day about new member requests
Title: Re: Select Admin for Notifications
Post by: Elysia on January 26, 2008, 11:05:24 PM
Hi Sarge, I have a weird problem with the mod (now using version 1.2 but I tried 1.1 earlier and had the same issue) and wonder if you can help please? 

I have SMF 1.1.4 with 2 admins and 5 global mods. The global mods membergroup has the moderate boards permission. In the registration settings screen dropdown box which appeared after the mod was installed (no errors shown) it shows the 2 admins and only 3 of the global mods. There is no difference between the permissions for the GM<s in the list and the GMs who don't appear in it, and I can't figure out why my other 2 GMs aren't in the list.

Is there perhaps a max size limit on the number of people who can be listed in the dropdown? Any help would be most welcome. Thanks in hope. :)
Title: Re: Select Admin for Notifications
Post by: VistaX on January 27, 2008, 04:46:32 AM
Hey,

I really like this mod. I have set it up so that I recieve all the notifications and I really recommend it to any administrators who want to know all your sites business.
Title: Re: Select Admin for Notifications
Post by: Sarge on January 28, 2008, 04:47:26 AM
Quote from: Rafferty on December 21, 2007, 05:02:33 AM
Probably my fault Sarge but I had problems installing with 1.1.3 initially but didn't uninstall it prior to upgrading to 1.1.4. After installing 1.1.4, the mod didn't show up in my mod list so I installed your mod 1.2 over it i think, now i have 3 drop down boxes in the admin menu. I tried uninstalling the mod but the 3 boxes are still there. How do i remove those so i can start over.

This is the code installed by the mod in Themes/default/Register.template.php:

<tr class="windowbg2">
<th width="50%" align="right">
<label for="admin_to_notify_select">', $txt['admin_to_notify'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=admin_to_notify" onclick="return reqWin(this.href);">?</a>)</span>:
</th>
<td width="50%" align="left">
<select name="admin_to_notify" id="admin_to_notify_select">
<option value="0"', empty($modSettings['admin_to_notify']) ? ' selected="selected"' : '', '>', $txt[190], '</option>';
foreach ($context['atnmod_admins'] as $atnmod_admin)
echo '
<option value="', $atnmod_admin['ID_MEMBER'], '"', !empty($modSettings['admin_to_notify']) && $modSettings['admin_to_notify'] == $atnmod_admin['ID_MEMBER'] ? ' selected="selected"' : '', '>', $atnmod_admin['memberName'], '</option>';
echo '
</select>
</td>
</tr>


This code is probably present 3 times. Be sure to treat the above as a whole -- some of the lines are quite common in that file.

Download the file via FTP, remove my code, save the file and reupload it; make sure it overwrites the original file.

You will probably have to remove my code from other files too. Find the changes using SMF Package Parser (http://www.smfhelper.info/forum/package.php5) -- make sure you have selected "Operation: Uninstall" and "Show: All Edits".
Title: Re: Select Admin for Notifications
Post by: Sarge on January 28, 2008, 04:49:49 AM
Quote from: ccbtimewiz on December 06, 2007, 03:17:25 PM
Am I supposed to see myself as one of the users whom can be picked? I made another account and gave them admin rights and I was able to choose that account but not my other, so my account won't show up on any account attempting to edit it.

Quote from: AnneN on January 26, 2008, 11:05:24 PM
There is no difference between the permissions for the GM<s in the list and the GMs who don't appear in it, and I can't figure out why my other 2 GMs aren't in the list.

Check out the notification options for those admins/GMs from their Profile > Notifications and Email > "For topics and boards I've requested notification on, notify me of". If they have selected "Nothing at all," that's why :)

It just makes sense to me to not send e-mail to people who don't want to, therefore they're not selectable.

[edit]
Added quote.
Title: Re: Select Admin for Notifications
Post by: pinkfreak on February 17, 2008, 09:55:08 PM
Has anyone created a 1.1.4 version of this yet? ???
Title: Re: Select Admin for Notifications
Post by: Elysia on February 18, 2008, 07:12:18 AM
Quote from: Sarge on January 28, 2008, 04:49:49 AM
Check out the notification options for those admins/GMs from their Profile > Notifications and Email > "For topics and boards I've requested notification on, notify me of". If they have selected "Nothing at all," that's why :)

It just makes sense to me to not send e-mail to people who don't want to, therefore they're not selectable.

Ahhh right, thanks Sarge. Now I understand. :)  I much appreciate your explanation.
Title: Re: Select Admin for Notifications
Post by: Sarge on February 18, 2008, 11:27:33 AM
Quote from: pinkfreak on February 17, 2008, 09:55:08 PM
Has anyone created a 1.1.4 version of this yet? ???

The mod is automatically compatible with 1.1.4 and probably future 1.1.x versions. :)

SMF 1.1.4 compatibility is added to the list in the mod page.
Title: Re: Select Admin for Notifications
Post by: stfox100 on October 09, 2008, 07:20:37 PM
Will this work with 1.1.6?
I also have the member redirection mod installed also. Hope that doesn't interfere, but I can always manually install it.
Just wanted to be sure before I went ahead.
Title: Re: Select Admin for Notifications
Post by: LuminaRS on October 16, 2009, 01:50:13 PM
Just wanted to let everyone know this works great on 1.1.10
Title: Re: Select Admin for Notifications
Post by: Tuddley3 on March 09, 2010, 05:50:23 PM
Quote from: dvk01 on October 31, 2007, 10:30:37 AM
could this be updated to give a checklist of admins/ members to receive notifications

I have several forums where some of the admin are involved in registration/welcome to new members & some not and this only allows 1 or all

Is this going to be updated ? Out of my 6 staff members, 1 doesn't like email notifications. So having a checklist, maybe including non-admin members would be a nice feature. For now I'll just use me as the "greeter", but I'm getting a little tired of having to greet new members by myself every day.

Thanks Sarge,
Todd
Title: Re: Select Admin for Notifications
Post by: Het Bosje on September 29, 2011, 08:41:55 AM
Hello Sarge,
is there any chance the mod Select Admin for Notifications is to be adapted for 2.0.x
Because my staff op 8 admins is nuking me with emails giving their opinion about the emails the system is generating.
And I want to know who is registering and send a welcome to those people.
On my 1.1.14 forum it worked like a charm, so it would be much appreciated when the mod is adapted for 2.0.x

best regards Pieter.
Title: Re: Select Admin for Notifications
Post by: Impsat-1 on July 10, 2015, 10:18:37 PM
Mmm... Hi Sarge any update for SMF 2.0.10 please?

I hope yes.... (http://media.simplemachinesweb.com/smf/default/images/post/thumbup.gif)



Have a Nice Time
Thanks & Regards... 8).-
Title: Re: Select Admin for Notifications
Post by: live627 on July 10, 2015, 10:31:06 PM
QuoteLast Active:
    November 29, 2009

Chances of an update are slim.
Title: Re: Select Admin for Notifications
Post by: Impsat-1 on July 10, 2015, 10:52:44 PM
Quote from: live627 on July 10, 2015, 10:31:06 PM
QuoteLast Active:
    November 29, 2009

Chances of an update are slim.


Mmm.... yea, but maybe another advanced user can do it, or tell me how I can use for the last´s version's, anyway thanks....



Thanks & Regards
Have a Nice Time 8).-