News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Restrict Posts Per Board

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

Previous topic - Next topic

vbgamer45

Link to the 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 coloumns 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.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.
Holder of controversial views, all of which my own.


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.
Holder of controversial views, all of which my own.


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

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

Advertisement: