Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on January 02, 2013, 01:34:29 PM

Title: Restrict Posts Per Board
Post by: vbgamer45 on January 02, 2013, 01:34:29 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3586)

Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3586)

This modification helps administrator to restrict each member group on per board basis by allowing them specific number of new topics or replies they can make in a time alloted by admin.

By default mod is disable and doesn't interfere with the current forum settings.

All mod settings are available under
Admin center -> Configuration -> Restrict Posts Per Board


To enable the mod go to following mentioned link and enable the mod
?action=admin;area=restrictposts;sa=generalsettings

A specific setting is available for calendar section also which restricts the user if user has crossed the limit of new topics he/she can made. Also the calendar setting works only if posting is restricted by topics.


To make settings for each membergroup go to
?action=admin;area=restrictposts;sa=postsettings

Here two coloumns are show respective to each membergroup
- Max Posts -> Enter the number of maximum new topics/replies you want a membergroup can make
- Time Limit -> Enter the time span in which you want a group can make specified posts.

For e.g. if you want the a group can make 50 new topics/replies in 2 days enter as following
- Max posts -> 50
- Time span -> 2

Note - If any of the 2 columns is left blank, the mod neglects the value of other column, i.e if you have entered value for 'Max posts' only but 'Time span' hasn't been filled. In that case mod neglects both values.


Change Log
Version 1.3
-jquery now loaded over https:// to support https sites

