Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Limit number of threads in a Forum for a Usergroup Details »»
Limit number of threads in a Forum for a Usergroup
Version: 1.00, by Marco van Herwaarden Marco van Herwaarden is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Version: 3.0.5 Rating:
Released: 01-20-2005 Last Update: 01-20-2005 Installs: 15
 
No support by the author.

Maximum Threads per Forum - Version 1.01

Description
With this mini-mod it is possible to limit the number of threads a user can make in certain forums. Optional only the number of posts made in the previous x days count for this maximum.

This hack was written based on a request made here previously: https://vborg.vbsupport.ru/showthread.php?t=74670

Tested on
- vB 3.0.6 (Will probably also work on earlier 3.0.x versions)

Install Information
Installation using HIS installer included (HIS by Link14716 https://vborg.vbsupport.ru/showthrea...staller+system)
Uninstaller included
Install time: 3 minutes, easy
File edits: 1
Template edits: 0

Features
- Multiple UsergroupId's can be set that should be limited.
- Multiple ForumId's can be set. Max number of threads is counted for every forum seperate.
- Optional the number of threads to limit to can be set, default is 1.
- Optional the time frame in days, in which to count previous threads can be set. Default is no timelimit.

Known limitations
- Secondary (member) Usergroups are not taken in account.

Support
Support will be given in this thread or on www.vbulletin.nl

History
Version 1.01:
- Phrases replaced by Settings
- HIS Installer included

Additional Info
I will not charge for this hack. But if you like it and are looking for a way to spend your money, paypal donations are always welcome (marcoh64@msn.com)

Please click Install if you are using this hack

Show Your Support

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

Comments
  #22  
Old 04-08-2005, 12:12 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey the installer brings up SQL errors. Does this work on 3.07?
Reply With Quote
  #23  
Old 04-08-2005, 06:15 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 006
Hey the installer brings up SQL errors. Does this work on 3.07?
Yes it should work on 3.0.7.
Could you be a bit more specific about the error?
PS No database changes made by the installer, only some settings/phrases inserted IIRC
Reply With Quote
  #24  
Old 04-10-2005, 05:47 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is what I get on 3.07:

Code:
Hack Installer System
Limit Number of Threads in Forum


templates.php (Save This File)
<?php

// Templates

Warning: Invalid argument supplied for foreach() in /his_files/hack_creator_b2.php on line 160
?>

phrases.php (Save This File)
<?php

// Phrases
Warning: Invalid argument supplied for foreach() in /his_files/hack_creator_b2.php on line 202
?>


Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in .../includes/db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in .../includes/db_mysql.php on line 389

 

There seems to have been a slight problem with the AuctionSightings.com database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT varname, text FROM phrase WHERE varname IN () ORDER BY languageid DESC
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY languageid DESC' at line 1

mysql error number: 1064
\

Any ideas? I would love to use this hack. Thanks!
Reply With Quote
  #25  
Old 04-10-2005, 06:11 PM
boeserwolf boeserwolf is offline
 
Join Date: Jan 2004
Location: Styria / Austria
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hallo


Would you mind if I would translate your hack into german??

2.) Would it be okay for you if I would post the translation then at www.vbhacks-germany.com ??

Only licensed users may download hacks in this community.


If this is not okay for you, I will post the translation here.


Yours


Markus
Reply With Quote
  #26  
Old 04-10-2005, 06:15 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@006
You selected "Generate Files" on the installer screen? That is only for developing a hack, not for installing.
Reply With Quote
  #27  
Old 04-10-2005, 06:16 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boeserwolf
Hallo


Would you mind if I would translate your hack into german??

2.) Would it be okay for you if I would post the translation then at www.vbhacks-germany.com ??

Only licensed users may download hacks in this community.


If this is not okay for you, I will post the translation here.


Yours


Markus
Yes i do mind at this time. You can ask me again in 1 month time using PM.
Reply With Quote
  #28  
Old 04-10-2005, 07:39 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh sorry Marco! I thought I needed to select that. Will try it again now. Thanks!

That worked. I have an idea for future versions.

Instead of having this be setting based, it would be much better if it was forum permission based.

That way each forum could have individual maxes set, with individual error messages (entered through a field), and would be specific to usergroups.

That would be a lot harder, but also a lot cooler!

It's awesome now though, don't get me wrong. Only thing is there are some other forums I'd want to limit too, but not the same amount.
Reply With Quote
  #29  
Old 04-22-2005, 05:57 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 007
Oh sorry Marco! I thought I needed to select that. Will try it again now. Thanks!

That worked. I have an idea for future versions.

Instead of having this be setting based, it would be much better if it was forum permission based.

That way each forum could have individual maxes set, with individual error messages (entered through a field), and would be specific to usergroups.

That would be a lot harder, but also a lot cooler!

It's awesome now though, don't get me wrong. Only thing is there are some other forums I'd want to limit too, but not the same amount.
I will think about this for a future version. Maybe it would be even a seperate hack or a Lite and a Full version.

The reason for this is that I think the strenght of the current hack is it's simplicity. Adding settings per forum, would make the hack much more complicated (not a real problem), and much more important it would require many more file edits. So a Lite version like it is now (maybe add maximum replies), and a full version with forum based settings.
Reply With Quote
  #30  
Old 05-13-2005, 02:06 PM
pipin's Avatar
pipin pipin is offline
 
Join Date: Jan 2005
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im wondering if this hack could be used as a basis to write a "Limit number of posts in Thread (depending on forumid)" hack.
Reply With Quote
  #31  
Old 05-13-2005, 03:50 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it could with some tweaking. But i don't have the time right now to look into it.
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 12:41 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.05237 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete