Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
Restricted PM Correspondence Details »»
Restricted PM Correspondence
Version: 1.1, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 4.2.x Rating:
Released: 02-27-2017 Last Update: 03-26-2017 Installs: 7
Uses Plugins
Translations  
No support by the author.

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.



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.



Support for this product can be found here:

Download Now

File Type: zip MarkFL - Restricted PM Correspondence v1.1.zip (3.4 KB, 32 views)

Screenshots

File Type: png markfl_rpc_acp.png (43.9 KB, 0 views)
File Type: png markfl_rpc_errormsg.png (7.1 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-26-2017, 09:24 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update - Version 1.1:
  • Fixed issue with usernames containing characters needing to be escaped.
Reply With Quote
  #3  
Old 09-05-2017, 11:51 PM
1MoreGoodGuy 1MoreGoodGuy is offline
 
Join Date: Jun 2017
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 09-06-2017, 12:52 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just rechecked the product on my local dev site and it still appears to be function correctly.
Reply With Quote
  #5  
Old 09-06-2017, 05:21 AM
1MoreGoodGuy 1MoreGoodGuy is offline
 
Join Date: Jun 2017
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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?
Reply With Quote
  #6  
Old 09-06-2017, 12:07 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 1MoreGoodGuy View Post
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?
Reply With Quote
  #7  
Old 09-07-2017, 01:55 AM
1MoreGoodGuy 1MoreGoodGuy is offline
 
Join Date: Jun 2017
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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?
Reply With Quote
  #8  
Old 09-07-2017, 02:54 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the plugin hooked at "private_insertpm_process" try editing the first line to read:

PHP Code:
global $vbulletin$db$pm
Reply With Quote
  #9  
Old 09-07-2017, 05:03 AM
1MoreGoodGuy 1MoreGoodGuy is offline
 
Join Date: Jun 2017
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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?
Reply With Quote
  #10  
Old 09-07-2017, 01:24 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, I would only be stabbing in the dark at this point.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08026 seconds
  • Memory Usage 2,319KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete