Advertisement:

Author Topic: Restrict Posts Per Board  (Read 27103 times)

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,128
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Restrict Posts Per Board
« on: January 02, 2013, 01:34:29 PM »
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/
« Last Edit: October 03, 2014, 09:38:43 AM by Joker™ »
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

Offline Wolfy175

  • Semi-Newbie
  • *
  • Posts: 16
Re: Restrict Posts Per Board
« Reply #1 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

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,913
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Restrict Posts Per Board
« Reply #2 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?
Github Profile
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

Offline Wolfy175

  • Semi-Newbie
  • *
  • Posts: 16
Re: Restrict Posts Per Board
« Reply #3 on: January 09, 2013, 03:15:05 AM »
Here you go, it is the same in every trading forum:

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,913
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Restrict Posts Per Board
« Reply #4 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?
Github Profile
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

Offline Wolfy175

  • Semi-Newbie
  • *
  • Posts: 16
Re: Restrict Posts Per Board
« Reply #5 on: January 09, 2013, 09:48:06 AM »
Sent you a PM with the link.

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,913
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Restrict Posts Per Board
« Reply #6 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.
Github Profile
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

Offline MRM4

  • Jr. Member
  • **
  • Posts: 181
Re: Restrict Posts Per Board
« Reply #7 on: November 07, 2013, 10:42:49 AM »
Any similar mods for a 1.1.1x board?

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,913
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Restrict Posts Per Board
« Reply #8 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 :).
Github Profile
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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,424
    • Arantor on GitHub
Re: Restrict Posts Per Board
« Reply #9 on: November 29, 2013, 09:17:05 AM »
And the dev team will be killing off 1.1.x soon.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,913
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Restrict Posts Per Board
« Reply #10 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 :'(
Github Profile
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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,424
    • Arantor on GitHub
Re: Restrict Posts Per Board
« Reply #11 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.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Armada

  • Jr. Member
  • **
  • Posts: 283
  • Gender: Male
  • Tux loves Linux
Re: Restrict Posts Per Board
« Reply #12 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
--- SMF Rocks even more than YabbSE---

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,913
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Restrict Posts Per Board
« Reply #13 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.
Github Profile
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

Offline Armada

  • Jr. Member
  • **
  • Posts: 283
  • Gender: Male
  • Tux loves Linux
Re: Restrict Posts Per Board
« Reply #14 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
--- SMF Rocks even more than YabbSE---

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,913
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Restrict Posts Per Board
« Reply #15 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.
Github Profile
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

Offline Armada

  • Jr. Member
  • **
  • Posts: 283
  • Gender: Male
  • Tux loves Linux
Re: Restrict Posts Per Board
« Reply #16 on: July 01, 2014, 05:04:09 AM »
Glad you like the idea of it :)
--- SMF Rocks even more than YabbSE---

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,913
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Restrict Posts Per Board
« Reply #17 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.
Github Profile
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

Offline Armada

  • Jr. Member
  • **
  • Posts: 283
  • Gender: Male
  • Tux loves Linux
Re: Restrict Posts Per Board
« Reply #18 on: July 07, 2014, 12:15:07 PM »
Joker,

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

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

Offline Armada

  • Jr. Member
  • **
  • Posts: 283
  • Gender: Male
  • Tux loves Linux
Re: Restrict Posts Per Board
« Reply #19 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.
« Last Edit: July 07, 2014, 01:06:57 PM by Armada »
--- SMF Rocks even more than YabbSE---