vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - WoG - Threads Limit Per X Hours on Specified Forum (https://vborg.vbsupport.ru/showthread.php?t=232274)

WoGuziczek 01-04-2010 10:00 PM

WoG - Threads Limit Per X Hours on Specified Forum
 
1 Attachment(s)
WoG - Threads Limit Per X Hours on Specified Forum
[WoG - TLPXHONSF]

Mod works on vB 3.7 and vB 3.8 and vB 4.0

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 and Nominate for MOTM
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

Veer 01-08-2010 11:43 AM

Quote:

Originally Posted by WoGuziczek (Post 1949056)
@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:
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:
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

Quote:

Originally Posted by Tutatruck (Post 1983182)
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

Quote:

Originally Posted by clauz (Post 2472549)
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


All times are GMT. The time now is 07:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01209 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete