![]() |
Maximum number of threads per day in X forum - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Plugins (https://community.mybb.com/forum-73.html) +---- Forum: Plugin Requests (https://community.mybb.com/forum-65.html) +---- Thread: Maximum number of threads per day in X forum (/thread-148292.html) |
RE: Maximum number of threads per day in X forum - Init - 2013-11-29 (2013-11-29, 08:02 PM)brad-t Wrote: This seems to be for posts, not threads? Not sure I understand it. It works for both. As long as they have reached their limit, they won't be able to post replies or create new threads within the forum category. I read what you required wrong the first time, so I might need to update some of the descriptions, but it limits posts within threads as well as the creation of new threads. RE: Maximum number of threads per day in X forum - brad-t - 2013-11-30 Unfortunately, it seems nobody understood my request ![]() RE: Maximum number of threads per day in X forum - Init - 2013-11-30 (2013-11-30, 03:44 AM)brad-t Wrote: Unfortunately, it seems nobody understood my request Try deactivating, updating, and reactivating. I added a extra setting to allow to choose between Just Posts, Just Threads, or Both. Commit: https://github.com/Ziloi/MyBB-DailyMaximum/commit/bee54d4e5f8476b52f5fdde2936d1155c8c76594 RE: Maximum number of threads per day in X forum - brad-t - 2013-12-06 Just set it up and it is working, thank you! A suggestion: it would be better to show the warning as soon as the user clicks the "new thread" button rather than letting them go through the trouble of writing a new thread only to find out they can't post it ... Still, won't complain about a free plugin but I think it could be useful for others ^^ Also, where can I change the message? RE: Maximum number of threads per day in X forum - crazy4cs - 2013-12-06 (2013-12-06, 05:28 AM)brad-t Wrote: Just set it up and it is working, thank you!Just shooting a wild solution. Open the plugin file and see if he is running the hook at (or in laymen's terms, find something like this, if any):
and replace it with:
and it'd display the error right when trying to post a thread instead of while submitting it. Another wild guess for changing the message, he may have hard coded it in the plugin or language file itself (if any), so search for the message over there and replace it. ----------- edit: Alright, saw his file over at GitHub, replace these:
with:
RE: Maximum number of threads per day in X forum - Init - 2013-12-06 (2013-12-06, 06:39 AM)crazy4cs Wrote: --- Sorry I have been a bit on hiatus. I'll do an edit now. Thanks (1+). First plugin I've done for MyBB, so I was sure there were going to be better ways than those hooks. I apologize. RE: Maximum number of threads per day in X forum - brad-t - 2013-12-06 I'm still really appreciative, thank you everyone. RE: Maximum number of threads per day in X forum - crazy4cs - 2013-12-06 (2013-12-06, 03:17 PM)Init Wrote:Not a problem at all. From a skim look, your code is fantastic, didn't looked at all like some new comer was writing it. Nice work.(2013-12-06, 06:39 AM)crazy4cs Wrote: --- ![]() RE: Maximum number of threads per day in X forum - Init - 2013-12-06 (2013-12-06, 04:02 PM)crazy4cs Wrote: Not a problem at all. From a skim look, your code is fantastic, didn't looked at all like some new comer was writing it. Nice work. Appreciated! I've been developing for a while, just have never actually attempted a plugin for some reason until now. The only thing I hadn't really dealt with in that was the regexs so they may be a bit messy. None the less, Thanks! ![]() PS: I might be clean up the plugin later. A lot of it was done under rush to get it out (probably a mistake) as you might be able to tell considering half of it doesn't follow DRY. RE: Maximum number of threads per day in X forum - brad-t - 2013-12-06 Yeah, if there's a demand for this it might be worth fleshing out more. Maybe make a thread in dev? Thanks a bunch! |