vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to exclude a forum or user from searches? RSS (https://vborg.vbsupport.ru/showthread.php?t=126547)

|oR|Greg 09-13-2006 08:35 PM

How to exclude a forum or user from searches? RSS
 
For the purpose of RSS feeds, I want to exclude a forum(s) or user from showing up when people search the forums or do a New Posts, etc.

How?

da420 09-13-2006 09:04 PM

Forums and Moderators - Edit Forum - Set "Index New Posts in Search Engine" to No.

|oR|Greg 09-14-2006 01:58 AM

I thought there was something else, because that isn't working for me. I have it set to no, and rebuilt the search index... the posts were still showing up.

KW802 09-14-2006 01:47 PM

Turning off that option will only suppress the forum threads from appearing when doing a "Search" function (eg: the drop-down box or Advanced Search), not when doing a New Posts command.

Try creating a new plugin with a hook location of "search_start" with the following command...
Code:

$_REQUEST['exclude'] .= ',17';
... and change the ',17' to be the forum IDs you want to suppress (eg: if more than one then it'd be ',1,2,3' and so on).

|oR|Greg 09-14-2006 02:13 PM

KW802, that worked, wow... that was so easy, I wish I knew more about the programming behind vB.

You should make this a product where people can exclude forums via the AdminCP...

KW802 09-14-2006 02:45 PM

Quote:

Originally Posted by |oR|Greg
KW802, that worked, wow... that was so easy, I wish I knew more about the programming behind vB.

No problem, glad it worked. I have a few forums on my site where I do the same thing (exclude it from New Posts, etc.). Don't worry, the more you play with vB the more you'll get the hang of it.

Quote:

Originally Posted by |oR|Greg
You should make this a product where people can exclude forums via the AdminCP...

I just wish it was a default option in the forum properties page to turn it off & on from searching. It'd be a nice feature.

|oR|Greg 09-15-2006 11:06 AM

Alright well, I'm about to make it a little more complex.

Can it be re-worked, so that instead of ignoring a whole forum(s)... it instead ignores threads IN those forums IF they don't have replies.

So like... if forums = (x,y,x) and thread replies = 0 ignore

Jayphen 09-20-2006 09:54 AM

Quote:

Originally Posted by |oR|Greg
Alright well, I'm about to make it a little more complex.

Can it be re-worked, so that instead of ignoring a whole forum(s)... it instead ignores threads IN those forums IF they don't have replies.

So like... if forums = (x,y,x) and thread replies = 0 ignore

That would be well wicked - I would appreciate an answer to this too!

Ramsesx 09-27-2006 05:49 PM

Exactly what I need, thanks Kevin.

smsmasters 09-30-2006 05:52 PM

Thanks, this worked great!

One more problem, the posts still appear in the "recent threads".

Any ideas how to exclude?


All times are GMT. The time now is 10:33 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.00970 seconds
  • Memory Usage 1,727KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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