View Full Version : Is there a way to increase the number of similar threads?
At present there is a limit of "5" similar threads at the bottom of the showthread. I cannot find the code to increase this from 5 to 10. Is this even possible?
Thanks in advance.
Dismounted
05-18-2007, 11:34 AM
Yes, through the Admin CP. It should be under the vBulletin Options somewhere.
Yes, through the Admin CP. It should be under the vBulletin Options somewhere.
Hi there, I see where "similar threads" can be turned on but there I can't find in the acp where the number of similar threads can be increased.
Is it located somewhere other than the Vbulletin Options category?
Thanks in advance.
g7jgq
07-17-2007, 07:54 PM
Hi
I too have been looking at this and the 5 limit appears to be hardcoded in 'fetch_similar_threads'
I may look at a simple mod to alter this
Regards
Alex
cobaku
09-24-2009, 07:24 PM
in functions_search.php if you want LIMIT 10 of them
$threads = $vbulletin->db->query_read_slave("
SELECT thread.threadid, MATCH(thread.title) AGAINST ('$safetitle') AS score
FROM " . TABLE_PREFIX . "thread AS thread
$hook_query_joins
WHERE MATCH(thread.title) AGAINST ('$safetitle')
AND thread.open <> 10
" . iif($threadid, " AND thread.threadid <> $threadid") . "
$hook_query_where
LIMIT 10
");
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.