vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is there a way to increase the number of similar threads? (https://vborg.vbsupport.ru/showthread.php?t=147474)

YLP1 05-17-2007 07:10 PM

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.

YLP1 05-21-2007 01:15 PM

Quote:

Originally Posted by Dismounted (Post 1250127)
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
");


All times are GMT. The time now is 03:00 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.00919 seconds
  • Memory Usage 1,712KB
  • 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
  • (5)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