Thread subject: muscapaul's PHP-Fusion website :: Forum Threads Limiter

Posted by muscapaul on 11-05-2007 16:53
#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)

Edited by muscapaul on 27-08-2008 00:58

Posted by muscapaul on 24-05-2007 19:40
#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.

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?

Posted by muscapaul on 14-07-2007 00:54
#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 ;)

Posted by muscapaul on 09-11-2007 17:56
#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.

Edited by muscapaul on 29-02-2008 17:28

Posted by helmuth on 25-02-2008 15:10
#7

attached the Danish locales ;)

Posted by muscapaul on 25-02-2008 15:37
#8

I will add them soon. Thx!

Posted by muscapaul on 29-02-2008 17:29
#9

Danish and Dutch locales added, download link above in http://www.muscap...4#post_204

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 ;)

Posted by muscapaul on 28-07-2008 16:52
#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

Posted by muscapaul on 28-07-2008 18:44
#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 :)

Posted by muscapaul on 29-07-2008 00:46
#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

Posted by muscapaul on 19-08-2008 20:34
#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.

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)

Posted by muscapaul on 27-08-2008 01:02
#20

Last minute update going awry. All locale definitions were capitalized, but infusion.php skippd attention. Download was updated. Should be okay now.

Posted by W3C_Valid on 27-08-2008 02:59
#21

removed from danish locale
$locale['FLIM104'] = "0.21";

added
$locale['FLIM220'] = "Global i Forummet per Bruger";
$locale['FLIM221'] = "Begr?ns";
$locale['FLIM222'] = "Ingen Global Begr?nsning";
$locale['FLIM223'] = "Begr?ns Threads only";
$locale['FLIM224'] = "Begr?ns alle Posts";
$locale['FLIM225'] = "Maximum antal posts pr. Bruger tilladt";
$locale['FLIM226'] = "S?rlige Forums";
$locale['FLIM227'] = "Ingen Forum Begr?nsninger sat";
$locale['FLIM228'] = "Set Global Forum begr?nsning";

$locale['FLIM305'] = "Antallet af Posts, du indtastede, er ikke gyldig! Indtast et helt tal.";
$locale['FLIM306'] = "N?r du begr?nser antallet af tr?de eller Posts, skal du angive et maksimalt antal Posts og en begraenset periode.";

$locale['FLIM402'] = " Ingen nye Indl?g tilladt i ?jeblikket";

Posted by muscapaul on 27-08-2008 13:52
#22

Download updated. Thx.

Posted by Wheeler on 31-08-2008 22:22
#23

Nice to see you updated this for Fusion 7, Nice one - I need to arrange a donation for you Paul, I'll be installing this when i get the chance.

Does it have thread limitation? Such has "You cannot post less than 100 characters"

Posted by muscapaul on 31-08-2008 23:10
#24

No, that is something completely different alltogether. This is a numbers of threads/posts.

Posted by muscapaul on 23-09-2008 12:16
#25

New version: 1.01

Changes in v1.01:
- Bug corrected: User could not even post replies in limited threads for the period that he was not allowed to create new threads in the forum.

Update from v1.00 by uploading the contents of the files folder and the new version of ../forum/viewthread.php from the changed-files folder. If you had already modified the latter file, perform the modification manually by following the readme file. The only change from the previous version is for the code located near line 166 in the original viewthread.php file.

DOWNLOAD (last version: 23.09.2008)

Edited by muscapaul on 23-09-2008 12:18

Posted by muscapaul on 06-10-2008 20:30
#26

New version: 1.02

Changes in v1.02:
- Bug corrected: Code that changed forum number in thread limiter table when moving threads was not yet updated for v7.
- Minor bug corrected: Removing the cause of an error message in ../forum/viewthread.php that did not influence functionality.

Update from v1.01 by uploading the contents of the files folder and the new version of ../forum/options.php from the changed-files folder. If you had already modified the latter file, perform the modification manually by following the readme file.

DOWNLOAD (last version: 06.10.2008)

Edited by muscapaul on 25-10-2008 14:01

Posted by muscapaul on 25-10-2008 14:03
#27

New version: 1.03

Changes in v1.03:
- Bug fixed: The variable thread_id to delete a thread from the forum_thread_creation table was not passed correctly.
- Error fixed: Upgrade script was faulty for updating the admin rights in the admin table. If you experience any problems related to admin rights, please run the code as given in the forum on http://www.muscap...read_id=38.

Update from v1.02 by uploading the contents of the files folder and the new version of ../forum/options.php from the changed-files folder. If you had already modified the latter file, perform the modification manually by following the readme file.

DOWNLOAD (last version: 26.10.2008)

Posted by muscapaul on 15-01-2009 22:42
#28

New version: 1.04

Changes in v1.04:
- Updated modified core files ../forum/options.php, ../forum/postnewthread.php and ../forum/viewthread.php after PHP-Fusion core update to v7.00.05.
- Corrected bug in ../forum/options.php that prevented threads to be deleted from the table logging thread creation, resulting in an error message after deleting threads and possibly also in erroneous enforcement of limits.

Upgrading from versions earlier than v1.03:
Upgrade to v1.03 as described above in this thread.

Upgrading from v1.03:
Upgrade by uploading the contents of the files and changed-files folders to the root of your PHP-Fusion installation. If you had already modified any of the files in the chnaged-files folder, perform the modification manually by following the readme file.

DOWNLOAD (last version: 15.01.2009)