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.


All times are GMT. The time now is 02:02 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.01057 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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