View Full Version : How can I change the number of the similar threads
jasculs
01-31-2008, 04:40 AM
I would like to change the number of the similar threads to a higher number, but I can't find out how to do it. I did a search here and I found 1 thread related but no solution. Also as far as I know it can not be done through the admincp.
Thanks for your replies
Jason
jasculs
02-02-2008, 01:53 AM
Anyone?
jasculs
02-05-2008, 02:59 AM
Hello, does anyone know how to do this?
Lynne
02-05-2008, 01:41 PM
This is done in the fetch_similar_threads function in functions_search.php . It is hard coded to 5. I would guess that if you don't mind a file edit, you can just go in and change it from "LIMIT 5" to "LIMIT 10" (or whatever). It looks like there are two queries in that function, so you will have to change the limit on both.
jasculs
02-06-2008, 12:04 AM
Thank you very much for the reply Lynne, would know you know by any chance where I can look in the database to change the limit for the similar threads. Thanks.
Lynne
02-06-2008, 02:33 AM
Thank you very much for the reply Lynne, would know you know by any chance where I can look in the database to change the limit for the similar threads. Thanks.
It's not in the database (that I know of), it's hard-coded in the functions_search.php file as I stated.
jasculs
02-06-2008, 02:54 AM
Thank you...sorry about the confusion...I always thought that a "query" had to do with the database...I found it...Thanks
thx for this topic.. i use it and its work great :)
--------------- Added 1219315010 at 1219315010 ---------------
update.. i find some error
after this changes some queris makes error :/
solution is changes in DB
tabele "thread"
column "similar" ( varchar(55) ) - its not enough long for 10 topic id
I change on varchar(100) and now its ok
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.