View Full Version : Disable PMs for single user(s)
Andreas
06-01-2005, 10:00 PM
Ever wanted to disable the PMs for 1 or 2 users without having to create a new usergroup for them?
Then this hack is for you!
1) Go to ACP and turn off PM reception for the user(s) causing trouble.
2) Then put the following code (replace X, Y and Z with the userids) in template phpinclude_start to make sure they won't turn it back on again:
if (in_array($bbuserinfo['userid'], array(X, Y, Z)))
{
$permissions['pmquota'] = 0;
unset($_POST['options']['receivepm']);
}
Done.
This was developed and tested with 3.0.6, but should work with all 3.0.X-Versions.
Lionel
06-02-2005, 02:40 AM
why not make it a vboptions so it will be easy to add/remove users from that list?
Andreas
06-02-2005, 02:42 AM
Because that would make things a bit more complicated ;)
Brent H
06-02-2005, 02:59 AM
Won't this make members who disable PMs themselves unable to turn them back on?
Andreas
06-02-2005, 03:15 AM
No. The code only gets executed for the userids listed.
Brent H
06-02-2005, 04:03 AM
Ohhh I'm sorry... I didn't read the code carefully enough. Sorry about that :)
Great idea man, I'll be able to use this in the next few weeks.
Marco van Herwaarden
06-02-2005, 06:28 AM
@Kirby
Could you please provide the instructions also as a textfile, so people who use this hack can have it as a reference for upgrading. :D :D
Andreas
06-02-2005, 10:59 AM
Hmm, a textfile for 4 lines which will not be lost during an upgrade (as it is phpinclude code) sounds like overkill.
But neverthlesss: attached :)
almqdad
07-27-2005, 10:18 AM
Hi
there is such option
1) Go to ACP and turn off PM reception for the user(s) causing trouble
Andreas
07-27-2005, 10:28 AM
Hi
there is such option
???
Sorry, I don't understand what you want?
almqdad
07-27-2005, 07:17 PM
I mean there is no option to diable user pm in ACP
Andreas
07-27-2005, 07:33 PM
There isn't?
Screenshot attached.
Boofo
07-27-2005, 07:38 PM
Any plans to upgrade this to RC1 ? ;)
Andreas
07-27-2005, 07:40 PM
Erm ... not really.
But if there's enough Interest I might take a look into making this a real Hack :)
Boofo
07-27-2005, 07:52 PM
Well, I'm definately intersted (for personal reasons). Does that count? ;)
(There we go, now that you have 1/2 person, all we need are a few more. ;))
almqdad
07-27-2005, 08:05 PM
Hi
that is to stop recieving pm
what a bout stop sending pm
Andreas
07-27-2005, 08:08 PM
If receiving is disabled, you also can't send PMs.
almqdad
07-27-2005, 08:16 PM
Hi
great KirbyDE I will try that
thanks
RaceJunkie
02-14-2007, 07:14 PM
Is there a 3.6 version of this? I am looking to disable a couple users pm's
Keyser520
07-09-2007, 06:08 PM
How can I disable PMs from ONE user to ONE other user? As in.. User2 would not be able to PM User1, but User2 can PM everyone else and User1 can still recieve PMS from everyone else.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.