PDA

View Full Version : Disable PMs for a single user?


successguy
04-08-2005, 01:17 PM
Is there a way to not allow a specific user to PM other members, without making a whole new user group for this?

Thanks,

Tom

YLP1
04-14-2005, 02:49 AM
Hi SG..... I am by far an experienced VB and PHP user BUT I have asked this same question....the response I received from those I considered the "gurus" of PHP and VB suggested that the easiest method was to create a new usergroup and disallow pms and place those members that you don't want to have pm access in that group.

I created that on my board and works like a charm plus it allows me to manage members a little better in the ACP

successguy
04-14-2005, 04:21 AM
YLP1 thanks for the reply and suggestion. But to be honest, I have a problem with that solution.

Say I have a user in group A that I don't want to allow them to use the PM system, but I also have a user in group B. Now say that I throw them into a group that has doesn't have PM permissions. User A members are allowed to post in certain forums, that user B members aren't. So in order for them to retain permission to post in those forums, I now need two groups that have PM disabled, one for group A and one for group B.

I mean that's fine, but let's say there is also groups C and D, etc. Each time I want to have a new group that has special permisssions, I would have to create another group that has those permissions, but doesn't have PM permission.

Seems to me like there should be a better way...

Also, for the mods/admin, I realized, after the fact, that I posted this thread in the wrong forum...Sorry bout that.

007
06-01-2005, 08:14 PM
YLP1 thanks for the reply and suggestion. But to be honest, I have a problem with that solution.

Say I have a user in group A that I don't want to allow them to use the PM system, but I also have a user in group B. Now say that I throw them into a group that has doesn't have PM permissions. User A members are allowed to post in certain forums, that user B members aren't. So in order for them to retain permission to post in those forums, I now need two groups that have PM disabled, one for group A and one for group B.

I mean that's fine, but let's say there is also groups C and D, etc. Each time I want to have a new group that has special permisssions, I would have to create another group that has those permissions, but doesn't have PM permission.

Seems to me like there should be a better way...

Also, for the mods/admin, I realized, after the fact, that I posted this thread in the wrong forum...Sorry bout that.
I would LOVE to see this feature too, for the very reasons successguy stated. It works if you have one of two usergroups, but it's just annoying if you have many. An individual PM disabler would be a very nice addition.

Andreas
06-01-2005, 08:43 PM
Hmm, a REALLY easy solution would be smth. like


if (in_array($bbuserinfo['userid'], array(100,101,102,106)))
{
$permissions['pmquota'] = 0;
unset($_POST['options']['receivepm']);
}


in phpinclude_start.
Then userids 100,101,102 and 106 can't send PMs.
If you turn off PM reception for them in ACP they also shouldn't be able to receive PMs.

007
06-01-2005, 08:55 PM
But they can just turn it back on if they want..

Andreas
06-01-2005, 09:01 PM
No they can't, try it yourself :)

007
06-01-2005, 11:55 PM
If you turn off PM reception for them in ACP they also shouldn't be able to receive PMs.

What exactly do you mean by this then? I don't see an option for this.. :(

Andreas
06-02-2005, 12:01 AM
ACP / Users / Search User
When you've opend the users profile, you will see a box Settings on bottom of the right side.
Select Receive PMs = No there and hit Save

(Dunno if the labels are correct as my vBulletin is german, but you should get the meaning).

007
06-02-2005, 12:06 AM
That's what I thought it was..

Actually if they go to UserCP, then Edit Options, they can check off "Enable Private Messages" and turn it right back on.

:surprised:

Andreas
06-02-2005, 12:24 AM
No they can't :)
The checkbox won't be shown, and even if they manage so submit a "faked" form to re-activate PM reception it will not work.

At least this is how it does work on my board (still running 3.0.6 though).

007
06-02-2005, 12:45 AM
I tested as myself of course.. it might be different for admins! I will try as a user now.

Andreas
06-02-2005, 12:47 AM
Um, I also tested this as admin and did work just fine for me.

007
06-02-2005, 12:52 AM
Yep, it works. Nice simply fix. :) Thanks.