vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Send a Private Message to user (and optional user note) when approved for a usergroup (https://vborg.vbsupport.ru/showthread.php?t=117650)

majorxp 06-03-2006 10:00 PM

Send a Private Message to user (and optional user note) when approved for a usergroup
 
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 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 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 message
Install 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 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

Quote:

Originally Posted by rmxs
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.


Quote:

Originally Posted by Eriond
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.


Quote:

Originally Posted by Kihon Kata
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? :)

Quote:

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

Quote:

Originally Posted by majorxp
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:
Quote:

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

Quote:

Originally Posted by alshehi
very nice

Don't forget to click the install 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

Quote:

Originally Posted by hornstar1337
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

Quote:

Originally Posted by Stop
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.

Quote:

Originally Posted by bada_bing
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

Quote:

Originally Posted by rushabh (Post 1055625)
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.

Quote:

Originally Posted by JollyJack (Post 1062691)
Does this work with 3.6, if so which download and where do you change the PM message

Yes, and the PM message is the phrase "UG_approval_pm".

Quote:

Originally Posted by kau (Post 1070906)
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

Quote:

Originally Posted by Gooner (Post 1472408)
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...


All times are GMT. The time now is 06:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01304 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete