PDA

View Full Version : How to disallow mass-prune sticky threads ?


Xxman
12-13-2003, 11:32 PM
Such as object ...

Gary King
12-14-2003, 06:23 PM
I don't think mass prune removes sticky threads by default, in 2.3.0 (I just checked the code, and it doesn't look like it removes sticky threads.)

Xxman
12-15-2003, 04:36 PM
Can someone confirm what Gary W said ?

cinq
12-16-2003, 01:11 AM
It does ( on 2.2.9 here ).

Gary King
12-16-2003, 01:16 AM
Doesn't for me, on 2.3.0 all the way to 2.3.3 (I just checked with my 2.3.0 as well.)

Xxman
12-25-2003, 12:49 PM
It does ( on 2.2.9 here ).

I'm running 2.3.0 , how can I absolutely be sure that the sticky are not killed by a mass prune ?

Gary , which part of code I have to check?
In which file.php , at line ?

Gary King
12-25-2003, 02:44 PM
I'm running 2.3.0 , how can I absolutely be sure that the sticky are not killed by a mass prune ?

Gary , which part of code I have to check?
In which file.php , at line ?
Open admin/thread.php and find $threads=$DB_site->query("SELECT threadid FROM thread LEFT JOIN forum USING (forumid) WHERE $forumcheck thread.lastpost<=$datecut AND thread.sticky=0");


Where it says thread.sticky=0, it means that it will only look for threads where it isn't a sticky (so where sticky is 0, or no) I hope that helps :)

Xxman
12-25-2003, 03:52 PM
Shure M8 !
Thanks a lot.

Gary King
12-25-2003, 07:34 PM
Glad I could help :)