The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show more similar threads
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.
|
#2
|
|||
|
|||
It looks like in packages\vbdbsearch\coresearchcontroller.php around line 157 is this:
Code:
$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. |
#3
|
|||
|
|||
It works. Thanks.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|