Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: cicka on December 18, 2010, 02:15:24 PM

Title: Number of daily posts to send pm
Post by: cicka on December 18, 2010, 02:15:24 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2865)

This add on will make it so that only those users who post a minimum of posts daily will send pm. The add on is fully configured at Admin->Panel->Modification Settings->Daily  Posts to Send Pm. You can also exlude groups from this limit at Permissions->Usergroup->Modify. Admins are not affected by this.

I want to thank cσσкιє мσηѕтєя who was very nice :) to help me to figure out a problem I had with the query at this thread.

http://www.simplemachines.org/community/index.php?topic=413639.0
Title: Re: Number of daily posts to send pm
Post by: Masterd on December 19, 2010, 06:45:41 AM
Nice mod! :D
Title: Re: Number of daily posts to send pm
Post by: cicka on December 19, 2010, 10:21:05 AM
Thank you :)
Title: Re: Number of daily posts to send pm
Post by: JBlaze on December 19, 2010, 10:25:12 AM
Nice mod. Very useful :)
Title: Re: Number of daily posts to send pm
Post by: cicka on December 19, 2010, 10:25:52 AM
Thank you :)
Title: Re: Number of daily posts to send pm
Post by: KensonPlays on December 23, 2010, 02:37:07 AM
Thanks, I picked "3" posts, if members complain, I will bump it down to "1".

Do administrators become exempt? I don't want to create another membergroup with same admin permissions and move my main group to that and the old admin as secondary.

anyway, AWESOME MOD!
Title: Re: Number of daily posts to send pm
Post by: cicka on December 23, 2010, 10:20:43 AM
Quote from: Kcmartz on December 23, 2010, 02:37:07 AM
Thanks, I picked "3" posts, if members complain, I will bump it down to "1".

Do administrators become exempt? I don't want to create another membergroup with same admin permissions and move my main group to that and the old admin as secondary.

anyway, AWESOME MOD!

Yes, administrators are exempt. They will not be affected by the post limit :)
Title: Re: Number of daily posts to send pm
Post by: KensonPlays on December 24, 2010, 02:47:48 AM
Thanks, I can remove the additional membergroup I made. Anyway, any friends that make a SMF forum and want this, i will suggest this mod to them, to help make your new mod more popular!
Title: Re: Number of daily posts to send pm
Post by: Robert. on January 13, 2011, 03:26:32 PM
Very nice :D
Title: Re: Number of daily posts to send pm
Post by: PLAYBOY on February 24, 2011, 07:37:10 PM
Is there anything like this mod for 1.1.13?

I just need a groupmembers to be limited from sending pms. If they dont havent post min 5 messages i dont want them to be able to sent a pm.
Title: Re: Number of daily posts to send pm
Post by: Arantor on February 24, 2011, 07:45:48 PM
You can do that with permissions, Admin > Permissions > Settings > Enable deny permissions and enable post count permissions.

Then go into the permissions for the lowest post count and deny the ability to send PMs.
Title: Re: Number of daily posts to send pm
Post by: PLAYBOY on February 24, 2011, 10:30:16 PM
Quote from: Arantor on February 24, 2011, 07:45:48 PM
You can do that with permissions, Admin > Permissions > Settings > Enable deny permissions and enable post count permissions.

Then go into the permissions for the lowest post count and deny the ability to send PMs.

Perfect. Thank you.
Title: Re: Number of daily posts to send pm
Post by: BGH on April 12, 2012, 08:31:21 PM
Hello cicka, thank you for this mod, it's really useful! :)

I have an of error related to this mod, in the error log, look:


http://***/index.php?action=admin;area=securitysettings;save;sa=general
Apply Filter: Only show the errors with the same message
8: Undefined index: daily_posts_num
Apply Filter: Only show the errors from this file
File: C:/***/Themes/default/languages/Modifications.english.php
Line: 49


Could you please help me to fix it?

Thanks in advance!
Title: Re: Number of daily posts to send pm
Post by: BGH on May 27, 2012, 03:41:45 PM
Sorry for the double post, but recently a solution was provided by Joker™ to fix the error listed above (http://www.simplemachines.org/community/index.php?topic=475309.msg3342165#msg3342165), and since the mod author seems inactive these days, I'll post it here.

In Modifications.english.php (Make backup of file before editing it)

Find:


$txt['daily_posts_message'] = 'Hello '.$context['user']['name'].'. To send a personal message you must make a minimum of '.$modSettings['daily_posts_num'].' posts per day.';


Replace with:


$txt['daily_posts_message'] = 'Hello '.$context['user']['name'].'. To send a personal message you must make a minimum of '.isset($modSettings['daily_posts_num']) && !empty($modSettings['daily_posts_num']) ? $modSettings['daily_posts_num'] : '' .' posts per day.';


Hopefully this works for everybody as it did with me :)

Regards.
Title: Re: Number of daily posts to send pm
Post by: cicka on May 28, 2012, 04:05:13 PM
I am sorry for the late reply but I have not been logging in here for quite some time due to being very busy. Thank you for providing the fix to the error :)
Title: Re: Number of daily posts to send pm
Post by: BGH on May 28, 2012, 07:04:32 PM
Quote from: cicka on May 28, 2012, 04:05:13 PM
I am sorry for the late reply but I have not been logging in here for quite some time due to being very busy. Thank you for providing the fix to the error :)

Don't worry, it wasn't that big of a deal actually, just making sure to have error log clean :P.

Good to see you back, and thanks again for this mod :)