Advertisement:

Author Topic: Topic Limit On Board  (Read 1659 times)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Topic Limit On Board
« on: January 06, 2017, 09:59:57 PM »
Link to Mod


TOPIC LIMIT ON BOARD v1.4
By Dougiefresh -> Link to Mod


Introduction
This mod limits the number of topics a user can create within a certain period of time.  The number of topics and number of days is customizable through the Admin panel.

Admin Settings
In the Admin => Forum => Boards area, click on the Modify link for any board.  At the bottom, you will see two new options:
> Limit Topics on this Board to (number of topics)
> Limit Topics on this Board during (number of days)

Compatibility Notes
This mod was tested on SMF 2.0.12, but should work on SMF 2.0 and up, as well as SMF 2.1 Beta 3.  SMF 2.1 Beta 1, Beta 2, and SMF 1.x will not be supported.

Changelog
The changelog can be viewed at XPtsp.com.

License
Copyright (c) 2016 - 2018, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Offline Colin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,859
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: Topic Limit On Board
« Reply #1 on: January 06, 2017, 10:00:42 PM »
Another good one. Cheers Dougie.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topic Limit On Board
« Reply #2 on: January 30, 2017, 09:56:30 AM »
Uploaded v1.1 - January 30th, 2017
o Added support for SMF 2.1 Beta 2.

Offline tanawat

  • Semi-Newbie
  • *
  • Posts: 53
Re: Topic Limit On Board
« Reply #3 on: February 19, 2017, 01:33:40 AM »
i like this mod.


but it have message on head when i click newpost or reply .


can you help me.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topic Limit On Board
« Reply #4 on: February 19, 2017, 07:43:46 AM »
In Themes/default/languages/Post.english.php, look for a ?> that is not at the end of your file and remove that.  My guess is that it is going to be on a line by itself.  Removing that line should fix the issue you are seeing.....

Offline tanawat

  • Semi-Newbie
  • *
  • Posts: 53
Re: Topic Limit On Board
« Reply #5 on: February 19, 2017, 01:06:21 PM »
Thanks a lot.

it's ok now.

 ;D

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topic Limit On Board
« Reply #6 on: July 06, 2017, 09:16:25 AM »
Uploaded v1.2 - July 6th, 2017
o Added support for SMF 2.1 Beta 3.
o Removed support for SMF 2.1 Beta 2.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topic Limit On Board
« Reply #7 on: November 08, 2018, 10:32:05 PM »
Uploaded v1.3 - November 8th, 2018
o No functionality change.
o Updated documentation to point to new website.

Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,024
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Topic Limit On Board
« Reply #8 on: November 09, 2018, 12:33:59 PM »
Very good work! ;D I leave the translated file!


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Topic Limit On Board
« Reply #9 on: November 09, 2018, 07:36:02 PM »
Uploaded v1.4 - November 9th, 2018
o Added Spanish Latin translation, courtsey of Rock Lee!



@Rock Lee:  Thank you for the translation!  It's been included in this version!