vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Private Messages Enhancements - Restricted PM Correspondence (https://vborg.vbsupport.ru/showthread.php?t=324542)

MarkFL 02-27-2017 10:00 PM

Restricted PM Correspondence
 
1 Attachment(s)
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/attachmen...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:
  1. Download and extract the attached .zip file.
  2. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  3. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  4. Click "Import."
  5. You MUST enable the product in the settings before it will function.
  6. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

https://vborg.vbsupport.ru/attachmen...1&d=1488263359

Support for this product can be found here:

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

Quote:

Originally Posted by MarkFL (Post 2589760)
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

Quote:

Originally Posted by 1MoreGoodGuy (Post 2589761)
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

Quote:

Originally Posted by MarkFL (Post 2589763)
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:

PHP Code:

global $vbulletin$db$pm


1MoreGoodGuy 09-07-2017 05:03 AM

Quote:

Originally Posted by MarkFL (Post 2589778)
In the plugin hooked at "private_insertpm_process" try editing the first line to read:

PHP Code:

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.


All times are GMT. The time now is 01:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01146 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete