PDA

View Full Version : Auto Lock Old Threads


cunder
08-15-2006, 03:28 PM
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?

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
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
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/showthread.php?t=74764&highlight=auto+close+threads

https://vborg.vbsupport.ru/showthread.php?t=73432&highlight=auto+close+threads


this one may have your answer:
https://vborg.vbsupport.ru/showthread.php?t=60257&highlight=auto+close+threads

cunder
09-06-2006, 07: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/showthread.php?t=74764&highlight=auto+close+threads

https://vborg.vbsupport.ru/showthread.php?t=73432&highlight=auto+close+threads


this one may have your answer:
https://vborg.vbsupport.ru/showthread.php?t=60257&highlight=auto+close+threads

thanks
but that work not on Vbulletin 3.6.0

cunder
09-11-2006, 07:02 AM
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 (https://vborg.vbsupport.ru/showthread.php?t=130738).

Paul M
11-04-2006, 10:05 AM
Create a plugin ;

Hook: cron_script_cleanup


$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
Create a plugin ;

Hook: cron_script_cleanup


$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
do we edit TABLE+PREFIX with out table prefix?

Does this can work with v3.6.5 ?