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?


All times are GMT. The time now is 03:27 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.01115 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete