The Arcive of vBulletin Modifications Site. |
|
Send Private Message to Public Group Leader on Join Requests Details »»
|
|||||||||||||||||||||||||||
|
Send Private Message to Public Group Leader on Join Requests
Developer Last Online: Nov 2013
This quick and dirty little hack sends a PM to the leaders of a public group when a join request has been made.
I am surprised this isn't built into vbulletin. Amy Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Installed.
There are two PHP Code:
|
|
#3
|
||||
|
||||
|
oops. Hold on, let me check for a better reference point.
|
|
#4
|
||||
|
||||
|
ok. The directions have changed. The code you are looking for is:
Code:
// insert the request
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "usergrouprequest
(userid,usergroupid,reason,dateline)
VALUES
($bbuserinfo[userid], $usergroupid, '" . addslashes(htmlspecialchars_uni($_POST['reason'])) . "', " . TIMENOW . ")
");
|
|
#5
|
||||
|
||||
|
OK, so I was the first to post in this Thread, first to install, found the first problem with the instructions, and still installed it correctly? Woohoo!
|
|
#6
|
||||
|
||||
|
Easy hack for a change, huh?
|
|
#7
|
|||
|
|||
|
As u said 'quick and dirty'.......good work!
Quote:
|
|
#8
|
||||
|
||||
|
Someone finally put in a join request and the PM was properly generated so I can verify that this works (on a security patched vB 3.0.3 Board).
|
|
#9
|
||||
|
||||
|
This is great timing, I 'just' started using public groups and found it annoying when I discovered that there was no notification other than checking the Group page all the time.
|
|
#10
|
|||
|
|||
|
Nice hack
|
![]() |
|
|