vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I change the number of the similar threads (https://vborg.vbsupport.ru/showthread.php?t=169222)

jasculs 01-31-2008 04:40 AM

How can I change the number of the similar threads
 
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

Quote:

Originally Posted by jasculs (Post 1437102)
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

mosz 08-21-2008 08:13 AM

thx for this topic.. i use it and its work great :)

--------------- Added [DATE]1219315010[/DATE] at [TIME]1219315010[/TIME] ---------------

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


All times are GMT. The time now is 10:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00979 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete