PDA

View Full Version : Send a Private Message to user (and optional user note) when approved for a usergroup


majorxp
06-03-2006, 10:00 PM
Send a Private Message to user (and optional user note) when approved for a usergroup

This is a product that will send an automatic private message to a user (and optionally place a profile note in their profile) after being approved for a usergroup using the 'group memberships' system (and only the group memberships system).

Difficulty of installation: Easy!
Time to install: About 1 minute.

There are two versions of this product. One will add the profile note and the other will not. The one that adds a profile note works nicely with this plugin (https://vborg.vbsupport.ru/showthread.php?t=116615) that places a note when a user requests to join. These help moderators and admins know who placed a request when and if they were approved, who did the approval and when (without having to dig into the logs).

This was inspired by Amykhar's plugin (https://vborg.vbsupport.ru/showthread.php?t=83086) that emails the usergroup leaders upon a request (but does not replace it). With her permission, I used a bit of her code and thank her greatly for that plugin.

Download Instructions
Choose your version (do not install both):
product_ug_approval_pm_un.xml
This version sends the user who was approved a private message and adds the user note to the member's profile
product_ug_approval_pm.xml
This version only sends the user who was approved a private messageInstall Instructions
Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Browse and select the plugin you downloaded to your computer then press 'Import'.

This installs one plugin and one phrase.


Upgrade Instructions
Go to your admin cp, then:
Plugin System -> Manage Products -> find "PM to user when approved by Majorxp" and choose uninstall from the dropdown box. Then reinstall using instructions above.



Usage Instructions
You can edit the phrase UG_approval_pm to change the approval PM. The version that adds the usernote has the usernote hard coded. If enough folks want it phrased, let me know.

Misc Notes
This does not send out a PM or user note if the user request is denied. This was done below by another coder, but I have not yet fully tested it personally.

This also does not send a PM if you use the admincp or moderatorcp to promote users and I have no intentions of working on such a mod.


** If you use this product, please click install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=116615) so I know that folks actually use this! **


1.0.1 Fixed bug with product_ug_approval_pm_un version
1.0.0 Initial Release Version

Keywords: Private Message, PM, user group, user note, approval, approve, email

SCORPION1
06-04-2006, 10:02 PM
first time for everything thatnks m8 will try this out cheers:)

Ambie
06-04-2006, 10:53 PM
Thanks, I needed this!:)

rmxs
06-05-2006, 05:13 AM
Fantastic...

Installed

SUGESTION:Its possible to sent email IF YOU ADD A MEMBER TO USER GROUP WITHOUT REQUEST BY USER??

Eriond
06-05-2006, 10:18 AM
does this work along side Amykhar's plugin or can it replace it? also I would like the option for sending a pm denying the user as I will be adding a new usergroup for specific ages.

Kihon Kata
06-05-2006, 12:57 PM
Installed! So this ONLY works if the user "requests". What about when a user has their usergroup changed by a promotion or by an admin? Does it send a PM then?

majorxp
06-05-2006, 01:16 PM
SUGESTION:Its possible to sent email IF YOU ADD A MEMBER TO USER GROUP WITHOUT REQUEST BY USER??
That's an interesting idea. I will look into that.


does this work along side Amykhar's plugin or can it replace it? also I would like the option for sending a pm denying the user as I will be adding a new usergroup for specific ages.This works alongside Amykhar's plugin. Her's sends a PM to the usergroup leaders upon a user request, this one sends a PM to the user after being approved by a usergroup leader.


Installed! So this ONLY works if the user "requests". What about when a user has their usergroup changed by a promotion or by an admin? Does it send a PM then?Right. This works when users go through the 'group memberships' system. As rmxs suggested, it is a good idea and I'll check it out when I get a chance.


Since this is running on at least 10 installs, I'm going to pull the beta tag. Please report any issues encountered - if any.

Kihon Kata
06-05-2006, 01:25 PM
What about my other question? :)

What about when a user has their usergroup changed by a promotion or by an admin? Does it send a PM then?

majorxp
06-05-2006, 01:31 PM
If a mod or admin uses the admincp or moderatorcp to promote users, it will not send a PM. It only sends a PM when a user is promoted through the group memberships system.

I'm going to look into adding the functionality of sending an email when a user is approved in the control panels.

...did that answer your question?

Eriond
06-05-2006, 01:32 PM
This works alongside Amykhar's plugin. Her's sends a PM to the usergroup leaders upon a user request, this one sends a PM to the user after being approved by a usergroup leader.


Thanks will install this as soon as my test site is back up and running.

Kihon Kata
06-05-2006, 01:43 PM
It sure did! Thanks. I am looking for this option:

I'm going to look into adding the functionality of sending an email when a user is approved in the control panels.

Snake
06-05-2006, 03:02 PM
Excellent!

alshehi
06-05-2006, 03:18 PM
very nice

majorxp
06-05-2006, 03:43 PM
very niceDon't forget to click the install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=116615) link! ;)

Hornstar
06-05-2006, 06:32 PM
What about the option for the usergroup leader to write a note, that then gets sent to the people that dont get accepted so they know why they were not accepted.

majorxp
06-05-2006, 06:50 PM
What about the option for the usergroup leader to write a note, that then gets sent to the people that dont get accepted so they know why they were not accepted. This does not send out an PM or user note if the user request is denied. I might add that later if enough folks want that functionality.

PimvanJ
06-06-2006, 05:25 PM
It also does not send one if you use the admincp or moderatorcp to promote users, but I might add that in the future.

Is this hard to code?
I'm the only one that promote users to a secondary usergroup, now sending every user a mail by myself.

majorxp
06-06-2006, 06:04 PM
Well, I just tested a few things and it turns out that sending emails off the control panel when users are added to a secondary group is a lot harder than I had anticipated.

It would be easier to make a whole new page solely designed to add secondary usergroups to a user and send them a PM.

I would take a stab at it, but I have a bunch of other pet projects I am working on that need to be completed first.

ChrisBaktis
06-07-2006, 03:16 AM
I second the request for the ability to send a PM upon an Admin/mod Promtion. At first this was exactly as I needed until I saw your Misc Info section.

majorxp
06-19-2006, 02:27 AM
This hack has been updated with a bugfix.

The fix only is needed for the version that inserts a user note (product ug approval pm un.xml). If you have installed this, please download and install the latest version.

Majorxp

Snake
06-23-2006, 04:25 PM
Thanks for the update! :)

gcphost
06-23-2006, 06:03 PM
Great work, I need it mainly for when the request is denied, if the user doesnt supply information I ask for on the request form they cant join so I deny them but theres no notification letting them know their not in so they sit there like, duhh...

I'll post my changes.

gcphost
06-25-2006, 07:36 PM
Ok all I made the changes so this now works with approve, deny and ignore.

Its a cross between Majorxp and 3.5's joinrequests.php , Major was using the php's generated arrays to build his list, well this only stores approved.

The plugin is now using the post request list of users you have selected, it will do the e-mails in the start of the process instead of when its completed, this way you know whos being ignored or denied, if its done afterwords the user information is removed from the group table so and only approved information is stored in php.

Only minor changes, works good in my testing, hope this helps.

Make sure to edit the xml to change your e-mails, or you can do it in the admin panel later.

Stop
06-26-2006, 12:23 AM
I installed it and moved a member to another group but there was no PM sent.

?

gcphost
06-26-2006, 12:25 AM
I belive this mod only notifys when the initial accept is done.

majorxp
06-26-2006, 03:32 AM
@Stop

My version or the other one posted above? If mine, then it only works using the request/approve group process

Stop
06-29-2006, 02:11 AM
majorxp

can you add an option so it sends a pm upon any changes in the usergroups ?

thanks a lot.

bada_bing
06-29-2006, 02:58 AM
Will this work if im using subscriptions and when a member pays for a subscription and complates the paypay transaction and moved to the Premium Member usergroups this hack will shoot them a PM with a message letting them know that they have been upgraded or whatever message I want it to say?

majorxp
06-29-2006, 05:30 PM
can you add an option so it sends a pm upon any changes in the usergroups ?This would be outside of the scope of this project.

Will this work if im using subscriptions and when a member pays for a subscription and complates the paypay transaction and moved to the Premium Member usergroups this hack will shoot them a PM with a message letting them know that they have been upgraded or whatever message I want it to say? Nope.


Sorry, but both of these aren't part of or going to be part of it. This mod is only for when the request/approve process is used, not for admin/modcp or other ways members have their usergroup changes.

Snake
06-29-2006, 06:31 PM
Works great now!

rushabh
08-19-2006, 06:31 AM
Awesome and installed. Thanks and appreciated.

BTW is it possible to notify / PM users when their thread / post has been approved?

JollyJack
08-28-2006, 05:03 PM
Does this work with 3.6, if so which download and where do you change the PM message

kau
09-08-2006, 06:40 PM
I want to automatically PM users who just paid using the paid subscription option.

Will this hack do that?

majorxp
01-16-2007, 06:05 PM
Awesome and installed. Thanks and appreciated.

BTW is it possible to notify / PM users when their thread / post has been approved?Not using this plugin.

Does this work with 3.6, if so which download and where do you change the PM messageYes, and the PM message is the phrase "UG_approval_pm".

I want to automatically PM users who just paid using the paid subscription option.

Will this hack do that?Nope.

parash
12-29-2007, 10:43 PM
thanks.....installed.

Gooner
03-23-2008, 11:48 AM
Nice mod, This is the only mod i could find of its kind, but the developer hasnt been online since 2007... so if somebody else could make something similar would be great

majorxp
03-23-2008, 02:02 PM
Nice mod, This is the only mod i could find of its kind, but the developer hasnt been online since 2007... so if somebody else could make something similar would be great

I'm still around, but focusing on some other projects right now. Is there something you need regarding the mod?

Jon_Simmonds
04-26-2008, 05:09 PM
+1 to the denied message option

Elenna
05-22-2008, 12:41 AM
I'm wondering if this would be easy to modify to have a different message depending on the usergroup they were approved for?

If I wanted to do that, could I change the name on the product, modify some code, and have it work? :)

garthcoleman
05-29-2008, 01:54 AM
I just approved a user that has chosen to not receive PM from anybody. This resulted in a slew of SQL code being dumped on my screen. No harm done, as the approval was done and only the PM wasn't sent. But are there any ideas how to avoid that in the future, or at least to prevent the SQL dump? Maybe first check if the user has elected to receive PMs, and if not, don't try to send one?

I'd like to know a workaround before I open up this to other Group Leaders to use. I don't want to confuse them...

hugh_
02-24-2014, 06:35 PM
Will this mod message users on auto promotion to a new group? Thanks.

hugh_
02-24-2014, 06:37 PM
Oh and any chance of an update to vbulletin 4.2.x? :)