Version 1.2
- Fixed bug due to which mod was unable to save the data if there were too many boards, over here (http://www.simplemachines.org/community/index.php?topic=494061.msg3739690#msg3739690)
- Hooks ported to separate file


Version 1.1
- Added an option to select restriction between new topic or replies
- Made several fixes
- Enhanced DB queries


Version 1.0.1
- Fixed an issue as reported here (http://www.simplemachines.org/community/index.php?topic=494061.msg3467029#msg3467029)


GitHub Link - https://github.com/Joker-SMF/SMF-RestrictPostsPerBoard

License
 * This SMF Modification is subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this SMF modification except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
Title: Re: Restrict Posts Per Board
Post by: Wolfy175 on January 08, 2013, 09:29:36 AM
Hi Joker,

There appears to be an issue with the mod (Unless my settings are wrong). It's not allowing newly registered users to post at all, receiving the error 'Oops, it looks like you have reached your posting limit.'

Any chance you could advise?

Cheers
Title: Re: Restrict Posts Per Board
Post by: Joker™ on January 08, 2013, 12:39:14 PM
Can you show me a screen shot of the settings you have placed.

Moreover which user groups are allotted to new members?
Title: Re: Restrict Posts Per Board
Post by: Wolfy175 on January 09, 2013, 03:15:05 AM
Here you go, it is the same in every trading forum:
Title: Re: Restrict Posts Per Board
Post by: Joker™ on January 09, 2013, 03:22:56 AM
Here you go, it is the same in every trading forum:
Umm, not able to re-produce the issue on local test forum. Can you share your forum link?
Title: Re: Restrict Posts Per Board
Post by: Wolfy175 on January 09, 2013, 09:48:06 AM
Sent you a PM with the link.
Title: Re: Restrict Posts Per Board
Post by: Joker™ on January 09, 2013, 12:15:42 PM
Sent you a PM with the link.
Issue fixed. New version is released as an update, i.e no need to uninstall or remove your old mod.
Title: Re: Restrict Posts Per Board
Post by: MRM4 on November 07, 2013, 10:42:49 AM
Any similar mods for a 1.1.1x board?
Title: Re: Restrict Posts Per Board
Post by: Joker™ on November 29, 2013, 08:11:08 AM
Any similar mods for a 1.1.1x board?
Not sure, also I'm porting any of my work back to 1.x series, as a stable SMF 2.x is already out from quite sometime :).
Title: Re: Restrict Posts Per Board
Post by: Arantor on November 29, 2013, 09:17:05 AM
And the dev team will be killing off 1.1.x soon.
Title: Re: Restrict Posts Per Board
Post by: Joker™ on November 29, 2013, 09:23:21 AM
And the dev team will be killing off 1.1.x soon.
Make it painless, as personally I've a lot of attachment with 1.x series :'(
Title: Re: Restrict Posts Per Board
Post by: Arantor on November 29, 2013, 09:34:31 AM
We already warned that we were going to do it, not to mention the fact that SMF 1.1 will in the next year (or less) start failing as PHP upgrades and leaves old things behind. SMF 1.1 is 7 1/2 years old, it's time to let it retire.
Title: Re: Restrict Posts Per Board
Post by: Armada on June 24, 2014, 12:58:11 PM
This looks like an useful mod.

Is it actually "specific number of new topics" or is it new posts (as replies?)

I'd like to set a limit on a board on New Topics, but not limit the number of replies somebody makes. Is that what this mod does?

Thanks
Title: Re: Restrict Posts Per Board
Post by: Joker™ on June 28, 2014, 03:33:34 AM
This looks like an useful mod.

Is it actually "specific number of new topics" or is it new posts (as replies?)

I'd like to set a limit on a board on New Topics, but not limit the number of replies somebody makes. Is that what this mod does?

Thanks
Hi Armada,

This mod works on replies/posts, not on new topics.
Title: Re: Restrict Posts Per Board
Post by: Armada on June 30, 2014, 05:06:07 AM
Joker,

Thanks for the reply.

It would great to have the option to restrict only new topics on a per board message, not the number of replies.

Is that possible please?

So for example on a board where people ask questions, we could restrict (for example) people to post one question per day, but then other people (or the original poster) could reply as many times as they want.

Thanks again,
Armada
Title: Re: Restrict Posts Per Board
Post by: Joker™ on June 30, 2014, 10:55:35 AM
Joker,

Thanks for the reply.

It would great to have the option to restrict only new topics on a per board message, not the number of replies.

Is that possible please?

So for example on a board where people ask questions, we could restrict (for example) people to post one question per day, but then other people (or the original poster) could reply as many times as they want.

Thanks again,
Armada
Sounds a pretty nice enhancement to the mod, tracked (https://github.com/siddhartha-gupta/SMF-RestrictPostsPerBoard/issues/1).
Title: Re: Restrict Posts Per Board
Post by: Armada on July 01, 2014, 05:04:09 AM
Glad you like the idea of it :)
Title: Re: Restrict Posts Per Board
Post by: Joker™ on July 06, 2014, 09:41:55 AM
This looks like an useful mod.

Is it actually "specific number of new topics" or is it new posts (as replies?)

I'd like to set a limit on a board on New Topics, but not limit the number of replies somebody makes. Is that what this mod does?

Thanks
Ahh Joker made a booboo

Quote from: mod description
This modification helps administrator to restrict each member group on per board basis by allowing them specific number of new topics they can make in a time alloted by admin.
So it looks like, mod exact do what you are seeking for.
Title: Re: Restrict Posts Per Board
Post by: Armada on July 07, 2014, 12:15:07 PM
Joker,

That's great - thank for checking that for me.  :)

Armada
Title: Re: Restrict Posts Per Board
Post by: Armada on July 07, 2014, 12:46:32 PM
It may be worth changing the description for the mod to reflect this.

So instead of the word 'post' it says 'topics'

Edited:

I've done a bit of a test on the mod, and the behaviour isn't quite as expected. It's a little bit strange.  :)

An user can make as may replies as they want to posts (that's good).
However if they then try and post a new topic (after positng replies) they won't be able to because the replies they have made are counted.
Title: Re: Restrict Posts Per Board
Post by: Joker™ on July 13, 2014, 04:33:27 AM
It may be worth changing the description for the mod to reflect this.

So instead of the word 'post' it says 'topics'

Edited:

I've done a bit of a test on the mod, and the behaviour isn't quite as expected. It's a little bit strange.  :)

An user can make as may replies as they want to posts (that's good).
However if they then try and post a new topic (after positng replies) they won't be able to because the replies they have made are counted.

Hmmm, lets simply bifurcate the mod functionality into 2 parts
- Take posts in account and restrict per posts
- Take topics in account and restrict per topics
Title: Re: Restrict Posts Per Board
Post by: Armada on July 14, 2014, 07:11:58 AM
bifurcate

Well I've learnt a new word today :)

The functionality I'm looking for is simply to restrict the number of new topics irrespective of the number of posts.

At the moment it restricts the number of new topics if there have been posts on that board.
Title: Re: Restrict Posts Per Board
Post by: Joker™ on July 19, 2014, 04:56:49 AM
bifurcate

Well I've learnt a new word today :)
Well that's nice :)


The functionality I'm looking for is simply to restrict the number of new topics irrespective of the number of posts.

At the moment it restricts the number of new topics if there have been posts on that board.
The feature is under development, and a new version will be released soon for the same.
Title: Re: Restrict Posts Per Board
Post by: Joker™ on July 19, 2014, 05:44:57 AM
Please update with the new version :).
Title: Re: Restrict Posts Per Board
Post by: Armada on July 20, 2014, 04:46:23 PM
Thanks ever so much for the update on the update - much appreciated.

I'll give you some feedback once I've installed it.

Thanks again :)
Title: Re: Restrict Posts Per Board
Post by: Joker™ on July 20, 2014, 09:57:51 PM
Thanks ever so much for the update on the update - much appreciated.

I'll give you some feedback once I've installed it.

Thanks again :)
Waiting for the feedback :)
Title: Re: Restrict Posts Per Board
Post by: Armada on July 21, 2014, 09:06:30 AM
Good to see an option now for 'Posts' or 'Topics'

The mod works well now - thank you.  :) Thank you for taking the time to update it.

