View Full Version : How to exclude a forum or user from searches? RSS
|oR|Greg
09-13-2006, 08:35 PM
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...$_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
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.
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
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?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.