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.
I was not able to reproduce the error even using drn as a username however I have added code that should prevent the error you received even though I can't imagine how it happened.
Mod updated to version 1.1- Please upgrade and see if you still get the error.
Error is gone and message is not going to the ignored user.
But I am not receiving the note from you stating that you cant send PM to a ignored user at all. I just come back to PM screen.
For other users is working.
Is strange behaviour, I guess I need to reupload some files back to server because I have other 2 strange behaviours on forum that I cant solve.
The ignored user is receiving the not is ignored and cant send PM back.
For now is great. Working
Thanks for so prompt response. I nominate the mod as it should be part of the privacy pack settings in Vb.
I think it would be easier if the blocked users table uses userid instead of username sinces even if a user changes his username, userid is never changed.
I imagine several ways of doing that.
The simpler one is adding an extra option in the "Buddy List" when you visit the other user's profile
You can add the same script in postbit or when receiving a PM.
Other one involves using the same javascript that VB uses to recognize PM's destinations so to fill the blocked PM's table.
I'm not an expert in PHP or Javascript, but I think this would spare everyone lots of headaches when a user changes the username, or blocking the wrong user.
I think it would be easier if the blocked users table uses userid instead of username sinces even if a user changes his username, userid is never changed.
I imagine several ways of doing that.
The simpler one is adding an extra option in the "Buddy List" when you visit the other user's profile
You can add the same script in postbit or when receiving a PM.
Other one involves using the same javascript that VB uses to recognize PM's destinations so to fill the blocked PM's table.
I'm not an expert in PHP or Javascript, but I think this would spare everyone lots of headaches when a user changes the username, or blocking the wrong user.
Great mod !!
DEGE
Thanks for the suggestions. Please "Mark as Installed" if you're using this. :up: