vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Limit number of threads in a Forum for a Usergroup (https://vborg.vbsupport.ru/showthread.php?t=74800)

Marco van Herwaarden 01-20-2005 10:00 PM

Limit number of threads in a Forum for a Usergroup
 
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

nexialys 01-21-2005 12:21 PM

hum.. strange:

phrases are for text
settings are for settings...

so why did you create 4 settings in phrase variables ?!

there is a protocol here that help you create new setting groups, and then create some settings in it.... would be more efficient to do so... a simple sql query to create all this in a simple install file, or the query itself,..

for now, this hack is really strange...

Marco van Herwaarden 01-21-2005 12:27 PM

Well you're right. This should go into settings. Being this a mini-mod on request, i didn't want to spend time to put together the installer.

But you're right, better do it the proper way.

Since nobody have installed it yet, i will remove the file for now and replace it later today with a version that uses settings.

Marco van Herwaarden 01-21-2005 02:00 PM

New version 1.01 Uploaded.

Installation now through HIS.

Phrases replace by a new Settingroup (groupid 6410) called 'Limit number of Threads in Forum'.

nexialys 01-21-2005 04:55 PM

ah, now this is good... ;) (cheers MarcoH64!)

i would recommend this hack to anybody that have a forum that is based on clients applyances or services requests... ;)

hockyfan 01-21-2005 07:19 PM

Just to be sure I'm clear on this one, I can set a limit, so each day a user can only make X amount of threads in a forum? And this will "reset", every day?

h

Marco van Herwaarden 01-21-2005 08:05 PM

Well it is still a bit limited. But the request was limited.

If there are people asking for it, settings could be per forum i think (diffirent usergroups/limits per forum).

bigcurt 01-22-2005 01:28 AM

Hello, thank you SOOOOOOOOO Much for releasing this hack...I have a problem though :(. I put the files in install...then when I go to it and try to install this pops up.

Code:

Warning: main(./install/his_files/hackfunctions_b3.php): failed to open stream: No such file or directory in /install_/his_files/hack_install_b3.php on line 34

Fatal error: main(): Failed opening required './install/his_files/hackfunctions_b3.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bigcurt/public_html/forum/install_/his_files/hack_install_b3.php on line 34

Any suggestions? I dont have the HIS system...but I dont go to his folder I just go to hack_install.

hmm??

Marco van Herwaarden 01-22-2005 08:09 AM

Rename your install directory back from 'install_' to 'install'

PS The HIS files are packaged in the zip.

bigcurt 01-22-2005 08:48 PM

Hello, ok I have installed it but it doesnt work :(. I got 3 of my members to try and make a new thread and they tried 3 times and all 3 it popped up :( :( any suggestions...is it workin for anyone else?


All times are GMT. The time now is 03:29 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.00997 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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