PDA

View Full Version : Miscellaneous Hacks - Group Leader PM Notification


magnus
07 Sep 2006, 20:13
Keywords: group, leader, notification, usergroups, public


Description:
Notifies the group leader(s), via PM, of join requests to their respective usergroup(s). Also notifies the users the status of their join requests upon moderation.

Details:
Basically, this is a continuation of the SEND A PRIVATE MESSAGE TO PUBLIC GROUP LEADERS UPON A JOIN REQUEST (http://www.vbulletin.org/forum/showthread.php?t=83086) plugin by AMYKHAR (http://www.vbulletin.org/forum/member.php?u=87). Many people were having various errors returned from the plugin, so in my attempt to fix it I kind of did things a little bit different.


Installation:
1. Download the attachment and import the product-glpn.xml file via the Product Manager.

2. ???

3. Profit


Support:
Officially, this hack is UNSUPPORTED. However, I will attempt to help you as much as possible. Please understand that this plugin was tested within a rather limited environment. Provide as much detail as possible when reporting any unwanted behavior so I (and others) may better assist you.

Version History:
v1.0 - Initial version.
v2.0 - Added ability to notify users the status of their request once moderated. All replies are phrased.
v2.1 - Passed usergroup title to JOINREQUET_NOTIFY_MESSAGE_APPROVED and JOINREQUETS_NOTIFY_MESSAGE_DECLINED phrases (requested by EasyTarget (http://www.vbulletin.org/forum/showpost.php?p=1071076&postcount=15))

* THIS PLUGIN HAS ONLY BEEN TESTED ON USERGROUPS WITH A SINGLE LEADER. I'VE CODED IT TO, THEORETICALLY, SUPPORT MULTIPLE LEADERS. HOWEVER, YOUR MILEAGE MAY VARY.

magnus
07 Sep 2006, 20:13
Post reserved. For what? Who knows. Could be pie, could be cake. Stay tuned.

Luke Brown256
07 Sep 2006, 20:47
excellent mod idea, i really think that should be a default thing but oh well lol.
*install*

EasyTarget
08 Sep 2006, 10:35
thanks, installing.

Hornstar
08 Sep 2006, 14:49
I used to have this installed, but then after a while I got too many pms a day lol, but it is something that is really good when you have under 20 join requests a day.

but I remember from expierence it would have been better if it would pm them back saying if they were accepted or declined etc.

magnus
08 Sep 2006, 15:06
I used to have this installed, but then after a while I got too many pms a day lol, but it is something that is really good when you have under 20 join requests a day.

but I remember from expierence it would have been better if it would pm them back saying if they were accepted or declined etc.

I like that idea. Give me 20 minutes. :)

KevNJ
08 Sep 2006, 18:35
how do you make public joinable groups ?

MotoUp
08 Sep 2006, 18:39
Try this...

http://www.vbulletin.com/forum/showthread.php?t=176331

magnus
08 Sep 2006, 19:34
Updated!

The new version (2.0) now adds the ability to notify users the outcome of their join requests. All replies phrased to assist in customization.

Enjoy. :)

MotoUp
08 Sep 2006, 20:05
With the little disclaimer at the bottom, are you saying it won't work if there is only one leader per usergroup? I have a pretty small board, and I am the only one that will be allowing or denying access...

magnus
08 Sep 2006, 20:16
With the little disclaimer at the bottom, are you saying it won't work if there is only one leader per usergroup? I have a pretty small board, and I am the only one that will be allowing or denying access...

No, I'm saying I've tested it only with one leader per usergroup. It should support multiple, though.

Luke Brown256
08 Sep 2006, 23:08
will this send a notification PM even when usergroup join request moderation is done VIA the admin panel?

MotoUp
08 Sep 2006, 23:15
No, I'm saying I've tested it only with one leader per usergroup. It should support multiple, though.
My apologies...I should really learn how to read! :laugh:

magnus
08 Sep 2006, 23:29
will this send a notification PM even when usergroup join request moderation is done VIA the admin panel?

Currently, no. Let me see what I can do.

* EDIT: After checking, there doesn't appear to be any $hook's within the necessary areas in admincp/usergroup.php. So, without modifying the actual PHP file, it cannot be done. Sorry. :(

EasyTarget
09 Sep 2006, 02:15
thanks for the update.

How about in the automated pms that it tells you which usergroup you were accepted/denied for? And is it possible to find out which forum/s the usergroup has permission to view and include those in the acceptance pm?

ex.
user111, we regret/are pleased to inform you that your request to join the USERGROUP101 usergroup has been denied/accepted.

The usergroup USERGROUP101 has access to the following forums:
forum 1
forum 2


But I guess in some situations that wouldn't be good. (then it would list all the forums they have permission to view instead of the 1 or 2 they have exclusivity for)

magnus
09 Sep 2006, 03:07
How about in the automated pms that it tells you which usergroup you were accepted/denied for?
Yea, that I can do. It will be in the next update.

And is it possible to find out which forum/s the usergroup has permission to view and include those in the acceptance pm?
That's a bit much. I'll see what I can do, but don't expect it anytime soon. :P

magnus
09 Sep 2006, 03:45
v2.1 updated! The usergroup name is now passed to the accepted/declined message body phrases. :)

EasyTarget
09 Sep 2006, 08:12
thanks for the update.That's a bit much. I'll see what I can do, but don't expect it anytime soon. :Pyeah, after I started thinking about it I think it might be pretty useless unless you could somehow define a forum to identify the group with, otherwise it would list all the other forums they have permission to view and not just the exclusive one.

Snake
09 Sep 2006, 19:39
Thanks. I have been waiting for this! :D

SnitchSeeker
27 Oct 2006, 09:32
Nice one! Just what I needed for snitchseeker.com fan clubs :)

*clicks install *

ricker
17 Nov 2006, 22:47
Thank you so much! I can't believe this isn't built in yet. you rock!

Abe Babe
10 Dec 2006, 23:11
This is definately what my group leaders were requesting. :)

However, I'd like to report a small bug. One of my group leaders has a "<" character in their username which causes the following error to occur:

Fatal error:

* The following users were not found:
1. Mew Mew &lt
2. 3

Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 763

The user who applied then doesn't appear in the Join Requests, even if just checking the queue in the usual way or through the admin CP.

magnus
11 Dec 2006, 12:50
This is definately what my group leaders were requesting. :)

However, I'd like to report a small bug. One of my group leaders has a "<" character in their username which causes the following error to occur:



The user who applied then doesn't appear in the Join Requests, even if just checking the queue in the usual way or through the admin CP.

Thanks for pointing that out, I'll work up a fix. :)

KURTZ
11 Dec 2006, 16:44
very simply and usefull hack!

thx :)

just INSTALLED!

Snake
14 Dec 2006, 02:53
This is definately what my group leaders were requesting. :)

However, I'd like to report a small bug. One of my group leaders has a "<" character in their username which causes the following error to occur:



The user who applied then doesn't appear in the Join Requests, even if just checking the queue in the usual way or through the admin CP.
LMAO so it's you, eh SY! ;)

Rebecca217
03 Jan 2007, 14:33
Beautiful! Thank you! :D

Rebecca

JimmDaBimm
23 Apr 2007, 03:25
yeah thats just what ive missed in the vb Usergroup options Thanks !

But one Question...whrere can i configurat this? I didnt find any options or somethin

magnus
23 Apr 2007, 12:13
yeah thats just what ive missed in the vb Usergroup options Thanks !

But one Question...whrere can i configurat this? I didnt find any options or somethin

There are no configuration options. Messages will automatically be sent to those marked as Usergroup Leaders.

JimmDaBimm
23 Apr 2007, 14:42
ah ok...then i have to check the phrases 'cause ive a german board ;D.

Btw :it works fine :>

m1thr0s
30 Apr 2007, 07:47
very useful for classroom forums with instructors too lazy or preoccupied to check their UserCP's!!!

should be standard, I agree. I don't suppose there's a reverse hack anywhere that also notifies joinees upon accepted/denied...

thanks for thinking into the nooks and crannies...very useful.

magnus
30 Apr 2007, 16:05
very useful for classroom forums with instructors too lazy or preoccupied to check their UserCP's!!!

should be standard, I agree. I don't suppose there's a reverse hack anywhere that also notifies joinees upon accepted/denied...

thanks for thinking into the nooks and crannies...very useful.

As of version 2.0:
v2.0 - Added ability to notify users the status of their request once moderated. All replies are phrased.

There user is notified via PM of their request outcome. Either accepted or denied. ;)

FatalBreeze
19 Jun 2007, 07:00
Now That's a must built-in hack in every version of vB :)

TigerWare
26 Aug 2007, 21:06
Installed on 3.6.8 - Very nice indeed. I'm just setting up a joinable group on my board and really wanted notifications and returning accept/deny messages. Pity this is not done by default in vb... Highly useful Modification. :up:

Kitara79
13 Sep 2007, 10:28
Just installed on 3.6.8. Works perfect! Thanks!

This functionality should indead be a standard. I really was shocked when I found out that groupleaders are not notified about new requests.

dotJoel
16 Sep 2007, 02:44
Excellent Mod, thankyou.

bulbasnore
20 Sep 2007, 02:13
We're testing this on 3.6.7_pl1. I was able to send a test request to a single leader group.
My second request was to a multiple user group, and I was going to come back and report if it worked but...

Fatal error:
* Exalted_Leader has exceeded their stored private messages quota and can not accept further messages until they clear some space.

Unable to proceed with save while $errors array is not empty in class vB_DataManager_PM in /includes/class_dm.php on line 765

Of course, we don't let anyone be called exalted leader, but it was a name with an underscore in the middle.

I'm going to tell this guy to clear his box and try again, but I though that error might be interesting anyway.

You rock.

RaZor Edge
25 Sep 2007, 06:39
We're testing this on 3.6.7_pl1. I was able to send a test request to a single leader group.
My second request was to a multiple user group, and I was going to come back and report if it worked but...

Fatal error:
* Exalted_Leader has exceeded their stored private messages quota and can not accept further messages until they clear some space.

Unable to proceed with save while $errors array is not empty in class vB_DataManager_PM in /includes/class_dm.php on line 765

Of course, we don't let anyone be called exalted leader, but it was a name with an underscore in the middle.

I'm going to tell this guy to clear his box and try again, but I though that error might be interesting anyway.

You rock.

I also had this kind of error with a leader not accepting pm...

magnus
27 Sep 2007, 03:49
I would be interested to know any updates to this. I'm going to throw this up in a sandbox and test it with the same conditions to see what results I get.

Thanks.

Kiint
30 Oct 2007, 22:58
I was just looking in the admin control panel for a notify by pm option and was shocked when i couldn't find it...then I found your mod....Great work, works just fine :)

As all the others have said, This should be in the default installation of vBulletin

deezelpope
30 Oct 2007, 23:16
I totally agree...it should be default!

dooch
03 Dec 2007, 13:51
great mod, installed

fintan74
21 Dec 2007, 10:42
Great product; just what I was looking for. Thanks!

airborneCAL
10 May 2008, 03:41
This is excellent. Anybody have this for 3.7?

Icy
10 May 2008, 08:15
Yes I'm using it with 3.7 :)

tako
15 Jun 2008, 14:46
Not working anymore with latest version, 3.7.1 pl1

JohnChapman
22 Aug 2008, 01:51
I'm running 3.7.2 on a new forum. I dropped this mod in this afternoon and it appeared to work great...until one of the forum moderators changed their profile to not allow PM's (which is WIERD for a moderator...but hey). Anyway, the message post action bombed with:

