[MODDB] PM Blocking by Users

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Anti-Spam Guide
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [RC3] PM Blocking by Users

Post by mtrs »

Spaniel wrote:No, I mean disable the PM link on the profiles of the people who have blocked you on their PM foe list.
mtrs wrote:It needs two queries for any profile view, so not a good option.
I will not add this feature, this mod is already bloated.
Spaniel wrote:Haha, but isn't this why we have Mods? To break away from standard phpbb3 behaviour ;)
I guess, there is another mod for that, friendship approval, making friends-foes with approval and mutual. Take a look at that mod. ;)
I abandoned all of my mods.
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [RC3] PM Blocking by Users

Post by mtrs »

Spaniel wrote:
mtrs wrote:
Spaniel wrote:2) I don't really want people leaving a reason for the block as that could be abused by people leaving insults that will only spill over onto the forum. The block, imho, is enough.
I thought that before, so, any time someone sees a block reason, that reason is logged in user logs. So, an admin can detect any abuse of block reason wording if someone reports.
But by then the situation has got worse, and the damage/offence is done, and there's even more work for the already over-stretched admin ;) I've disabled the PM foes list to avoid all that, but if others want it, I wish them luck lol :D
I forgot to add something, you can controll which user can use pm foe/pm friend module with the user permission coming with this mod; but, default foe system is open to any user. So, if you want to allow only a limited group to use pm blocking, pm foe module with user permission is better.
I abandoned all of my mods.
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [RC4] PM Blocking by Users

Post by mtrs »

Mod updated to RC4 - hopefully last update before MODDB submission
- Due to confusion I changed PM foe-friend names PM blacklist user, PM whitelist user
- Added more ACP options to control the mod easier
- Some codes moved to function file
****
To update from RC3 to RC4
Uninstall edits in
# includes/ucp/ucp_pm_compose.php,
# includes/acp/acp_board.php,
install from RC4
Copy included files over older ones
run install script
I abandoned all of my mods.
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [RC5] PM Blocking by Users

Post by mtrs »

Mod updated to RC5
- pass by reference php notice fixed
***
To update from RC4 to RC5
Open
includes/ucp/ucp_pm_compose.php
Find

Code: Select all

	pm_block_on_profile_link(&$to_user_id, &$error);
Replace with

Code: Select all

	pm_block_on_profile_link($to_user_id, $error);
Find

Code: Select all

				pm_reply_submit_block(&$address_list, &$error, true);
Replace with

Code: Select all

				pm_reply_submit_block($address_list, $error, true);
Find

Code: Select all

		pm_reply_submit_block(&$address_list, &$error, true);
Replace with

Code: Select all

		pm_reply_submit_block($address_list, $error, true);
Find

Code: Select all

		pm_block_add_control(&$user_id_ary, &$error, false);
Replace with

Code: Select all

		pm_block_add_control($user_id_ary, $error, false);
Copy
includes/functions_pm_block.php
over older one
Or
Open
includes/functions_pm_block.php
Find

Code: Select all

	pm_block_add_control(&$user_id_ary, &$error, $reply);
Replace with

Code: Select all

	pm_block_add_control($user_id_ary, $error, $reply);
Run /install_pm_blocking.php to update version number
I abandoned all of my mods.
User avatar
eunaumtenhoid
Registered User
Posts: 1007
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [RC5] PM Blocking by Users

Post by eunaumtenhoid »

I uninstalled RC2 and I installed RC5, after that the letters are immense when I enter in the panel of the user's control>> PM >> compose and appears this err:

Code: Select all

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of pm_block_add_control(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\Arquivos de programas\EasyPHP 2.0b1\www\phpbb3\includes\functions_pm_block.php on line 254

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of pm_block_add_control(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\Arquivos de programas\EasyPHP 2.0b1\www\phpbb3\includes\functions_pm_block.php on line 254
can anyone help?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [RC5] PM Blocking by Users

Post by mtrs »

I forgat that, then corrected in RC5 package as well

To fix that
Open
includes/functions_pm_block.php
Find (line 254)

Code: Select all

	pm_block_add_control(&$user_id_ary, &$error, $reply);
Replace with

Code: Select all

	pm_block_add_control($user_id_ary, $error, $reply);
Run /install_pm_blocking.php to update version number
I abandoned all of my mods.
User avatar
eunaumtenhoid
Registered User
Posts: 1007
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [RC5] PM Blocking by Users

Post by eunaumtenhoid »

great woked it^^

thx dude, great mod thx
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
eunaumtenhoid
Registered User
Posts: 1007
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [RC5] PM Blocking by Users

Post by eunaumtenhoid »

where does have this option in the permissions?

Code: Select all

Can block private messages
in permissions, had in the version RC2, but in RTC5 i dont found

I want to give the permission of blocking PM only for VIPs.
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [RC5] PM Blocking by Users

Post by mtrs »

Only permission name changed, look for:

Code: Select all

Can use PM blacklist and PM whitelist
It is the same permission
I abandoned all of my mods.
User avatar
eunaumtenhoid
Registered User
Posts: 1007
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [RC5] PM Blocking by Users

Post by eunaumtenhoid »

ok thx again^^
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [RC5] PM Blocking by Users

Post by mtrs »

In a few weeks, I'll submit this mod to MODDB.
I abandoned all of my mods.
5thBrother
Registered User
Posts: 35
Joined: Tue Jun 30, 2009 10:47 am

Re: [RC5] PM Blocking by Users

Post by 5thBrother »

Great Mod. Very practical to block abusive PMS

Many thanks~
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: [RC5] PM Blocking by Users

Post by Peter77sx »

Hello, i didn't realize I was running an older version. Nice improvments!

By the way, in the install file for the edits to includes/acp/acp_board.php there is a comma before the line 'legend3 => 'PRIVATE_MESSAGE_BLOCKINGS',

Code: Select all

						// Begin : PM Blocking by Users
						//If legend3 is inavailable, you should chanage to next available legend number
						,'legend3'					=> 'PRIVATE_MESSAGE_BLOCKINGS',
						----
Also, ACP title says "submit changes" instead of "PM blocking by users".

Thought i would let you know about that. :)
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [RC5] PM Blocking by Users

Post by mtrs »

Peter77sx wrote:in the install file for the edits to includes/acp/acp_board.php there is a comma before the line
,'legend3 => 'PRIVATE_MESSAGE_BLOCKINGS',
The comma is there for a reason to fix an error due to a missing comma in the find array before. Without comma it gives error in some installations.
Peter77sx wrote:Also, ACP title says "submit changes" instead of "PM blocking by users".
I'll check it in the next update. Thanks for the report.
I abandoned all of my mods.
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [RC6] PM Blocking by Users

Post by mtrs »

Mod updated to RC6
- Language title fix and comma removed in 3.0.6 test - thanks Peter77sx
- Empty error php notice fix
The features are the same with RC5
I abandoned all of my mods.
Locked

Return to “[3.0.x] MODs in Development”