Page 1 of 2

[ABD] Limit Topics Per User

Posted: Sun Nov 22, 2015 8:10 pm
by frankingermann
Extension Name: Limit Topics Per User
Author: Frank Ingermann

Extension Description: This extension lets you limit the number of new topics users can start in various (sub-) forums per day, week and/or month.

Extension Version: 0.9.0 beta1 (2015-11-22)
Requirements: phpBB 3.1.x, php >=5.3.3

Features:
  • only kicks in when user hits "new topic", no overhead otherwise
  • flexible setting of max. number of allowed topics per forum
  • individual settings for daily, weekly and monthly checks
  • allows to set a common limit for all forums, overrideable for specific forum(s)
  • limit topic count for a group of subforums in addition (that is, check by counting topics from two or more forums together)
  • checking can be limited to certain user groups (e.g. only Registered + Newly registered Users)
  • certain ranks can be excluded from all checks, (e.g. for "V.I.P."-type user ranks or Admins)
Notes/Credits:
Credits go to David (david63), whose TopicAgeWarning extension served as a blueprint for this one here.

ToDo's:
  • more testing
  • make the rules parser more robust against invalid input (bad syntax)
  • provide a means of customizing the error messages in the ACP
Screenshots:
Can be seen here on my test site.
(i currently can't upload screenshots here ;) )
Demo URL: http://phpbb3.frankingermann.de/
Demo Username: TestUser
Demo Password: TestPassword

Extension Download: http://phpbb3.frankingermann.de/viewtopic.php?f=2&t=2

Re: [BETA] Limit Topics Per User

Posted: Sun Nov 22, 2015 8:36 pm
by Elias
Nice unique work 8-)

Re: [BETA] Limit Topics Per User

Posted: Sun Nov 22, 2015 10:31 pm
by SalazarAG
Thanks to such an extension.

I have not tested it, but I have doubts.

If I create a group "Offenders" for users who are floodando much, I can only limit that group stop creating one topic a day in all forums?

Re: [BETA] Limit Topics Per User

Posted: Sun Nov 22, 2015 11:11 pm
by frankingermann
Yes, that's possible, but it has some limitations - at least in the current
(beta) version:

"Offenders" would have to be the main group for those users,
as the ext. currently only checks the main group of each user.

Let's say your "Offenders" group has group ID 8: In the ACP options of the
ext. under "user groups to check" enter only this group ID (8).
This will work o.k. with this version.

What will NOT work (currently), is to have a different set of rules for other groups
active at the same time.

Background:
I have written this for a photography forum that has some public "photo galery" forums
and some technical forums. Photographers should be able to show one of their
photos per day in the "galery" forums (for discussion of their photos), but not more than
10 per month, so a single photographer can not flood the forum with his/her photos.

I only added the user group "whitelist" and user rank "blacklist" features
to make the extension more useable for other scenarios - personally i don't need any of
these features for our forum. Even admins (incl. myself) can only post one photo per day there ;)

...well, i guess there can be a lot of different "use-cases" for this kind of extension,
so i'm open to any suggestions!

cheers, Frank

Re: [BETA] Limit Topics Per User

Posted: Sun Nov 22, 2015 11:27 pm
by SalazarAG
Thank you for the explanation.

I just'll need for a group even to punish the flooders. I leave them as default group.

Many thanks and congratulations for the work!

Re: [BETA] Limit Topics Per User

Posted: Tue Dec 08, 2015 9:52 pm
by wen33
Edit

Re: [BETA] Limit Topics Per User

Posted: Thu Mar 17, 2016 10:24 pm
by Mattix
This is an epic extension and exactly what I needed.

My board has a trade section where people should not be able to flood the first page with offers, until now we have moderated this by hand. This extension (set to max 2 new topics per week) automates a bunch of moderator-work, for which I and my compatriots thank you very much :)

Re: [BETA] Limit Topics Per User

Posted: Thu Mar 17, 2016 11:23 pm
by BF79
can limit reply too ?

Re: [BETA] Limit Topics Per User

Posted: Fri Mar 18, 2016 6:18 pm
by frankingermann
Hello BF79,

no, the ext. does not limit the number of replies - only the number
of newly started topics per user, forum and timerange.

It is made exactly for scenarios like what Mattix describes: prevent
users from flooding (sub-)forums with new topics.

cheers, Frank

Re: [BETA] Limit Topics Per User

Posted: Fri Mar 18, 2016 7:31 pm
by BF79
frankingermann wrote:Hello BF79,

no, the ext. does not limit the number of replies - only the number
of newly started topics per user, forum and timerange.

It is made exactly for scenarios like what Mattix describes: prevent
users from flooding (sub-)forums with new topics.

cheers, Frank
aii !! no chance to have reply too... ? my members have over 20 reply per day each one with thank.. good...let see...only to see hiden contain

Re: [BETA] Limit Topics Per User

Posted: Fri Mar 18, 2016 7:39 pm
by 3Di
BF79 wrote:
frankingermann wrote:Hello BF79,

no, the ext. does not limit the number of replies - only the number
of newly started topics per user, forum and timerange.

It is made exactly for scenarios like what Mattix describes: prevent
users from flooding (sub-)forums with new topics.

cheers, Frank
aii !! no chance to have reply too... ? my members have over 20 reply per day each one with thank.. good...let see...only to see hiden contain
Did you ever take in consideration to purge the userbase?

Re: [BETA] Limit Topics Per User

Posted: Fri Mar 18, 2016 7:53 pm
by BF79
3Di wrote:
BF79 wrote:
frankingermann wrote:Hello BF79,

no, the ext. does not limit the number of replies - only the number
of newly started topics per user, forum and timerange.

It is made exactly for scenarios like what Mattix describes: prevent
users from flooding (sub-)forums with new topics.

cheers, Frank
aii !! no chance to have reply too... ? my members have over 20 reply per day each one with thank.. good...let see...only to see hiden contain
Did you ever take in consideration to purge the userbase?
I dont understand !! how ? where will help me to block them to not reply too much in one day ?
all what I do !! is purge cache :oops:

Re: [BETA] Limit Topics Per User

Posted: Fri Mar 18, 2016 11:41 pm
by frankingermann
Hello BF79,

this ext. helps to solve one problem i had,
but you seem to have a different problem.

This ext. is about new topics. If you take this as
a blueprint, you (or someone else) can make an
extension out of it that limits replys.

Feel free to use it, or any parts of it, for your own extension!

cheers, Frank
(long-term Open Source supporter ;) )

Re: [BETA] Limit Topics Per User

Posted: Sat Mar 19, 2016 2:40 pm
by Mattix
I have a few ideas for extra features and tweaks. You don't have the extension on github or the like, do you? Somewhere I could fork and submit pull requests.

Re: [BETA] Limit Topics Per User

Posted: Sat Mar 19, 2016 5:43 pm
by frankingermann
Hi Mattix,

no, sorry, no Github yet (i'm a complete Git newby ;) )
I'll try to put it on Github next week. In the meantime
feel free to change what you want, you can PM me
your version if you like.

cheers, Frank