Title: Re: Restrict Posts Per Board
Post by: Joker™ on July 23, 2014, 11:29:13 AM
Good to see an option now for 'Posts' or 'Topics'

The mod works well now - thank you.  :) Thank you for taking the time to update it.
Glad, its working fine for you :)
Title: Re: Restrict Posts Per Board
Post by: br360 on July 27, 2014, 12:12:39 AM
I was looking for something like this for a while. This mod is awesome; thanks Joker.
Title: Re: Restrict Posts Per Board
Post by: Joker™ on July 27, 2014, 02:25:41 AM
I was looking for something like this for a while. This mod is awesome; thanks Joker.
Your welcome :)
Title: Re: Restrict Posts Per Board
Post by: br360 on September 06, 2014, 12:03:00 AM
I was just trying to add some more restrict topic options to other sections on my forum, and noticed that after enough boards or specific membergroups are clicked with a certain amount of topics and max days, I was unable to add more options to other areas. I could set the amount of max topics and time limits in the other boards, but as soon as I pressed the submit button, none of the new boards I selected stuck. (the original boards I set were still checked)

Is there a certain amount of boards you can check before it cuts off?

*Edit- just uninstalled this mod, as well as the database table. I then reinstalled it, had a clean slate, and then scrolled down to one of board options down the forum- and set the specs I wanted just for that one board- and no changes were saved when I pressed submit. To me it looks like this mod doesn't recognize boards after a certain amount- even if it is the only board you want to have topic limitations for. So if there are say 50 boards on a forum, and I only wanted say board 48 and 49 to have topic settings, it wouldn't save- options only seem to work in the first 10 or so boards installed on the entire forum.

LOL. It's been a long day, hope I'm making sense.
Title: Re: Restrict Posts Per Board
Post by: Joker™ on September 06, 2014, 06:11:04 AM
I was just trying to add some more restrict topic options to other sections on my forum, and noticed that after enough boards or specific membergroups are clicked with a certain amount of topics and max days, I was unable to add more options to other areas. I could set the amount of max topics and time limits in the other boards, but as soon as I pressed the submit button, none of the new boards I selected stuck. (the original boards I set were still checked)

Is there a certain amount of boards you can check before it cuts off?

*Edit- just uninstalled this mod, as well as the database table. I then reinstalled it, had a clean slate, and then scrolled down to one of board options down the forum- and set the specs I wanted just for that one board- and no changes were saved when I pressed submit. To me it looks like this mod doesn't recognize boards after a certain amount- even if it is the only board you want to have topic limitations for. So if there are say 50 boards on a forum, and I only wanted say board 48 and 49 to have topic settings, it wouldn't save- options only seem to work in the first 10 or so boards installed on the entire forum.

LOL. It's been a long day, hope I'm making sense.
Well I tried with ~75 boards, and mod worked perfectly fine. I hope you have both columns(max posts/ time limit), as leaving any column blank will clear out both columns.
Title: Re: Restrict Posts Per Board
Post by: br360 on September 06, 2014, 12:17:00 PM
hmm. Ok, well obviously it's just me then. ;)

Yes, I am filling in both columns. It does work just fine when it's one of my first 40 boards. As soon as I try to set any of the boards after that, all the information I entered for those boards disappear as soon as I press the submit button.

Maybe it's a conflict with another mod I installed, but I went through and uninstalled any mod with a post.php edit also(as to me, it seems that would be the only file in this mod that could conflict with another mod), and that didn't help.

I tried different cache settings, and that didn't seem to work either. Any ideas or suggestions, as I'm stumped- and I would really like to use this.
Title: Re: Restrict Posts Per Board
Post by: br360 on September 08, 2014, 06:30:35 PM
Ok, it's been 3 days now, and I'm officially out of ideas trying to make this work. I would really like to use this mod, and I'm sure your time is valuable joker; so if you are interested in helping troubleshoot why I can't add settings to anything after 40 boards, I would happily pay you.

If you are willing, please pm me with costs.

Thanks.
Title: Re: Restrict Posts Per Board
Post by: Joker™ on September 13, 2014, 04:41:20 AM
Ummm, try to add a new board and see if you can add settings to it. I suspect it has something related to board settings. If that also fails PM me details, so that I can debug the issue on your site.
Title: Re: Restrict Posts Per Board
Post by: Ramesh8248 on September 16, 2014, 04:27:55 AM
That's what I need...
It's wonderful and works great  :o

Title: Re: Restrict Posts Per Board
Post by: Joker™ on October 03, 2014, 09:39:06 AM
Mod updated

Version 1.2
- Fixed bug due to which mod was unable to save the data if there were too many boards, over here (http://www.simplemachines.org/community/index.php?topic=494061.msg3739690#msg3739690)
- Hooks ported to separate file
Title: Re: Restrict Posts Per Board
Post by: br360 on October 03, 2014, 11:00:46 AM
Awesome job man. Thank you for your time and effort into updating it, and resolving the issue I was having. Very much appreciated.
Title: Re: Restrict Posts Per Board
Post by: xena1997 on December 13, 2014, 12:13:06 PM
hi bro
info please
good mod
http://custom.simplemachines.org/mods/index.php?mod=3586

possible
0 replies can set a day?
I did some tests but I can not make it work can you help me?

regards
Title: Re: Restrict Posts Per Board
Post by: Joker™ on December 13, 2014, 09:24:37 PM
hi bro
info please
good mod
http://custom.simplemachines.org/mods/index.php?mod=3586

possible
0 replies can set a day?
I did some tests but I can not make it work can you help me?

regards
Nope, 0 posts is not supported right now. Also for 0 post you can remove the posting ability of a sepecific group from permission manager.
Title: Re: Restrict Posts Per Board
Post by: xena1997 on December 13, 2014, 10:59:53 PM
ok thanks :)
Title: Re: Restrict Posts Per Board
Post by: jack_1985 on December 18, 2014, 03:36:34 AM
Hey Joker,

First off, thanks for the superb mod. Great job!

I stumbled upon a problem, however. Members are able to bypass the post limit, by submitting posts using the Quick Reply function...
Any way to prevent this from happening, without having to disable Quick Reply altogether?

Thanks in advance!
Title: Re: Restrict Posts Per Board
Post by: Armada on December 18, 2014, 04:29:26 PM
Hey Joker,

First off, thanks for the superb mod. Great job!

Yes, I have to agree - this is a superb mod.

It really sorted out a problem we had on one of our boards, and has brought things back into harmony again.

Great work Joker!

Armada
Title: Re: Restrict Posts Per Board
Post by: jack_1985 on December 30, 2014, 06:23:55 AM
Hey Joker,

First off, thanks for the superb mod. Great job!

I stumbled upon a problem, however. Members are able to bypass the post limit, by submitting posts using the Quick Reply function...
Any way to prevent this from happening, without having to disable Quick Reply altogether?

Thanks in advance!
Well, I tried to just turn the Quick Reply function off for everyone, but it seems they can just switch it on again in their profile... So I guess there is no way to keep them from abusing it to get around the daily limit... :-\

Does anyone have any suggestions? Perhaps I am missing something really obvious here?

Any ideas would be greatly appreciated!  :)
Title: Re: Restrict Posts Per Board
Post by: Joker™ on January 03, 2015, 10:09:55 PM
Hey Joker,

