vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Close Threads After X Posts (https://vborg.vbsupport.ru/showthread.php?t=33504)

damicatz 12-25-2001 10:00 PM

Requested At : https://vborg.vbsupport.ru/showthrea...threadid=33500

This hack closes threads after a certain amount of posts. You can specify a post limit by forum and you can disable it in certain forums as well.

TheComputerGuy 12-26-2001 01:52 AM

Nice Hack...very good idea..

bira 12-26-2001 09:41 AM

You added an extra query.

I showed you in the request thread how to use the exist UPDATE query in newreply.

Lesane 12-26-2001 11:39 AM

Great. Thanks.

damicatz 12-26-2001 02:21 PM

[QUOTE]Originally posted by bira
You added an extra query.

I showed you in the request thread how to use the exist UPDATE query in newreply.

Lesane 12-27-2001 02:11 PM

I found one error in your instructions:

Replace it with:
PHP Code:

//Begin Close Threads Hack
  
$DB_site->query("INSERT INTO forum
                      (forumid,styleid,title,description,active,displayorder,parentid,
                       parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
                       moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
                       styleoverride,allowratings,countposts,moderateattach,AGREEMENT,CLOSETHREADS)
                   VALUES
                      (NULL,'
$styleset','".addslashes($title)."','".addslashes($description)."','$isactive','$displayorder','$parentid',
                       '','
$allowposting','$cancontainthreads','$daysprune','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
                       '
$moderatenew','$aallowhtmlcode','$aallowbbcode','$aallowimgcode','$aallowsmilies','$aallowicons',
                       '
$styleoverride','$allowratings','$countposts','$moderateattach','$closethreads')");
//End Close Threads Hack 

You are adding after moderateattach this: AGREEMENT,CLOSETHREADS

AGREEMENT??? ;)

damicatz 12-27-2001 11:41 PM

Odd,

I took that out (I use the same template for all my hacks)

*Hits Notepad*

grumpy 01-01-2002 05:19 PM

A friend installed this hack and he said that while it did close the threads at the right time, it didn't use the 'close' button or any other indication that the thread was locked. It just wouldnt allow more posts. Is this a known issue with this hack or was there just a problem with my friend's install?

damicatz 01-01-2002 06:46 PM

When I tested it on my board the threads were marked as closed so it might be a problem with your friends install. What version of vBulletin is he using?

TECK 06-10-2002 12:36 AM

this hack will make your users to spam your forums. if they cant post, they will start a new thread in response to it. more work for you and your mods.


All times are GMT. The time now is 12:35 AM.

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.00983 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete