Helpful Information
 
 
Category: vBulletin 3.5
Disable threaded mode for large threads

This is ported from my 3.0.7 version, but converted to the new plugin system.

What this hack does: Large threads are resource intensive, and when the user is viewing them in threaded mode, they are even more resource intensive, and will actually crash the php process. This plugin will allow threaded mode as normal, unless the thread is large (1000+ posts), it will then force the display mode for that thread to linear mode.

Installation: Download the plugin file attached, and install it through the admincp plugin system :)

Side effect: After KirbyDE's suggestion below, problem solved, no need to wait for a new vB hook. :)

Note: The php process crash is not a vB bug, it's simply the limit of available memory. You may increase the memory allowed for php in the php.ini file. But no matter how much memory you allow, some huge threads will excede it, and crash the php process.

Please click Install (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=82960) if you have installed this mod.

@tamarian
I think you can achieve the same effect without a file modification and fix the next newest/oldest/last post problem using existing hooks:

Hook: fetch_threadinfo

if (THIS_SCRIPT == 'showthread' AND $threadcache["$threadid"]['replycount'] > 555)
{
$vbulletin->options['allowthreadedmode'] = false;
}

@tamarian
I think you can achieve the same effect without a file modification and fix the next newest/oldest/last post problem using existing hooks:

Hook: fetch_threadinfo


You are right. Thanks :up: Plugin updated with due credit :)










privacy (GDPR)