SMF Community Helpers > Mod Development
[MOD] PostLimit
Suki:
Post Limit mod
License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/
Description
This mod allow you to set a per user post limit, the limit is set per day. If the user is approaching his/her limit, there will be a message informing them about it, you can configure this message with some predefined vars: {username} {limit}.
You can set a permission for members to be able to set limits on other users, admins cannot be limited.
This mod needs PHP 5.2 or higher.
for SMF 2.0.x only
Laguage
-English
ChangeLog
-28/06/12
Initial release
OK, let's get this party started :)
The Craw:
I started checking out your mod today. Looks pretty awesome so far. :)
RabidShepherd:
Your mod is working fine on my test server. I'm not qualified to to check your code like you're doing on mine, you know way more than I do. All I noticed is a typo in the $txt['PostLimit_custom_message_sub'] of PostLimit.english.php. It says
--- Code: ---{limit} will display the amount of messages this particular user can made.
--- End code ---
made should be make
The mod uninstalls fine but leaves the scheduled task and a couple settings. The settings are no biggie I guess, everyone has their preference on that. But, will that remaining scheduled task cause a problem when it tries to run?
Nice mod, I could see me having a use for it on my site.
Oh, I almost forgot, I couldn't find where you allow other members to limit posts. Maybe it doesn't work on my test server cause I only have 1 admin and 1 member on it. Where's that option located?
Suki:
Cool, thanks. Will make the changes later today.
You don't need to be a SMF guru to do checks, that is the whole point of been a community program, ;)
The option to let other members set a limit is a permission by group, check the permissions page, it should be a new permission for it.
Arantor:
Nice mod.
The one thing I'd say about community checking is that while you don't need to be a guru to test things, it really helps if someone who does know PHP well can take a look as well, for vulnerability checking... this one looks very clean though :)
Navigation
[0] Message Index
[#] Next page
Go to full version