vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Private Messages Enhancements - PM Block by BOP5 (Private Message Block Lists per User) (https://vborg.vbsupport.ru/showthread.php?t=265596)

BirdOPrey5 06-20-2011 10:00 PM

PM Block by BOP5 (Private Message Block Lists per User)
 
1 Attachment(s)
Updated to Version 1.1 - NO FILE EDITS REQUIRED!!

This mod allows your users to setup their own personal private message block lists. No one on their lists will be allowed to PM them. (You can optionally specify immune usergroups such as admins and mods that can't be blocked.)

You can also optionally enable 2-way blocking so if one user adds someone to their block list they can not PM that user either. (Recommended)

This mod requires you to create 1 multi-line user profile field via your Admin CP. Detailed instructions for doing so are included in the installation instructions in the .zip.

LIMITATIONS OF THIS MOD:
  • If a user changes usernames the block list will need to be updated with the new username.

Notes:
  • When adding a username to the block list capitalization of the letters do not count but all other punctuation such as spaces DO count.

This mod adds 2 phrases in Error Messages:
  • pm_blocked - This is the error shown when a user has been put on the recipients block list.
  • pm_denied - This is the error shown when 2-way blocking is enabled and a user tries to PM a recipient on their own block list.

Current Version: 1.1 - Minor bugfix
1.0 - No file edits required!
0.9 - Stable Beta / Initial Release

This has been tested on 3.8.7, 4.0.8, and 4.1.2 and is expected to work on all 3.7/8, 4.0/1 versions.

BirdOPrey5 06-21-2011 04:08 PM

Reserved.

Braders 06-24-2011 02:04 PM

Just what the doctor ordered, well in my case a few members and coincidentally they only started bugging me about it today. So thanks for this!

Installation and instructions followed to the letter and all appears to be in order.

I'll just await my members feedback.

Thanks again.

imedic 06-28-2011 05:43 AM

Should be VB default setting ... Great mod, many thanks.

Unfortunately upon testing I have received this error when trying to send PM to a blocked user:
Quote:

Warning: Invalid argument supplied for foreach() in [path]/private.php on line 1187
and the MP pass trough.
Putting a moderator on ignore list is possible and you cannot send him a message (your mod is working). You receive the normal error message you set.

I have added registered users to Immune group ( your mod work for moderators set in immune group) but messages still pass trough and above error is shown for this users.

Additional testing: if a moderator is ignoring a user, if user try to send him a message will pass trough.

I installed it on a vb 3.8.5 and I have another PM enhancement (pop up private message). among other mods.

BirdOPrey5 06-28-2011 10:55 AM

Quote:

Originally Posted by imedic (Post 2213930)
Should be VB default setting ... Great mod, many thanks.

Unfortunately upon testing I have received this error when trying to send email to a blocked user: and the MP pass trough.
Putting a moderator on ignore list is possible and you cannot send him a message (your mod is working). You receive the normal error message you set.

I have added registered users to Immune group ( your mod work for moderators set in immune group) but messages still pass trough and above error is shown for this users.

Additional testing: if a moderator is ignoring a user, if user try to send him a message will pass trough.

I installed it on a vb 3.5 and I have another PM enhancement (pop up private message). among other mods.

Can you confirm you are saying you got this error when trying to send an email to a blocked user? :confused: What were using to send the email? This mod shouldn't affect emails at all.

I really couldn't test this on vb 3.5 either so that might be part of the issue. I was able to test on 3.8 and 4.0 and there are no errors in normal operation of the mod.

imedic 06-28-2011 02:05 PM

Ups sorry I went to sleep very late:
I am receiving errors when trying to send PM's and forum is 3.8.5 (not the last version 3.8.7) not 3.5 ....
And mod is great as I just had an issue with a user reporting abusive PM's. Any help would be great.
I double check edit of the file and is done ok.

BirdOPrey5 06-28-2011 03:06 PM

Can you PM me a partial copy of your private.php file, starting 10 lines or so before the edit and going to 10 lines or so after the edit?

BirdOPrey5 06-28-2011 04:26 PM

The issue with imedic was the file edit in the wrong spot.

Please be careful when making your file edit- it needs to be below $pmdm->pre_save(); , not just the first hook:

PHP Code:

    ($hook vBulletinHook::fetch_hook('private_insertpm_process')) ? eval($hook) : false;

    
$pmdm->pre_save(); 


borbole 06-28-2011 04:55 PM

I have noticed that you have created several very nice mods BirdOPrey5. Keep up the good work :)

BirdOPrey5 06-28-2011 05:02 PM

Thanks borbole... I hope one day you start releasing more again too... There were several of yours I installed and/or tagged. :up:


All times are GMT. The time now is 06:02 PM.

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.01021 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete