PDA

View Full Version : Send a Private Message to Public Group Leaders Upon a Join Request


amykhar
14 Jun 2005, 20:34
I'm still surprised this isn't built in yet. What this mod does is to send a private message to all of the leaders of a public group, letting them know that somebody wants to join the group.

To install:
Add a new phrase: (obviously, change the url to go to your board ;) )
group_memberships_message


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Then, upload the plugin and turn it on. Easy as pie. Enjoy and thanks to Kirby for his tutorial on how to send private messages.

mOdEtWo
14 Jun 2005, 22:43
Very nice.

M1th
14 Jun 2005, 23:39
Could reduce the number of query insertions by sending to multiple users at once:

Have a look at this: :)

http://www.vbulletin.org/forum/showpost.php?p=666548&postcount=7

No need to use the while loop for the $pmdm->set then. :)

amykhar
15 Jun 2005, 00:52
Could reduce the number of query insertions by sending to multiple users at once:

Have a look at this: :)

http://www.vbulletin.org/forum/showpost.php?p=666548&postcount=7

No need to use the while loop for the $pmdm->set then. :)
OK. I'll play with it later.

Gryphon
21 Jul 2005, 18:43
My private messages were showing <br> from new lines in the phrase, also trying to make the link click-able it was showing html instead of parsing bbcode, so I had to make a change to do_parse in the plugin. Attached is my minor edit and my phrase.

amykhar
21 Jul 2005, 18:59
Thank you :)

timelord726
22 Jul 2005, 23:43
Ridiculous that this hasn't been made a standard feature yet. Thank you very much, incredibly simple yet unbelievably useful hack.

amykhar
23 Jul 2005, 00:15
My pleasure. If I get time, I'll add in a feature so that users are notified via PM when they are accepted or denied.

FD929
30 Jul 2005, 01:33
Is there any way to hyperlink the url? I've tried bbcode, html, and just plain hoping the software would automatically parse. Is it possible?

amykhar
30 Jul 2005, 03:01
Read post 5.

Boofo
30 Jul 2005, 03:23
My private messages were showing <br> from new lines in the phrase, also trying to make the link click-able it was showing html instead of parsing bbcode, so I had to make a change to do_parse in the plugin. Attached is my minor edit and my phrase.

Is the phrase GLOBAL?

Boofo
30 Jul 2005, 03:26
Could reduce the number of query insertions by sending to multiple users at once:

Have a look at this: :)

http://www.vbulletin.org/forum/showpost.php?p=666548&postcount=7

No need to use the while loop for the $pmdm->set then. :)

You had a chance to look at this yet, amy? ;)

amykhar
30 Jul 2005, 04:08
Yes. It's in the updated version.

Amy

Boofo
30 Jul 2005, 06:07
Thank you, ;)

Is the phrase supposed to be GLOBAL? ;)

amykhar
30 Jul 2005, 15:00
Yes. It's a global phrase Bob.

ricker
11 Aug 2005, 05:06
Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758
Sometimes I can reproduce this, sometimes I can't. One of my users got this today, after he typed in his reason.

amykhar
11 Aug 2005, 05:21
Any weird characters in the reason?

ricker
16 Aug 2005, 17:05
Any weird characters in the reason?

Nopers. Short and to the point, all regular characters. He was actually bright enough to try with punctuation and without, and both failed.

TMM-TT
12 Sep 2005, 18:24
Got an error in RC3, that I did'nt get in RC2:


Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:

DELETE FROM usergrouprequest
WHERE usergrouprequestid IN();

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2
Error Number : 1064



This error has been reported, and can be fixed, by looking here: http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=1286


(Sometimes I'm too fast for my own good ;))

harry1951
30 Sep 2005, 16:05
Does this works on 3.5.0 ???

q8manar
01 Oct 2005, 05:57
From where we can use send to all
I installed it but i don't know how to use it

amykhar
01 Oct 2005, 14:39
It's not what you think it is, if I am reading your question correctly. This mod sends a pm to the group leader when somebody requests permission to join the group. It does NOT allow you to mass pm the group.

Amy

The Wise One
04 Oct 2005, 00:18
installed. works good on 3.5.0 so far.

Zachariah
04 Oct 2005, 01:25
thank you ma'am.

Cyricx
04 Oct 2005, 20:25
I'm getting this error with this plugin enabled on 3.5 gold



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



When I disable this plugin it works fine.

Any ideas?

Snake
06 Oct 2005, 20:19
Thanks for the hack.

dookie
07 Oct 2005, 14:10
Works fine @ 3.5 Gold here

TRR
08 Oct 2005, 22:09
I am also getting the fatal error mentioned above.

jluerken
12 Oct 2005, 08:36
Phrase group_memberships_message contains a link to the editusergroups section in the usercp.

If HTML for PMs is not allowed this is not working.

vBTags like [URL] are also not working and I don't want to enable HTML for PMs.

Is there another solution to fix this?

Ted S
16 Oct 2005, 07:32
I'm getting this error with this plugin enabled on 3.5 gold



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



When I disable this plugin it works fine.

Any ideas?

Check that you've got the phrase added. If that doesn't work try the udpated version in the second post of this thread... that worked for me.

Cyricx
17 Oct 2005, 13:50
That was it! Thanks!!

Not sure how the phrase got deleted but thats definately what was causing the error.

Mephisteus
17 Oct 2005, 16:04
You could add the phrase to the plugin :) (if its a product)

amykhar
17 Oct 2005, 17:20
This was written before products and vbulletin changed the way it handled phrases on upgrades. Anybody who has it installed can easily change it to a product on their own system to avoid it from happening in the future.

majorxp
11 Nov 2005, 15:02
I gotta install this.......I agree, this should be part of vb..

majorxp
11 Nov 2005, 15:27
Phrase group_memberships_message contains a link to the editusergroups section in the usercp.

If HTML for PMs is not allowed this is not working.

vBTags like [URL] are also not working and I don't want to enable HTML for PMs.

Is there another solution to fix this?
did anyone figure this out? I'm in the same boat. Here is what my message looked like.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



darn...I just realized that there is an ARG errror for {2}...any thoughts?

lanoix
14 Nov 2005, 15:17
Installed... I just modified it to translate the title of the PM too ;)
Thanks!

GeorgeNewbie
14 Nov 2005, 17:13
Im pretty new to all of vb and code stuff, but this seems like a great addition to any board. I was wondering if anyone could tell me where I would make these changes at....i.e where to make the new phrase and how to put in the plug-in

Thanks for any and all help!
G-

VAN
23 Nov 2005, 04:53
Just what I needed. Thanks Amy. :)

Feel like adding a bit more?

How about adding the ability for the group leader(s) to send a PM to the person submits a join request and is approved or rejected?

If accepted, user gets a "Welcome to the Group" PM.

If rejected, they get a "Sorry, but you do not meet the specified requirements to join this group."

Just another way to keep people from having to repeatedly check their UserCP for join status.


Just an idea. :)

amykhar
23 Nov 2005, 13:40
I've thought about doing it when I have time. I guess I just keep expecting Jelsoft to make this a standard feature as it obviously should be one.

Vizionz
23 Nov 2005, 13:42
i like this hack. but am i missing something somewhere where user can make there own groups. and is there any hacks that would allow created user groups to allows create a forum when created. amy your smart and been around thats why i ask in the same topic (sorry for offtopic questions )

amykhar
23 Nov 2005, 13:44
My hideaway mod gives users a private group and one forum to manage, but it is a very limited application of it.

Vizionz
23 Nov 2005, 13:45
do these works together ? so if you create a hideaway and someone wants to join your hideaway will they recieve the pm from this ?

amykhar
23 Nov 2005, 13:46
Yes.

Vizionz
23 Nov 2005, 13:46
thanks amy :) i will grab that then

EasyTarget
28 Nov 2005, 05:37
nice hack.
how can I get the links to work in the pm system without enabling html?

LamboJay
28 Nov 2005, 19:29
Installed on 3.5.1 and working great. Thanks!

Schwarze Katze
28 Nov 2005, 21:20
Nice!
How do I change the pm title? Stupid me doesn't know... :(

smju
08 Dec 2005, 16:50
If you really want to, it would be this line of code to change:

$pmdm->set('title', $vbulletin->userinfo['username']. " would like to join " . $groupname['title']);


Nice utility. Took me a while to figure out where to put everything but it's now up and running correctly.

For anyone else totally new to this sort of thing here be what I did.
you add the Phrase via the Langiages and Phrase Manager
Then via the Plugin Manager You copy the
Product, Hook Location and Title from the xml code
and then copy the xml code from require_once(DIR . '/includes/class_bbcode.php'); to // End of mod Do not include the closing brackes ]] into the plugin php code box


and everything being equal it should work.

NB: I put the actual http:// address inside url /url bbcode tags in the Phrase message.

cynix2
20 Dec 2005, 00:45
i made a slight improvement on this mod
since i dont like hard coding things that are in variables i made it so the phrase uses $vboptions[bburl] as {2} instead of having to hard code the url into the phrase

files are attached, i hope they get put to good use

attachments removed, see below for new ones

Snake
20 Dec 2005, 09:45
Thanks man!

cynix2
01 Feb 2006, 18:54
after a good long while of testing i finally fixed up this hack

the main problem that existed was the bbcode was being parsed in the hack, when it didnt need to be, vb will parse the bbcode when displaying the pm, so i then proceeded to use bbcode to construct the phrase for the pm

the second thing i fixed was the url issue, i was on the right track using {2} in my last post above but i put the wrong variable into the hack, so now it works just fine

anyways here are the new updated files, amykhar you might wanna update the hack so people dont have to come to the last page to see it needed fix'n

EasyTarget
01 Feb 2006, 18:56
thanks cynix

installed and seems to be working good.

Snake
01 Feb 2006, 19:29
Yeah thanks man. That worked now! :)

Eriond
19 Feb 2006, 12:09
excellent plugin :D

*INSTALLED* finally :) very new to all this so took me a few days to learn exactly how to get this working *feels silly*

working perfectly just wondering if there was any news on an auto reply pm accepting the member?

Hornstar
21 Feb 2006, 06:01
after a good long while of testing i finally fixed up this hack

the main problem that existed was the bbcode was being parsed in the hack, when it didnt need to be, vb will parse the bbcode when displaying the pm, so i then proceeded to use bbcode to construct the phrase for the pm

the second thing i fixed was the url issue, i was on the right track using {2} in my last post above but i put the wrong variable into the hack, so now it works just fine

anyways here are the new updated files, amykhar you might wanna update the hack so people dont have to come to the last page to see it needed fix'n


Is this the same file that you download from the side bar?






Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Edit, I edited this post so it will help other people, I finally got it working, yay!!

axelhols
15 Mar 2006, 12:34
I still sense that this plug-in is buggy.

getting Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758

1. Using VB 3.5.3
2. Using multiple joinable Groups with multiple group leaders for each.
2. Have added the VB phrase group_memberships_message.

The confusing part is that the problem is intermittant. When I remove the plug-in and VB phrase and re-install everything it seems to work for while until a few new user registrations later and join requests to any of the groups bombs out with the error message above. In another case it will work with only one of my 3 joinable groups and bomb out with the other two. In other cases each group leader will get multiple (3) PM messages for the same "join request to one specific group!.

Has anybody else using VB 3.5.3 with multiple joinable groups and group leaders experienced similar intermittant problems with this plug-in?.

amykhar
15 Mar 2006, 12:59
It must be something in the pm settings for some of the group leaders. At some point, I'll look into how to make this more bullet-proof, but for now it suits my needs.

ricker
22 Mar 2006, 17:45
Has anybody else using VB 3.5.3 with multiple joinable groups and group leaders experienced similar intermittant problems with this plug-in?.unfortunately yes, i had to disable this plugin. :(

trackpads
01 Apr 2006, 12:13
I found out how to reproduce the error that happens on line 758, in my case one of my group leaders had a space in his username. Once I removed him as a group leader the bug went away. I am not sure which version of the hack I have but I am going to reinstall and try again.

Thanks again,

-Jason

trackpads
01 Apr 2006, 12:18
Ok, big dummy, should have tested it again "after" I uploaded the new version. It works :) :)

Thanks!!

TypeStaff
03 Apr 2006, 10:09
I'm totally noob installing plugins. Could anyone explain me where's exactly the file that I must edit? thanks!!

MThornback
03 Apr 2006, 15:18
In totally noob installing plugins. Could anyone explain me where's exactly the file that I must edit? thanks!!

The file is edit is facilitated by the plugin, your only asked to add a phrase here.

Connector
24 Apr 2006, 01:43
how can i send the user that i dany them or accept them message ?

Eriond
24 Apr 2006, 13:05
at the moment i believe it is just a case of you manually sending a pm to them, it would be nice to have an auto reply for accept/deny but to be honest it doesnt take that long to type an accept/deny pm yourself :)

Connector
24 Apr 2006, 18:25
at the moment i believe it is just a case of you manually sending a pm to them, it would be nice to have an auto reply for accept/deny but to be honest it doesnt take that long to type an accept/deny pm yourself :)

I have like 30 User join per day it is not hard but take to much time to sending one by one ..:eek:

Hornstar
13 May 2006, 11:11
I started to get this error message after it working fine for a few months, $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758

That caused me getting heaps and heaps of the same pm from each person joining.

I have now deleted it, and uploaded it again after downloading the latest.

Will see if its working shortly.

Hornstar
14 May 2006, 05:46
Yep still get the error message

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

The username of the person that got the error was XxNAKdragon5xX

and I think everyone else is getting it as well. Because of that, I have had to disable it until the problem can be fixed.

AndyP
16 May 2006, 03:11
I've just installed this and done a quick test. Looks good and I agree that it should be standard (was something I got used to when I was on phpBB).
Thanks.

Princeton
05 Jun 2006, 14:41
excellent plugin :up:

amykhar
05 Jun 2006, 14:47
I am still surprised this isn't a standard option in vbulletin. All kinds of bells and whistles in there, but some real basic stuff isn't there yet.

cynix2
09 Aug 2006, 22:31
has anyone tried this on 3.6? or know if 3.6 has this feature by default?

HMBeaty
10 Aug 2006, 03:59
JUST tried to install on 3.6.0 and doesn't work. Pulls up this error after submitting a join request.....

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

Quarterbore
10 Aug 2006, 15:55
Group hug time... I really need this for 3.6 or my staff may revolt!

Too bad this didn't get included with the new version...

Cheertobi
17 Aug 2006, 13:11
Does this kind of mod exist, that sends emails to the groupleader instead of a PM!?

Tobi

amykhar
17 Aug 2006, 17:20
you could easily change this to use the email system instead of pm. Just find a mod that sends emails and base your modifcations to this mod off that.

tracylee
29 Aug 2006, 19:54
Group hug time... I really need this for 3.6 or my staff may revolt!

Too bad this didn't get included with the new version...

Same here, I've been asked for this by my mod team.

ConqSoft
29 Aug 2006, 20:10
Working fine for me in 3.6.0....

FlynnUK
23 Nov 2006, 09:23
Great add-on. Nice one.

I've just installed and tested on 3.6.3 and it works fine.

vbob
12 Feb 2008, 10:37
Very Usefull Mod. Installed and Working Fine...:-)
I Have Vbulletin 3.6.8 PL2 and Vbadvanced 3.00

Thank you for your Mod

AyeCapn
29 Feb 2008, 14:47
Could this be modified to send a message to the person who just joined the group? I have one particular group that has some specific rules and instructions.