Thread subject: muscapaul's PHP-Fusion website :: Forum Threads Limiter
#1
The first public alpha is presented for a Forum Threads Limiter.
In the whole forum there may be forums (like Off-topic, or Lounge) that are (ab)used too often and that muddle or obscure the on-topic forums. The Forum Threads Limiter will enable you to set a limit on the number of new threads created in a forum during a certain period (measured in multiples of 24 hours).
Also, it can happen that certain members flood forums and you want to prevent that. The Forum Threads Limiter also enables you to set a limit on the number of new threads a single user can create in a forum during a certain period (again measured in multiples of 24 hours).
DOWNLOAD:
Threads_Limiter_20070510.zip (last updated: 10.05.2007)
Notice: Undefined index: post_edituser in
/home/muscapal/public_html/print.php on line
114
Edited by
muscapaul on 27-08-2008 00:58
#2
Small update to first public alpha is presented for a Forum Threads Limiter.
Changelog
V0.21 (alpha_24052007)
* Bug fixed: Corrected an error in the check whether a new thread could be posted or not.
DOWNLOAD:
Threads_Limiter_20070524.zip (last updated: 24.05.2007)
Uploading the files should suffice, if you have not modified the involved forum files. Otherwise, only upload the contents of the php-files folder and perfom the manual change of ../forum/postnewthread.php.
Notice: Undefined index: post_edituser in
/home/muscapal/public_html/print.php on line
114
Edited by
muscapaul on 24-05-2007 19:52
Posted by
Wheeler on 13-07-2007 21:43
#3
How hard would it be to alter this so it limits the number of threads and replies you can do globally on the forum?
#4
Not sure. Maybe it is not that difficult. I will see if I have time to figure it out next week. My weekend has a rather full schedule...
Posted by
Wheeler on 15-07-2007 01:04
#5
Ok
If you can figure out a sysem that will limit the users posts only within a 24 hour period i'll pay you for it ;)
#6
An update is available for the Forum Threads Limiter.
Added functionality: limited number of new threads / limited number of posts for members in the whole forum during a certain period (measured in multiples of 24 hours).
All modified files are based on PHP-Fusion v6.01.13.
DOWNLOAD:
Threads_Limiter_20071109.zip (last version: 29.02.2008)
Updates after initial release:
Addition of Danish and Dutch locales.
Notice: Undefined index: post_edituser in
/home/muscapal/public_html/print.php on line
114
Edited by
muscapaul on 29-02-2008 17:28
Posted by
helmuth on 25-02-2008 15:10
#7
attached the Danish locales ;)
#8
I will add them soon. Thx!
Posted by
Wheeler on 28-07-2008 16:42
#10
"Added functionality: limited number of new threads / limited number of posts for members in the whole forum during a certain period (measured in multiples of 24 hours)."
Hiya
I downloaded this to take a look, i dont see any option to limit posts ;)
#11
Go to the settings page in Admin Panel -> Infusions -> Forum - Threads Limiter. There you find two tables: Forum - Threads Limiter - Set Global Forum Limitation (with Global in Forum per User) and Forum - Threads Limiter - Add Setting for Specific Forum. You use the top one to limit the total number of new threads/posts per user over the whole forum.
Posted by
Wheeler on 28-07-2008 16:59
#12
Well Yea,
I know that Pal. But it's for Threads created in each forum, for example i can set myself to only be able to post a thread once in a particular forum, i then go back to post another one and of course - it wont let me.
But i can post as many replies as i want, there isnt an option to limit the number of replies a member can do
#13
Isn't the "Limit all Posts" doing the trick...?
Posted by
Wheeler on 28-07-2008 21:27
#14
Huh
I dont see that, i downloaded the version from this thread. I will reinstall it pal cheers
Posted by
Wheeler on 28-07-2008 21:32
#15
Meh, I reinstalled and it aint there - the locals aint there either could you check the download package or point me int he correct direction :)
#16
The download package is the same as the version I use on my website from which I took the screenshot. I found out that Set global Forum Limitation is still hard-coded into the settings script. :(
Posted by
Wheeler on 29-07-2008 01:52
#17
Do you have the code by any chance? :p
#18
New version: 1.00
Features
- This infusion provides the possibility set a maximum number of new threads that can be created within a certain forum during a certain period.
- Any number of threads can be chosen.
- The period is given in whole days and is always determined in multiples of 24 hours from the present backwards.
So: The limit is set for a maximum of 'x' per 'y' times 24 hours. As soon as the the oldest of x threads falls outside the period, a new thread can be created.
- This infusion provides the possibility set a maximum number of new threads that a user can create within a certain forum during a certain period.
- The period is given in whole days and is always determined in multiples of 24 hours from the present backwards.
So: The limit is set so that a user can a create maximum of 'x' threads per 'y' times 24 hours. As soon as the the oldest of x threads falls outside the period, the user can create a new thread, provided that the maximum number set above is not reached.
- This infusion provides the possibility to set a maximum number of posts a user can do during a certain period.
- The period is given in whole days and is always determined in multiples of 24 hours from the present backwards.
So: The limit is set for a maximum of 'x' per 'y' times 24 hours. As soon as the the oldest of x posts falls outside the period, a new message can be posted.
- The strictest limit is always used.
Upgrading from PHP-Fusion v6 to PHP-Fusion v7:
Please note, if you want to upgrade your Forum Threads Limiter Infusion during a PHP-Fusion version upgrade from v6 to v7, there is no need to defuse the infusion. There will be no error messages as long as you upload the infusion files at the same time as the PHP-Fusion files. When you upload the infusion files, you can simply overwrite the existing ones.
PHP-Fusion v7 utilises a somewhat different system for administering admin rights for Infusions. In v6 it used to be a single setting that gave rights to all Infusions. Under the new version every infusion will be given its own code for admin rights. As a result it is necessary to run an upgrade script (../infusions/forum_limits/v6-7upgrade.php) that will at least add the rights for the primary Superadministrator. The file has checkboxes to indicate whether all superadmins should be given access rights to the Forum Threads Limiter Infusion and/or whether all admins with Infusion Administration rights should be given those rights.
This script only needs to be run if a site is upgraded from PHP-Fusion v6 to v7. Even though a check has been built in to prevent the script from being run after the upgrade has already been performed, it is advised to delete the script from your server after upgrading.
Changes in v1.00:
- Code completely updated for compatibility with PHP-Fusion v7.
- Few minor code corrections for calculations.
DOWNLOAD (last version: 27.08.2008)
26.08.2008: locale references in infusion.php capitalized.
27.08.2008: Danish locale updated.
Notice: Undefined index: post_edituser in
/home/muscapal/public_html/print.php on line
114
Edited by
muscapaul on 27-08-2008 13:53
Posted by
Mimer on 26-08-2008 23:10
#19
I get this error after installing v. 1:
Code
Notice: Undefined index: flim101 in /mounted-storage/home10/sub001/sc15863-WIQP/fjotte.dk/forum/infusions/forum_limit/infusion.php on line 32
Notice: Undefined index: flim102 in /mounted-storage/home10/sub001/sc15863-WIQP/fjotte.dk/forum/infusions/forum_limit/infusion.php on line 33
Notice: Undefined index: flim101 in /mounted-storage/home10/sub001/sc15863-WIQP/fjotte.dk/forum/infusions/forum_limit/infusion.php on line 75
Mimer B)
#20
Last minute update going awry. All locale definitions were capitalized, but infusion.php skippd attention. Download was updated. Should be okay now.