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)
-   -   Thread Maintenance v1.0 (https://vborg.vbsupport.ru/showthread.php?t=59204)

Capt PPRuNe 01-07-2004 01:25 PM

Quote:

Originally Posted by g-force2k2
open threadmaintenace.php

find:

PHP Code:

        WHERE post.dateline <= $timenow - ( $TMClosed 86400 ) AND open=

replace with:

PHP Code:

        WHERE post.dateline <= $timenow - ( $TMClosed 86400 ) AND open=AND thread.forumid NOT IN 

Just replace the 0 in the parethesis with the staff forumids and seperate each one with a comma

ie:
PHP Code:

NOT IN 3,25,42 

regards,
g-force2k2

The above code has obviously changed in v1.1 so what is needed to be able to prevent threads in spcific forums from being closed?

g-force2k2 01-08-2004 01:57 PM

Quote:

Originally Posted by Capt PPRuNe
The above code has obviously changed in v1.1 so what is needed to be able to prevent threads in spcific forums from being closed?

If you open threadmaintenance.php and find:

PHP Code:

        WHERE open=

replace with:

PHP Code:

        WHERE open=AND thread.forumid NOT IN 

And then just replace the 0 with forumids. Hope that does the trick, let me know if any problems arise.

Cheers,
g-force2k2

tiedyetoga 02-09-2004 04:25 PM

Thanks, I have been looking for a hack like this for sometime..


All times are GMT. The time now is 09:39 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.01065 seconds
  • Memory Usage 1,725KB
  • 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
  • (5)bbcode_php_printable
  • (2)bbcode_quote_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
  • (3)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