PDA

View Full Version : Miscellaneous Hacks - WoG - Threads Limit Per X Hours on Specified Forum


WoGuziczek
01-04-2010, 10:00 PM
WoG - Threads Limit Per X Hours on Specified Forum
[WoG - TLPXHONSF]

Mod works on vB 3.7 (https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=wog_tlpxhonsf3) and vB 3.8 (https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=wog_tlpxhonsf38) and vB 4.0 (https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=wog_tlpxhonsf4)

What is it? / What does it do?
It is a small modification that allows a limit post threads within X hours (for each forum separately).


Features

Exluded Usergroups
Turn off the hack global
Count only visible threads



Technical

Phrases: 11
Plugins: 4
SQL Queries: 1
Templates : 0
Images to upload: 0
Files to upload: 0
Files to edit: 0
Templates to edit: 0


Installation
1-) Import product


Upgrade
1-) Import latest product and select Allow Overwrite


Versions
v1.0.0 - January 05 2010
- First release for vB4

ENJOY ;)

Do you like this mod? Please click Mark as Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=232274) and Nominate for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=232274&type=1)
or say "Thanks" :)

Not install = Not support :]

BlackJacket
01-06-2010, 12:09 AM
This is very useful. Tagged for later.

Veer
01-06-2010, 03:50 PM
Thanks.

Why it do not upgrade existing installed product? I overwrote it but installed separately, Now I have 2 products installed, what to do now? I don't want to set all forums again :(

WoGuziczek
01-06-2010, 08:13 PM
@Veer, you install attach from this thread & overwrote attach from this thread?
Doubt...
Versions for 3.7, 3.8 and 4.0 are different.

Check product_id for your 2 products.


// Try:
Go to Admin CP > Plugins & Products > Manage Products > Edit older my hack (older is not = wog_tlpxhonsf4) and delete Existing Install/Uninstall Code for this hack. When you do it - uninstall this hack.

Dr.osamA
01-07-2010, 10:10 AM
installed

thanxx
________
Ship sale (http://ship-sale.com/)

Veer
01-08-2010, 11:43 AM
@Veer, you install attach from this thread & overwrote attach from this thread?
Doubt...
Versions for 3.7, 3.8 and 4.0 are different.

Check product_id for your 2 products.


// Try:
Go to Admin CP > Plugins & Products > Manage Products > Edit older my hack (older is not = wog_tlpxhonsf4) and delete Existing Install/Uninstall Code for this hack. When you do it - uninstall this hack.
Yes, I'm sure I overwrote the new product.

Old version has wog_atlpxhonsf Product ID and WoG - ATLPXHONSF title.
New version has wog_tlpxhonsf Product ID and WoG - TLPXHOSF title.

Old version install code:
$db->hide_errors();
$vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."forum` ADD `wog_create_max` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");
$vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."forum` ADD `wog_create_hours` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");
$db->show_errors();

New version install code:
$db->hide_errors();
$vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."forum` ADD `wog_create_max` INT(10) UNSIGNED DEFAULT '0' NOT NULL");
$vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."forum` ADD `wog_create_hours` INT(10) UNSIGNED DEFAULT '0' NOT NULL");
$db->show_errors();

WoGuziczek
01-08-2010, 02:49 PM
Install code not changed.
Delete uninstall code for product WoG - ATLPXHONSF and delete this hack.

Veer
01-08-2010, 03:27 PM
Hmm, Done.

Thank you WoGuziczek, Its fine now. :)

albrens
01-08-2010, 05:06 PM
Thank you

Tutatruck
02-14-2010, 07:26 PM
Extremly useful plugin, will install! Could it possibly be enhanced with a per user basis also, not only whole groups?

Tutatruck
02-15-2010, 06:59 PM
Jesus, i must be blind or something, but i cant find the settings for how many thread starts in how many hours, and the setting for which forums that are affected. Please lead a blind man to the right path :D

phkk
10-18-2010, 01:18 AM
Jesus, i must be blind or something, but i cant find the settings for how many thread starts in how many hours, and the setting for which forums that are affected. Please lead a blind man to the right path :D



admincp- Forum Manager - WoG - Threads Limit Per X Hours on Specified Forum

sticky
10-18-2010, 07:13 AM
Could I get something like this but post limit per X hours?

chcool
10-23-2010, 03:38 AM
installed on 4.0.8
5 star thank you

hamedbia2
06-03-2011, 09:51 PM
I can't find this option https://vborg.vbsupport.ru/external/2011/06/82.jpg

tpearl5
02-22-2012, 12:48 AM
thanks, works great!

clauz
01-06-2014, 05:49 AM
Installed on 4.2.2 and it is not working....

Phaedrus
01-13-2014, 04:28 AM
Installed on 4.2.2 and it is not working....

Dangit...

Plus I'd prefer one that would set a limit on users not whole forums... Basically, I want each user to be able to make a certain number of posts in a forum per hour, not to limit the number of new threads per se, just to limit the number by any individual poster.

Is that what this does? And if it is, can anybody make it work for 4.2.2?

creative-friend
10-12-2017, 11:57 PM
"split()" function use in this plugin which is not available in PHP 7. If anyone use it in PHP 7, replace "split" with "explode". (Thanks to motd2 for this change).

I also found that there is some issue with uninstall procedure. The plugins created by this addon is not removed if addon is uninstall

tanzeelniazi
10-13-2017, 02:41 PM
why not include posts per section ?
in my opinion limit threads is not a good idea but if you add count post per section it is good