First off, thanks for the superb mod. Great job!

I stumbled upon a problem, however. Members are able to bypass the post limit, by submitting posts using the Quick Reply function...
Any way to prevent this from happening, without having to disable Quick Reply altogether?

Thanks in advance!
Really, lol it shouldn't be happing. Tracked https://github.com/siddhartha-gupta/SMF-RestrictPostsPerBoard/issues/4
Title: Re: Restrict Posts Per Board
Post by: Looking on April 08, 2015, 10:48:25 PM
Joker, thank you for this Mod. Is there a reason for not having an option for restricting the post count to the combined total of Topics and Replies or in other words total amount of posts per day?
Title: Re: Restrict Posts Per Board
Post by: Joker™ on April 29, 2015, 11:10:22 AM
Joker, thank you for this Mod. Is there a reason for not having an option for restricting the post count to the combined total of Topics and Replies or in other words total amount of posts per day?
Never thought of it, but I think it can complicate the mod and its functionality.
Title: Re: Restrict Posts Per Board
Post by: Looking on April 29, 2015, 02:42:47 PM
Thanks for your reply. It might be worth looking at for a future update if you will consider it.
Title: Re: Restrict Posts Per Board
Post by: Joker™ on May 01, 2015, 11:47:46 PM
Thanks for your reply. It might be worth looking at for a future update if you will consider it.
Tracked (https://github.com/siddhartha-gupta/SMF-RestrictPostsPerBoard/issues/5) :)
Title: Re: Restrict Posts Per Board
Post by: rock3r on February 06, 2016, 05:13:51 PM

http://custom.simplemachines.org/mods/index.php?mod=1327

first of all, thank you for this mod . but , I have been taking the error in the Quick response

in this mode ,the Quick answer is there is an error in part . So the Quick answer doesn't work either. not counting the ones quick response .
Title: Re: Restrict Posts Per Board
Post by: confuseamuse on November 16, 2017, 12:58:13 AM
Using this mod gives me the following error screen:

Code: [Select]
{"result":false,"data":"Opps! It seems your session is invalid, please try again"}
Nothing else loads on the page. No scripts, stylesheets or HTML content.
Title: Re: Restrict Posts Per Board
Post by: br360 on November 16, 2017, 01:05:19 AM
Are you editing restrictions on a custom theme? I'm not exactly sure why that error occurs, but going into your profile, changing to the default SMF curve theme, then going back to the admin section where the mod settings are, seems to work and you can then make the necessary changes.
Title: Re: Restrict Posts Per Board
Post by: xena1997 on January 09, 2018, 04:45:06 PM
problem mod Restrict Posts Per Board

https://custom.simplemachines.org/mods/index.php?mod=3586

I would like to use this mod to set a limit of responses to users
but when I go to apply the settings, I get this error

{"result":false,"data":"Opps! It seems your session is invalid, please try again"}

can you solve or is there a way to limit responses to users?
Title: Re: Restrict Posts Per Board
Post by: br360 on January 09, 2018, 05:49:43 PM
Are you editing restrictions on a custom theme? I'm not exactly sure why that error occurs, but going into your profile, changing to the default SMF curve theme, then going back to the admin section where the mod settings are, seems to work and you can then make the necessary changes.

Try that
Title: Re: Restrict Posts Per Board
Post by: haykirish on May 06, 2018, 01:11:54 PM
How can we make '0' with the value? Can we do it with PhpMyAdmin?
Title: Re: Restrict Posts Per Board
Post by: vbgamer45 on June 10, 2018, 04:36:51 PM
Update!
Version 1.3
-jquery now loaded over https:// to support https sites
Title: Re: Restrict Posts Per Board
Post by: xena1997 on January 01, 2020, 02:30:48 AM
Update!
Version 1.3
-jquery now loaded over https:// to support https sites

friend can you update the mod?
sometimes it loses the configuration of the daily limits
Title: Re: Restrict Posts Per Board
Post by: vbgamer45 on January 02, 2020, 09:10:15 PM
Any certain action or steps taken to reproduce the issue?
Title: Re: Restrict Posts Per Board
Post by: xena1997 on January 03, 2020, 02:11:24 PM
many times it loses its configuration
example if a response is set per day
it happens a few times that the user can reply with multiple messages