vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Auto Lock Old Threads (https://vborg.vbsupport.ru/showthread.php?t=124032)

cunder 08-15-2006 03:28 PM

Auto Lock Old Threads
 
Hello
I look for a hack for 3.6.0 that close threads
where the last post is 30 days or older or whatever you want.
with specific forums by id but not in all forums.
end not affect sticky.
can this be done in a easy way?
Please? Somebody?

Quote:

Originally Posted by cunder
Hello
I look for a hack for 3.6.0 that close threads
where the last post is 30 days or older or whatever you want.
with specific forums by id but not in all forums.
end not affect sticky.
can this be done in a easy way?
Please? Somebody?

**bump** Please :hurt:

cunder 08-17-2006 07:10 PM

Quote:

Originally Posted by cunder
Hello
I look for a hack for 3.6.0 that close threads
where the last post is 30 days or older or whatever you want.
with specific forums by id but not in all forums.
end not affect sticky.
can this be done in a easy way?
Please? Somebody?



**bump** Please :confused:

cunder 09-05-2006 08:54 AM

Quote:

Originally Posted by cunder
Hello
I look for a hack for 3.6.0 that close threads
where the last post is 30 days or older or whatever you want.
with specific forums by id but not in all forums.
end not affect sticky.
can this be done in a easy way?
Please? Somebody?



**bump** Please :hurt:

**bump** Please :confused:

Hornstar 09-05-2006 09:25 AM

to help this thread i have given you a list of other people who have either created them for older version or have requested the same thing.

https://vborg.vbsupport.ru/showthrea...+close+threads

https://vborg.vbsupport.ru/showthrea...+close+threads


this one may have your answer:
https://vborg.vbsupport.ru/showthrea...+close+threads

cunder 09-06-2006 07:25 AM

Quote:

Originally Posted by hornstar1337
to help this thread i have given you a list of other people who have either created them for older version or have requested the same thing.

https://vborg.vbsupport.ru/showthrea...+close+threads

https://vborg.vbsupport.ru/showthrea...+close+threads


this one may have your answer:
https://vborg.vbsupport.ru/showthrea...+close+threads

thanks
but that work not on Vbulletin 3.6.0

cunder 09-11-2006 07:02 AM

Quote:

Originally Posted by cunder
thanks
but that work not on Vbulletin 3.6.0

**bump**:(

alkuwary 11-01-2006 11:41 PM

yea I would very much like that. Bump.

echamberlain 11-04-2006 06:13 AM

I was looking for a similar auto thread close product that would work with 3.6.2 and I couldn't find one, so I wrote one myself.

Here it is.

Paul M 11-04-2006 10:05 AM

Create a plugin ;

Hook: cron_script_cleanup

PHP Code:

$days 31;
$forums '1,2,3,4,5';
$vbulletin->db->query_write("
    UPDATE "
.TABLE_PREFIX."thread SET open = 0
    WHERE forumid IN(
$forums) AND open = 1 AND sticky = 0 AND lastpost < ".intval(TIMENOW-(86400*$days))
); 


ldma 12-27-2006 06:49 AM

Is that going to work in 3.5 Paul?

giovannicosta 05-25-2007 03:15 PM

Quote:

Originally Posted by Paul M (Post 1110534)
Create a plugin ;

Hook: cron_script_cleanup

PHP Code:

$days 31;
$forums '1,2,3,4,5';
$vbulletin->db->query_write("
    UPDATE "
.TABLE_PREFIX."thread SET open = 0
    WHERE forumid IN(
$forums) AND open = 1 AND sticky = 0 AND lastpost < ".intval(TIMENOW-(86400*$days))
); 


do we edit TABLE+PREFIX with out table prefix?

kennethsia 11-13-2007 08:32 AM

Quote:

Originally Posted by giovannicosta (Post 1254526)
do we edit TABLE+PREFIX with out table prefix?

Does this can work with v3.6.5 ?


All times are GMT. The time now is 02:23 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.01366 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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