![]() |
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? |
Forums and Moderators - Edit Forum - Set "Index New Posts in Search Engine" to No.
|
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.
|
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'; |
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... |
Quote:
Quote:
|
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 |
Quote:
|
Exactly what I need, thanks Kevin.
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|