vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=268675

Usergroups Can't Send PMs by BOP5
by BirdOPrey5
17 Aug 2011 18:18

2 Attachment(s)
This is a simple mod per a request. The request was for a mod to block certain usergroups from sending PMs, but they could still receive them.

Version History
1.0: Initial Release
1.1: Added options to disable for primary usergroups only and for specific users.
1.2 Added White-list Option- Can White-list Usergroups to never block those users.

This mod provides for the following:

Block primary or secondary usergroups from making new PMs.
Optionally block the same usergroups from replying to PMs.

Therefore it is possible with this mod to not allow sending PMs at all OR to only allow users to respond to PMs you (or someone) sends them via quick-reply.

The mod contains 2 plugins and 1 new phrase which is the error message shown when someone attempts to create a new PM who is not allowed to send one.

This has been tested on VB 4.1.5 and VB 3.8.7 and should work on at least all VB 3.7 through 4.2.x.

------------------------------------------------------

Please "Mark as Installed" if you use this. :)
Donations always appreciated. :up:
Nominate MOTM if you LOVE it! ;)

BirdOPrey5 17 Aug 2011 18:19

Reserved.

Sunka 17 Aug 2011 19:07

Thank you.
Installed & Nominated!

As I wrote here...



Quote:

Originally Posted by Sunka (Post 2234624)
Yes please if you can do it.

To choose usergroup and/or just some of users (User ID).

If still be possible to evolute MOD that blocked usergroups can send to staff PM's only?

And please give option to act only Primary group.

Thank you BirdOprey5, thank you very much!


BirdOPrey5 17 Aug 2011 19:11

Will work on that. Userids and primary usergroups will be no problem Sending only to staff will be tricky- not going to happen today.

BirdOPrey5 17 Aug 2011 19:41

Updated.

Sunka 17 Aug 2011 22:36

Quote:

Originally Posted by BirdOPrey5 (Post 2234629)
Userids and primary usergroups will be no problem

Thank you!

Quote:

Originally Posted by BirdOPrey5 (Post 2234629)
Sending only to staff will be tricky- not going to happen today.

If you can it will be awesome.
If you can not, or have not time, it is OK...

JAFRI 18 Aug 2011 04:44

yes, itis good., if Sending only to staff member. not send other usergroups a new member.

BirdOPrey5 18 Aug 2011 09:38

Although it's a work-around, not a solution, if you have your forum set to send a "welcome PM" to every new member from your admin account you can set this mod to allow replies and new people will be able to reply to you but not send PMs to anyone else.

Sunka 18 Aug 2011 09:57

Uhhhhh...
I have rebellion on my forum.

One thing to add if possible, till then I have to stop MOD to work.

Is it possible to this MOD act like vanilla vBulletin permission setup?
I mean, if I disable default usergroup to send PM, and then they join to some Public (joinable) custom usergroups which can send PM, this YES permission must be stronger than NO permission.

By default on my forum new users can not send PM's, but after they join to some other group (additional group) which can send PM, is it possible that this "yes" permission is stronger then "no" permission?

Deafault usergroup: can not send PM
Additional usergrop: can send PM
--------------------------------------

Conclusion: User can send PM because YES is stronger then NO

BirdOPrey5 18 Aug 2011 13:18

I can add a whitelist of usergroups not blocked by this mod.

Sunka 18 Aug 2011 13:47

Isn't it easier to follow default vBulletin permission rules (YES is stronger then NO)?

BirdOPrey5 18 Aug 2011 13:52

Quote:

Originally Posted by Sunka (Post 2234904)
Isn't it easier to follow default vBulletin permission rules (YES is stronger then NO)?

OK- you code the change. It's re-usable code. :D

Sunka 18 Aug 2011 16:46

Quote:

Originally Posted by BirdOPrey5 (Post 2234907)
OK- you code the change. It's re-usable code. :D

LOL

:D

BirdOPrey5 18 Aug 2011 19:41

Updated to version 1.2 - Added the Whitelist option.

Any usergroups placed in the whitelist will override any usergroups on the block list of usergroups. The whitelist works on primary or secondary usergroups.

The usergroup whitelist will NOT override specific userids that are blocked.

Whitelisted users will follow whatever standard PM rules you have set in vBulletin.

Sunka 18 Aug 2011 23:33

Stars shine on this moment just for you.

Thank you my friend... let see is it working like I think it should. Rebellion on my forum is strong enough to use whip again... lol


All times are GMT. The time now is 12:02.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.