![]() |
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:
Notes:
This mod adds 2 phrases in Error Messages:
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. |
Reserved.
|
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. |
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:
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. |
Quote:
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. |
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. |
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?
|
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:
|
I have noticed that you have created several very nice mods BirdOPrey5. Keep up the good work :)
|
Thanks borbole... I hope one day you start releasing more again too... There were several of yours I installed and/or tagged. :up:
|
Quote:
|
Hey all... I just noticed that this is indeed possible without a file edit. I am working on an updated version now.
|
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. |
Incredible support, dumb user (me) :D
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. |
Uau , that is fast. It seems we have (both) blind spots :D 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..... |
Quote:
|
Quote:
Many thanks :) |
Does the username have any special characters in it?
|
No, is a small one: drn
|
If yo want PM me the username and I'll test it on my forum.
|
Quote:
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. |
When you say 'ignored user' do you mean the vbulletin ignore list or the block list for this mod?
|
Block list of mod
|
Missed this before. Got it now.
Nicely done, BOP5. |
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 |
Quote:
|
a member of a ban on the control panel option does not seem
|
Quote:
|
Thanks. :) it would be nice if we can block people from visitors messages as well.
|
I installed the plugin it doesn't work I don't see anything in control panel
|
Quote:
It does work. |
Quote:
|
I've been using this on my 3.8.7 for a couple of years now. My members really like it and it works without flaw.
|
This add-on Tapatalk does not work.
So while it would be nice in Tapatalk. |
Quote:
|
Quote:
|
Quote:
Quote:
|
FYI,
I was able to enable this in the latest version of Tapatalk for VB 3.x be editing the /functions/get_pm_stat.php Tapatalk file. Right before the code: Code:
$pmdm->pre_save(); I added the line Code:
($hook = vBulletinHook::fetch_hook('private_insertpm_process')) ? eval($hook) : false; Code:
$pmdm->set('fromuserid', $vbulletin->userinfo['userid']); |
All times are GMT. The time now is 03:01 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|