PDA

View Full Version : Miscellaneous Hacks - Group Leader PM Notification


magnus
09-06-2006, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=83086) plugin by AMYKHAR (https://vborg.vbsupport.ru/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 (https://vborg.vbsupport.ru/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
09-07-2006, 06:13 PM
Post reserved. For what? Who knows. Could be pie, could be cake. Stay tuned.

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

EasyTarget
09-08-2006, 08:35 AM
thanks, installing.

Hornstar
09-08-2006, 12:49 PM
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
09-08-2006, 01:06 PM
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
09-08-2006, 04:35 PM
how do you make public joinable groups ?

MotoUp
09-08-2006, 04:39 PM
Try this...

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

magnus
09-08-2006, 05:34 PM
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
09-08-2006, 06:05 PM
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
09-08-2006, 06:16 PM
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
09-08-2006, 09:08 PM
will this send a notification PM even when usergroup join request moderation is done VIA the admin panel?

MotoUp
09-08-2006, 09:15 PM
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
09-08-2006, 09:29 PM
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-09-2006, 12:15 AM
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-09-2006, 01:07 AM
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-09-2006, 01:45 AM
v2.1 updated! The usergroup name is now passed to the accepted/declined message body phrases. :)

EasyTarget
09-09-2006, 06:12 AM
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-09-2006, 05:39 PM
Thanks. I have been waiting for this! :D

SnitchSeeker
10-27-2006, 07:32 AM
Nice one! Just what I needed for snitchseeker.com fan clubs :)

*clicks install *

ricker
11-17-2006, 08:47 PM
Thank you so much! I can't believe this isn't built in yet. you rock!

Abe Babe
12-10-2006, 09:11 PM
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
12-11-2006, 10:50 AM
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
12-11-2006, 02:44 PM
very simply and usefull hack!

thx :)

just INSTALLED!

Snake
12-14-2006, 12:53 AM
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
01-03-2007, 12:33 PM
Beautiful! Thank you! :D

Rebecca

JimmDaBimm
04-23-2007, 01:25 AM
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
04-23-2007, 10:13 AM
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
04-23-2007, 12:42 PM
ah ok...then i have to check the phrases 'cause ive a german board ;D.

Btw :it works fine :>

m1thr0s
04-30-2007, 05:47 AM
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
04-30-2007, 02:05 PM
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
06-19-2007, 05:00 AM
Now That's a must built-in hack in every version of vB :)

TigerWare
08-26-2007, 07:06 PM
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
09-13-2007, 08:28 AM
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
09-16-2007, 12:44 AM
Excellent Mod, thankyou.

bulbasnore
09-20-2007, 12:13 AM
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
09-25-2007, 04:39 AM
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
09-27-2007, 01:49 AM
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
10-30-2007, 08:58 PM
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
10-30-2007, 09:16 PM
<i>I totally agree...it should be default! </i>

dooch
12-03-2007, 11:51 AM
great mod, installed

fintan74
12-21-2007, 08:42 AM
Great product; just what I was looking for. Thanks!

airborneCAL
05-10-2008, 01:41 AM
This is excellent. Anybody have this for 3.7?

Icy
05-10-2008, 06:15 AM
Yes I'm using it with 3.7 :)

tako
06-15-2008, 12:46 PM
Not working anymore with latest version, 3.7.1 pl1

JohnChapman
08-21-2008, 11:51 PM
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
08-28-2008, 12:09 AM
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://vborg.vbsupport.ru/external/2008/08/3.png

Jafo232
09-11-2008, 04:22 PM
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
09-24-2008, 11:12 AM
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
12-17-2008, 01:41 PM
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
03-09-2009, 08:20 AM
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
03-28-2009, 08:21 PM
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
05-02-2010, 06:06 AM
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
05-03-2010, 08:54 PM
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
05-10-2010, 12:19 AM
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
11-19-2010, 07:03 PM
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
10-19-2011, 04:05 PM
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
02-23-2012, 01:27 AM
Is there a newer version of this?

Highly needed

XGC Viper XI
01-12-2013, 07:04 PM
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.