PDA

View Full Version : Show more similar threads


Justas
11-08-2011, 06:49 PM
vB4 indicates 5 similar threads in every thread. I want to show more similar threads. In Vb3 we could point the q-ty in functions_search.php. How can I increase it in vB4? Please advise.

kh99
11-08-2011, 09:48 PM
It looks like in packages\vbdbsearch\coresearchcontroller.php around line 157 is this:

$threads = $vbulletin->db->query_read_slave("
SELECT searchgroup.groupid, MATCH(searchgroup_text.title) AGAINST ('$safetitle') AS score
FROM " . TABLE_PREFIX . "searchgroup AS searchgroup JOIN " . TABLE_PREFIX . "searchgroup_text AS searchgroup_text ON
(searchgroup.searchgroupid = searchgroup_text.searchgroupid)
$hook_query_joins
WHERE MATCH(searchgroup_text.title) AGAINST ('$safetitle') AND
searchgroup.contenttypeid = $contenttypeid
" . ($threadid ? " AND searchgroup.groupid <> $threadid" : "") . "
$hook_query_where
HAVING score > 4
LIMIT 5
");


So maybe if you increased the limit and/or lowered the score you'd get more.

Justas
11-09-2011, 08:45 AM
It works. Thanks.