Back to vBulletin 3.0 Add-Ons

Threaded mode cutoff for large thread
Mod Version: 1.00, by tamarian

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 4
Released: 29 May 2004 Last Update: Never Downloads: 0
Not Supported  

What this hack does Allows large forums to enable threaded mode without much impact on the server, and prevents php process crashes due to memory limit when viewing large threads in threaded mode.

I have tons of threads with 1,000+ replies which consumes a lot of memory, and even crashes the apache/php process when there are 10,000+ replies. So this hack is great if you're in the same boat.

Installation

In showthread.php:

Find

PHP Code:
// *********************************************************************************
// get thread info
$thread verify_id('thread'$threadid11);
$threadinfo = &$thread
Add after it:

PHP Code:
// *********************************************************************************
//threaded mode cutoff limit hack
if ($thread['replycount']  > 999)
{
        
$threadedmode 0;
        
$show['threadedmode'] = false;
        
$show['linearmode'] = true;
        
$show['hybridmode'] = false;
}
//end hack 
You can further tune it by changing 999 to whatever you find more useful.

Download

No files for download.

Similar Mods

Disable threaded mode for large threads vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024