Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
PM Block by BOP5 (Private Message Block Lists per User) Details »»
PM Block by BOP5 (Private Message Block Lists per User)
Version: 1.1, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.8.x Rating:
Released: 06-20-2011 Last Update: 07-05-2011 Installs: 33
Uses Plugins
Code Changes Translations  
No support by the author.

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.

Download Now

File Type: zip PM Block List by BOP5v11.zip (4.0 KB, 206 views)

Screenshots

File Type: jpg pmb_settings.jpg (77.8 KB, 0 views)
File Type: jpg pmb_vb3_blockerror.jpg (242.8 KB, 0 views)
File Type: jpg pmb_vb3_denyerror.jpg (241.8 KB, 0 views)
File Type: jpg pmb_vb3_profilefield.jpg (144.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
abualjori, blind-eddie, borbole, devil78, Tasking Mickey, xorex

Comments
  #12  
Old 06-28-2011, 05:11 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Thanks borbole... I hope one day you start releasing more again too... There were several of yours I installed and/or tagged. :up:
Atm I don't have much free time like I used to. Hopefully later.
Reply With Quote
  #13  
Old 06-28-2011, 05:13 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey all... I just noticed that this is indeed possible without a file edit. I am working on an updated version now.
Reply With Quote
  #14  
Old 06-28-2011, 05:45 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated to 1.0- I moved the exact code into a hook and only had to add 1 line.

No file edits required. Not sure why I couldn't see the solution when I first released it. Must have been a long day.

Please remove the file edit if you are upgrading from version 0.9.

New installations will require no edits at all.
Reply With Quote
  #15  
Old 06-28-2011, 06:13 PM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Incredible support, dumb user (me)

I have made the change and is better. Sorry , it seems is not my day to make code edits.
I am receiving same error (line 1189) when I try to send an PM to a user that is on my ignore list. And I have set 2 way blocking.
Also if I put a moderator in the ignore list I cant send PM to him but this is not major problem because moderators can always send PM even if I have set them on ignore list.

Mode is blocking as it should suppose to do an user that is on ignore list.

I have updated the file so you can re download from link i sent to you on PM and check if something is wrong.
Reply With Quote
  #16  
Old 06-28-2011, 06:14 PM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uau , that is fast. It seems we have (both) blind spots Will upgrade now ... I will come back.
I recieve new error when I try to send PM to a user that is on my ignore list: Warning: Invalid argument supplied for foreach() in [path]/private.php(1177) : eval()'d code on line 63
I am also having this error only on splash redirect screen then I come back to PM page.

The PM is not going to the user. That user is blocked to send me PM (working fine for main idea of this mod).

Weird, this error appear only with one user (clone for testing purposes) and is not appearing to other accounts.... I have not found a pattern.....
Reply With Quote
  #17  
Old 06-28-2011, 06:17 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by imedic View Post
Uau , that is fast. It seems we have (both) blind spots Will upgrade now ... I will come back.
Please let me know how the new version works.
Reply With Quote
  #18  
Old 06-29-2011, 08:07 AM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by imedic View Post
Uau , that is fast. It seems we have (both) blind spots Will upgrade now ... I will come back.
I recieve new error when I try to send PM to a user that is on my ignore list: Warning: Invalid argument supplied for foreach() in [path]/private.php(1177) : eval()'d code on line 63
I am also having this error only on splash redirect screen then I come back to PM page.

The PM is not going to the user. That user is blocked to send me PM (working fine for main idea of this mod).

Weird, this error appear only with one user (clone for testing purposes) and is not appearing to other accounts.... I have not found a pattern.....
That is after testing. I still don't get it why it is behaving like this for just this user. I have tested with other users from same group.
Many thanks
Reply With Quote
  #19  
Old 06-29-2011, 10:17 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does the username have any special characters in it?
Reply With Quote
  #20  
Old 07-04-2011, 08:07 PM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, is a small one: drn
Reply With Quote
  #21  
Old 07-04-2011, 08:22 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If yo want PM me the username and I'll test it on my forum.
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 05:10 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.08590 seconds
  • Memory Usage 2,343KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete