PDA

View Full Version : Board Optimization - Exclude service forums from "New Posts" Search


FractalizeR
06-08-2008, 10:00 PM
Several users on my forum complaining, that when they click "New Posts" link on navbar, they get their search results jammed with posts from "User Infraction Discussion Forum" and from "Post Reporting Discussion Forum". So, I written a small mod to exclude these service forums from "New Posts" results.

Forum ids to exclude are taken from VBulletin settings (VBulletin options -> User Infractions & Post Reporting Options)

Please note:

Permission adjustments on mentioned service forums to hide them from search may not always be desired as users MUST HAVE a right to prove their innocence in those forum and discuss/review existing cases of other users. That's why this small hack was written.
Turning off "Index New Posts in Search Engine" in forum settings DOES NOT hide threads in that forum from "New Posts" link on navbar. That's why this small hack was written.

KURTZ
06-09-2008, 01:26 PM
what you mean with 'vbulletin settings'?

Boofo
06-09-2008, 01:28 PM
Those areas should be staff areas and regulars users shouldn't have access to them.

Ideal Web Tech
06-09-2008, 01:30 PM
Yes if your users are seeing those results in the search results then you do not have permissions setup properly on those forums which should be restricted down to specific usergroup's such as the administrators group for example.

FractalizeR
06-09-2008, 01:55 PM
Users must have a permission to view and post in those forums. Why shouldn't they? We discuss their violation of forum rules there and they must be given a chance to protect their innocence.

But having posts from these subforums in search results is not always good...

Ideal Web Tech
06-09-2008, 01:58 PM
Still your permissions aren't right as there is no need for a mod for this. Even if you want the forum public theres another permission setting in the forum manager for each forum.

Index New Posts in Search Engine (Setting this to 'No' will prevent anyone from being able to search in this forum)

That setting right there will keep the posts out of the search indexer.

jim6763nva
06-09-2008, 03:03 PM
Index New Posts in Search Engine (Setting this to 'No' will prevent anyone from being able to search in this forum)

That setting right there will keep the posts out of the search indexer.

Ideal, Thanks for posting this. I learned something today. :)

FractalizeR
06-09-2008, 03:06 PM
Index New Posts in Search Engine (Setting this to 'No' will prevent anyone from being able to search in this forum)
That setting right there will keep the posts out of the search indexer.
Yes, but that doesn't get your posts invisible when you use "New Posts" link in navbar (it leads to /search.php?do=getnew)

Milad
06-09-2008, 11:14 PM
Yes, but that doesn't get your posts invisible when you use "New Posts" link in navbar (it leads to /search.php?do=getnew)
It does, really.

Try it.

SCRIPT3R
06-09-2008, 11:57 PM
As said previously, there is no need for this mod.

FractalizeR
06-10-2008, 09:25 AM
2Milad:
Actually, I tried... May be I need to rebuild forum index for that. I will try to.

Koroku
06-12-2008, 12:36 AM
This would be great if it could be changed so that users can decide to hide any forum ids from the New Posts. :D

Wired1
06-12-2008, 12:49 AM
This would be great if it could be changed so that users can decide to hide any forum ids from the New Posts. :D

There's already ways to do that. Can't remember at the moment, but you can add a var and exclude IDs to the search.php?do=getnew line.

BANDiT600
07-14-2008, 09:25 AM
Wired1, you don't need it, because you can exclude some forums from search in vbulletin settings, where is forum permissions. ;) So, as somebody said there's no need for this mod. ;) FractalizeR, sorry for that, but that's the true.

Halarkin
07-21-2008, 11:24 AM
I installed this, but I tweaked it to exclude a self-defined list of forums instead of just the specified ones.

txspaderz
08-22-2008, 06:51 AM
Worked for me, installed...
Milad, I had your way setup for a few weeks, and it just doesn't work for me.

sross
08-24-2008, 10:54 PM
I installed this, but I tweaked it to exclude a self-defined list of forums instead of just the specified ones.

Could you tell me exactly what you did? I'm not a coder and could really use this, thanks!

vithorius
10-15-2008, 03:00 PM
Yes, but that doesn't get your posts invisible when you use "New Posts" link in navbar (it leads to /search.php?do=getnew)

It does, really.

Try it.

I see that this Mod is quite something (for good and for bad...) :p


I would like to have something like this working on my Forum, but with some differences:

I do have the 'services' forums on the 'Backstage' of my board, so only staff will be able to read it. But what I need is a way to avoid two of my all public forums to get new messages on the /search.php?do=getnew button.


How do I do it? :confused:



Thank you! :up: :up:

Smitty
11-18-2008, 10:57 PM
Still your permissions aren't right as there is no need for a mod for this. Even if you want the forum public theres another permission setting in the forum manager for each forum.

Index New Posts in Search Engine (Setting this to 'No' will prevent anyone from being able to search in this forum)

That setting right there will keep the posts out of the search indexer. I don't think this works if you use FULLTEXT search. I haven't tied this, but I did try to keep posts in a specific forum from showing up in GETNEW and other 'last post' listings and the forum permissions (Do Not Index) didn't (doesn't) stop new posts in that forum from showing.

Augustito
12-11-2008, 08:50 PM
www. yoursite.com/forum/search.php?do=getnew&exclude=1,2,3,4,5(forum id)

the most simple option for exclude some forums in a "new post"

read this

https://vborg.vbsupport.ru/showthread.php?t=136235&highlight=exclude+new+post+search

Tettinntil
03-17-2010, 03:17 PM
I installed this, but I tweaked it to exclude a self-defined list of forums instead of just the specified ones.
I would very much like to know how to do this!!

PGP
06-03-2011, 05:17 PM
Good day, Vlad ;)
Could you please add one variable? To add more custom forums to exclude from "New posts" search?

rtburk
01-29-2014, 09:11 PM
Is this compatible with VB 3.7.4? And what if it is not a service forum but a forum I use for news feeds set up by rss feed that I do not want included in new poets but do want members to see them on the board? Will it work for this?

ozzy47
01-29-2014, 09:18 PM
Is this compatible with VB 3.7.4? And what if it is not a service forum but a forum I use for news feeds set up by rss feed that I do not want included in new poets but do want members to see them on the board? Will it work for this?

Try this mod, https://vborg.vbsupport.ru/showthread.php?t=305979

rtburk
01-30-2014, 03:39 AM
It worked well. Thank you!