vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to Exclude forums from Similar Threads? (https://vborg.vbsupport.ru/showthread.php?t=220156)

fer_75 08-04-2009 10:02 AM

How to Exclude forums from Similar Threads?
 
Hi,

How can I Exclude forums from Similar Threads section?

If someone can just point me to the right file where this sql query is, I think it should be possible just adding to that query something like ... WHERE forum id <> x ...

Please any help will be appreciated.

Thanks

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

I just found this mod but is only for 3.6 :(

https://vborg.vbsupport.ru/showthread.php?t=167096

Lynne 08-04-2009 03:13 PM

Very often, mods from 3.6 will work fine in 3.8. Try it on your test site and see.

(If I recall correctly, that one just excludes listing threads from those forums. It doesn't stop it from grabbing threads from those forums when it first creates the similar threads list.)

fer_75 08-06-2009 08:01 AM

I am sorry, I did not found the Paid Mods forum, could you please provide the link here?

thanks.

Dismounted 08-06-2009 09:47 AM

Did you have a look at the modification you linked to, to see if it works?

As requested: Requests for Paid Services

Lynne 08-06-2009 02:08 PM

No need for paid mods, play with this (for fulltext searching only - I use a much more involved version on my site and it works - you will need to rebuild similar threads for it though):
hook_location - search_similarthreads_fulltext
PHP Code:

$hook_query_where .= " AND thread.forumid NOT IN ('x','y','z')"

I think I had to do it a bit differntly when we weren't using fulltext search, but I no longer have the code I used then.

fer_75 08-06-2009 07:15 PM

Hi

Thank you for both replies. Yes I already tried https://vborg.vbsupport.ru/showthread.php?t=167096 and it does not works on 3.8. I will try the solution from Lynne and I will let you know. Thanks.


All times are GMT. The time now is 03:54 PM.

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.01336 seconds
  • Memory Usage 1,720KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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