Fatal error:
Chris has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.

If you are trying to send this message to multiple recipients, remove Chris Barbour from the recipient list and send the message again.
Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in [path]\includes\class_dm.php on line 810

So...I yanked Chris out of the moderator list and it appeared to work again, but then one of the new users was getting a 500 page after requesting to join. So... I disabled it for now, but will do some more local testing.

IR15H
28 Aug 2008, 02:09
Another bug occurs if the the group the user is requesting membership to has more leaders than the maximum amount of PMs the user is allowed to send at once;

https://www.vbulletin.org/forum/external/2008/08/3.png

Jafo232
11 Sep 2008, 18:22
We kinda needed this plugin for a site, so I modified it so it will not break if a user has PM's turned off. Here is my version (2.2). Submitting to product author so they can update it. Working for 3.7.x

Cocko
24 Sep 2008, 13:12
We kinda needed this plugin for a site, so I modified it so it will not break if a user has PM's turned off. Here is my version (2.2). Submitting to product author so they can update it. Working for 3.7.x

Thanx, thats the difference. Installed.

MediaHound
17 Dec 2008, 15:41
We kinda needed this plugin for a site, so I modified it so it will not break if a user has PM's turned off. Here is my version (2.2). Submitting to product author so they can update it. Working for 3.7.x

Thanks +1!

viper357
09 Mar 2009, 10:20
We kinda needed this plugin for a site, so I modified it so it will not break if a user has PM's turned off. Here is my version (2.2). Submitting to product author so they can update it. Working for 3.7.x
Jafo, will that work on 3.6.12?

silly rabbit
28 Mar 2009, 22:21
magnus, Jafo, just so you know i installed this mod on 3.8.1 and it appears to be working fine - downloaded updated version on page 4 and both "request" PM to group leader and "confirmation" Pm to member seems to WORK!

Have not tested extensively but ? ? ?

clicked "installed" (on 3.8.1) Rabbit

(ps: would prefer this in "notifications" . . . hint hint beggars can't be choosy!)

Sunka
02 May 2010, 08:06
I installed edited version of this MOD v2.2 (few posts above), and it is working good on vB 4.0.3 except one error message only on CMS page on the top.
Could anyone help to that error message gone :)


Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bootstrap.php(1261) : eval()'d code on line 456

Sunka
03 May 2010, 22:54
I installed edited version of this MOD v2.2 (few posts above), and it is working good on vB 4.0.3 except one error message only on CMS page on the top.
Could anyone help to that error message gone :)


Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bootstrap.php(1261) : eval()'d code on line 456

Bump!

Sunka
10 May 2010, 02:19
I installed edited version of this MOD v2.2 (few posts above), and it is working good on vB 4.0.3 except one error message only on CMS page on the top.
Could anyone help to that error message gone :)


Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bootstrap.php(1261) : eval()'d code on line 456

Bumping again! :p

ckgreenman
19 Nov 2010, 21:03
Interestingly enough, running this mod on VB4.0.8. When running it on a Solaris server I don't get the error but running it on an Ubuntu server I do. Can't figure it out.

bbuehne
19 Oct 2011, 18:05
Bumping again! :p

Fixed it. It has to do with the array object not being present in the xml after the array_merge. Here is the site I used to find the issue:

http://drupal.org/node/36408

And I've attached the updated xml.

Working fine on 4.1.7. Great mod!

Killeglass
23 Feb 2012, 02:27
Is there a newer version of this?

Highly needed

XGC Viper XI
12 Jan 2013, 20:04
Fixed it. It has to do with the array object not being present in the xml after the array_merge. Here is the site I used to find the issue:

http://drupal.org/node/36408

And I've attached the updated xml.

Working fine on 4.1.7. Great mod!

I installed this xml file and it works on 4.2.2.