• Welcome to Simple Machines Community Forum. Please login or sign up.
December 06, 2021, 11:45:48 PM

News:

SMF 2.0.18 has been released! Please update. Read more.


Restrict Posts Per Board

Started by vbgamer45, January 02, 2013, 01:34:29 PM

Previous topic - Next topic

vbgamer45

January 02, 2013, 01:34:29 PM Last Edit: October 03, 2014, 09:38:43 AM by Joker™
Link to Mod

Link to Mod

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
- 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


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/
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Wolfy175

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

Joker™

Can you show me a screen shot of the settings you have placed.

Moreover which user groups are allotted to new members?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Wolfy175

Here you go, it is the same in every trading forum:

Joker™

Quote from: Wolfy175 on January 09, 2013, 03:15:05 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?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Wolfy175


Joker™

Quote from: Wolfy175 on January 09, 2013, 09:48:06 AM
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.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

MRM4

Any similar mods for a 1.1.1x board?

Joker™

Quote from: MRM4 on November 07, 2013, 10:42:49 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 :).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Arantor

And the dev team will be killing off 1.1.x soon.
No good deed goes unpunished
All helpful urges should be circumvented

Joker™

Quote from: Arantor Beeblebrox the First on November 29, 2013, 09:17:05 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 :'(
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Arantor

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.
No good deed goes unpunished
All helpful urges should be circumvented

Armada

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
--- SMF Rocks even more than YabbSE---

Joker™

Quote from: 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
Hi Armada,

This mod works on replies/posts, not on new topics.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Armada

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
--- SMF Rocks even more than YabbSE---

Joker™

Quote from: 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
Sounds a pretty nice enhancement to the mod, tracked.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Armada

Glad you like the idea of it :)
--- SMF Rocks even more than YabbSE---

Joker™

Quote from: 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
Ahh Joker made a booboo

Quote from: mod descriptionThis 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.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Armada

Joker,

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

Armada
--- SMF Rocks even more than YabbSE---

Armada

July 07, 2014, 12:46:32 PM #19 Last Edit: July 07, 2014, 01:06:57 PM by Armada
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.
--- SMF Rocks even more than YabbSE---

Joker™

Quote from: 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.

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
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Armada

Quote from: Joker™ on July 13, 2014, 04:33:27 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.
--- SMF Rocks even more than YabbSE---

Joker™

Quote from: Armada on July 14, 2014, 07:11:58 AM
Quote from: Joker™ on July 13, 2014, 04:33:27 AM
bifurcate

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


Quote from: Armada on July 14, 2014, 07:11:58 AM
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.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

Please update with the new version :).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Armada

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 :)
--- SMF Rocks even more than YabbSE---

Joker™

Quote from: 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 :)
Waiting for the feedback :)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Armada

July 21, 2014, 09:06:30 AM #26 Last Edit: July 21, 2014, 09:25:07 AM by Armada
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.

--- SMF Rocks even more than YabbSE---

Joker™

Quote from: 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.
Glad, its working fine for you :)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

br360

I was looking for something like this for a while. This mod is awesome; thanks Joker.

Joker™

Quote from: 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.
Your welcome :)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

br360

September 06, 2014, 12:03:00 AM #30 Last Edit: September 06, 2014, 12:33:53 AM by br360
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.

Joker™

Quote from: 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.
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.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

br360

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.

br360

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.

Joker™

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.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Ramesh8248

That's what I need...
It's wonderful and works great  :o

FREE SEO HELP [nofollow]
SEO FORUM [nofollow]

Joker™

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
- Hooks ported to separate file
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

br360

Awesome job man. Thank you for your time and effort into updating it, and resolving the issue I was having. Very much appreciated.

xena1997

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

Joker™

Quote from: 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
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.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

xena1997


jack_1985

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!

Armada

Quote from: jack_1985 on December 18, 2014, 03:36:34 AM
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
--- SMF Rocks even more than YabbSE---

jack_1985

Quote from: 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!
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!  :)

Joker™

Quote from: 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!
Really, lol it shouldn't be happing. Tracked https://github.com/siddhartha-gupta/SMF-RestrictPostsPerBoard/issues/4
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Looking

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?

Joker™

Quote from: 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?
Never thought of it, but I think it can complicate the mod and its functionality.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Looking

Thanks for your reply. It might be worth looking at for a future update if you will consider it.

Joker™

Quote from: 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.
Tracked :)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

rock3r


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 .

confuseamuse

Using this mod gives me the following error screen:

{"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.

br360

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.

xena1997

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?

br360

Quote from: 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.

Try that

haykirish

How can we make '0' with the value? Can we do it with PhpMyAdmin?

vbgamer45

Update!
Version 1.3
-jquery now loaded over https:// to support https sites
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

xena1997

Quote from: vbgamer45 on June 10, 2018, 04:36:51 PM
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

vbgamer45

Any certain action or steps taken to reproduce the issue?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

xena1997

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

Advertisement: