PDA

View Full Version : Private Messages Enhancements - Restricted PM Correspondence


MarkFL
02-27-2017, 10:00 PM
Overview:

This simple product allows you to designate "Restricted Usergroups" whose members can only correspond via PM with usergroups you designate as "Allowed Corresponders." If a user who is not a member of an "Allowed Corresponders" usergroup attempts to send a PM to a member of a "Restricted Usergroup" or if a member of a "Restricted Usergroup" attempts to send a PM to a user who is not a member of an "Allowed Corresponders" usergroup then an error message will be displayed, advising the user which member(s) they are not permitted to correspond with.

https://vborg.vbsupport.ru/attachment.php?attachmentid=155907&stc=1&d=1488263359

Updates:

Version 1.1:


Fixed issue with usernames containing characters needing to be escaped.


Compatibility:

Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:


Download and extract the attached .zip file.
Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
Click "Import."
You MUST enable the product in the settings before it will function.
Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.


https://vborg.vbsupport.ru/attachment.php?attachmentid=155906&stc=1&d=1488263359

Support for this product can be found here:


MHB - Restricted PM Correspondence (http://mathhelpboards.com/vbulletin-products-61/restricted-pm-correspondence-21763.html)
TAZ - Restricted PM Correspondence (https://theadminzone.com/threads/restricted-pm-correspondence.144977/)

MarkFL
03-26-2017, 09:24 PM
Update - Version 1.1:


Fixed issue with usernames containing characters needing to be escaped.

1MoreGoodGuy
09-05-2017, 11:51 PM
I installed your product and ran some tests and could not get it to work properly.

Settings:

Set whether product is active or not. = Yes

Restricted Usergroups = "No PM Privileges"

Allowed Corresponders = Administrators, Assistant Administrators, Moderators, Sr. Moderators

The usergroup "No PM Privileges" was able to send PMs to usergroup "Registered Member" and "Registered Member" was able to send PMs to "No PM Privileges"

Got any suggestions on how to make this work so "No PM Privileges" can only PM (send and receive) with Administrators, Assistant Administrators, Moderators, Sr. Moderators?

Administrators, Assistant Administrators, Moderators, Sr. Moderators still need to PM (send and receive) with all other user groups.

MarkFL
09-06-2017, 12:52 AM
I just rechecked the product on my local dev site and it still appears to be function correctly. :)

1MoreGoodGuy
09-06-2017, 05:21 AM
I just rechecked the product on my local dev site and it still appears to be function correctly. :)

That doesn't help me one bit.

Do you have any suggestions for how I can get your product to work on my site?

MarkFL
09-06-2017, 12:07 PM
That doesn't help me one bit.

Do you have any suggestions for how I can get your product to work on my site?

I have installed and configured this product on multiple sites, where it functions correctly, so I have no idea what issue on your site is preventing it from working as expected.

Are you certain the user who is a member of the "Registered Member" usergroup when you tested the product isn't also a member of one of the "Allowed Corresponders" usergroups?

What version of vB are you running?

1MoreGoodGuy
09-07-2017, 01:55 AM
I have installed and configured this product on multiple sites, where it functions correctly, so I have no idea what issue on your site is preventing it from working as expected.

Are you certain the user who is a member of the "Registered Member" usergroup when you tested the product isn't also a member of one of the "Allowed Corresponders" usergroups?

What version of vB are you running?

I'm running 4.2.4

I'm positive that the "Registered Member" test account is only in the "Registered Member" usergroup.

The "Allowed Corresponders" are Administrators, Assistant Administrators, Moderators, Sr. Moderators

Is there something in the "Restricted Usergroups" vBulletin usergroup's Private Message Permissions that need to be set a certain way for your product to work correctly?

MarkFL
09-07-2017, 02:54 AM
In the plugin hooked at "private_insertpm_process" try editing the first line to read:

global $vbulletin, $db, $pm;

1MoreGoodGuy
09-07-2017, 05:03 AM
In the plugin hooked at "private_insertpm_process" try editing the first line to read:

global $vbulletin, $db, $pm;

I really appreciate your help.

I edited the code and got the same result.

Any other suggestions?

MarkFL
09-07-2017, 01:24 PM
No, I would only be stabbing in the dark at this point.