Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Threads Limiter - Limit threads posted by user in X hours. Details »»
Threads Limiter - Limit threads posted by user in X hours.
Version: 1.0, by Almotmaiz.Net Almotmaiz.Net is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.8.x Rating:
Released: 05-28-2009 Last Update: 05-28-2009 Installs: 110
Uses Plugins
Translations  
No support by the author.

Threads Limiter 1.0

Threads Limiter - Let you Limit threads posted by user in X hours. with nice admincp options with xml product only.

admincp controller.
  1. ability to turn it on or Off.
  2. ability to set max post
  3. ability to set hours.
  4. ability to Exclude forums from this addon.
  5. ability to Exclude usergroups from this addon.
install.
  1. download latest version on attachment.
  2. upload XML file via Upload/Add Product.
  3. Edit your admincp settings.
  4. finish.
MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.


History.
1.0 - first release.

Download Now

File Type: xml [product]-Threads-Limiter-1.0.English.xml (6.6 KB, 418 views)
File Type: xml [product]-Threads-Limiter-1.0.Arabic.xml (6.8 KB, 113 views)

Screenshots

File Type: png admincp.png (33.8 KB, 0 views)
File Type: png alert.png (22.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 09-12-2009, 10:56 AM
career career is offline
 
Join Date: Feb 2009
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
  #23  
Old 09-22-2009, 11:33 PM
eSe7en eSe7en is offline
 
Join Date: Jul 2008
Location: Egypt
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a bug in this hack
It doesn't exclude the threads correctly.

I changed the 'newthread_form_start' plug-in into:

Quote:
if($vbulletin->options['nlp_limiter_active']) {
$fforums = iif(($fforums1 = unserialize($vbulletin->options['nlp_limiter_fex'])) != "", $fforums1, array());
if(!in_array($vbulletin->userinfo['usergroupid'], unserialize($vbulletin->options['nlp_limiter_ex'])) AND
!in_array($foruminfo['forumid'], $fforums)) {
$timecut = TIMENOW - (3600 * $vbulletin->options['nlp_limiter_h']);
$fforumsStr=implode(',',$fforums);
$count = $vbulletin->db->query_first("
SELECT COUNT(*) AS count
FROM " . TABLE_PREFIX . "thread AS thread
WHERE postuserid = '{$vbulletin->userinfo['userid']}'
AND (visible != 2 && open = 1 && dateline >= $timecut) AND forumid NOT IN($fforumsStr)
");
if($count['count'] >= $vbulletin->options['nlp_limiter_threadcount']) {
$limiter = iif($count['count'] > 2, $count['count'] . ' ') . iif($count['count'] <= 2, iif($count['count'] == 1, $vbphrase['nlp_limiter_one_thread'], $vbphrase['nlp_limiter_two_thread']), $vbphrase['threads']);
eval(standard_error(fetch_error('nlp_limiter_msg', $limiter, $vbulletin->options['nlp_limiter_h'], $vbulletin->options['contactuslink'])));
exit(0);
}
}
}
Reply With Quote
  #24  
Old 09-23-2009, 07:02 AM
career career is offline
 
Join Date: Feb 2009
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
There is a bug in this hack
It doesn't exclude the threads correctly.

I changed the 'newthread_form_start' plug-in into:

if($vbulletin->options['nlp_limiter_active']) {
$fforums = iif(($fforums1 = unserialize($vbulletin->options['nlp_limiter_fex'])) != "", $fforums1, array());
if(!in_array($vbulletin->userinfo['usergroupid'], unserialize($vbulletin->options['nlp_limiter_ex'])) AND
!in_array($foruminfo['forumid'], $fforums)) {
$timecut = TIMENOW - (3600 * $vbulletin->options['nlp_limiter_h']);
$fforumsStr=implode(',',$fforums);
$count = $vbulletin->db->query_first("
SELECT COUNT(*) AS count
FROM " . TABLE_PREFIX . "thread AS thread
WHERE postuserid = '{$vbulletin->userinfo['userid']}'
AND (visible != 2 && open = 1 && dateline >= $timecut) AND forumid NOT IN($fforumsStr)
");
if($count['count'] >= $vbulletin->options['nlp_limiter_threadcount']) {
$limiter = iif($count['count'] > 2, $count['count'] . ' ') . iif($count['count'] <= 2, iif($count['count'] == 1, $vbphrase['nlp_limiter_one_thread'], $vbphrase['nlp_limiter_two_thread']), $vbphrase['threads']);
eval(standard_error(fetch_error('nlp_limiter_msg', $limiter, $vbulletin->options['nlp_limiter_h'], $vbulletin->options['contactuslink'])));
exit(0);
}
}
}

Thanks eSe7en!

I wrote a pms to developer about this malfunction but still waiting for answer ((
Thanks a lot, my board really require this mod.

btw: checked. now with these changes working perfectly
Reply With Quote
  #25  
Old 09-23-2009, 10:01 AM
eSe7en eSe7en is offline
 
Join Date: Jul 2008
Location: Egypt
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad it woked .

I've PMed the developer so that he can update the mod.
I found out about this bug as I've turned on reports and when the user send reports about any posts , they're considered as threads and subsequently not ignored by the mod.

So, if you have reports turned on; Make sure you but the reports forum in the excluded forums.
Reply With Quote
  #26  
Old 09-27-2009, 04:10 AM
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Location: KierDarby.php
Posts: 1,009
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod would be nice to have, make things a little easier. Developer can you comment?
Reply With Quote
  #27  
Old 09-27-2009, 07:41 PM
Silencer Groans's Avatar
Silencer Groans Silencer Groans is offline
 
Join Date: Dec 2007
Location: k.s.a
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot

ممتاز يالزعابي
Reply With Quote
  #28  
Old 10-20-2009, 10:48 AM
career career is offline
 
Join Date: Feb 2009
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eSe7en View Post
Glad it woked .

I've PMed the developer so that he can update the mod.
I found out about this bug as I've turned on reports and when the user send reports about any posts , they're considered as threads and subsequently not ignored by the mod.

So, if you have reports turned on; Make sure you but the reports forum in the excluded forums.
thanks!
Reply With Quote
  #29  
Old 10-21-2009, 05:37 AM
eSe7en eSe7en is offline
 
Join Date: Jul 2008
Location: Egypt
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by career View Post
thanks!
Ur Welcome
Reply With Quote
  #30  
Old 12-26-2009, 04:26 PM
shofolofo shofolofo is offline
 
Join Date: Aug 2007
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ese7en .. does it work with vb 4.0 ?
Reply With Quote
  #31  
Old 12-26-2009, 04:33 PM
eSe7en eSe7en is offline
 
Join Date: Jul 2008
Location: Egypt
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok shofo,

I'll try to upgrade it within the next few days
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04516 seconds
  • Memory Usage 2,328KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete