PDA

View Full Version : How to Exclude forums from Similar Threads?


fer_75
08-04-2009, 10:02 AM
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 1249383987 at 1249383987 ---------------

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 (https://vborg.vbsupport.ru/forumdisplay.php?f=30)

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
$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.