vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Board Optimization - Exclude service forums from "New Posts" Search (https://vborg.vbsupport.ru/showthread.php?t=181992)

FractalizeR 06-08-2008 10:00 PM

Exclude service forums from "New Posts" Search
 
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

Quote:

Originally Posted by Ideal Web Tech (Post 1545011)
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

Quote:

Originally Posted by Ideal Web Tech (Post 1545011)
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

Quote:

Originally Posted by FractalizeR (Post 1545072)
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

Quote:

Originally Posted by Koroku (Post 1547167)
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

Quote:

Originally Posted by Halarkin (Post 1580511)
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

Quote:

Originally Posted by FractalizeR (Post 1545072)
Yes, but that doesn't get your posts invisible when you use "New Posts" link in navbar (it leads to /search.php?do=getnew)

Quote:

Originally Posted by Milad (Post 1545452)
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

Quote:

Originally Posted by Ideal Web Tech (Post 1545011)
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/showthrea...ew+post+search

Tettinntil 03-17-2010 03:17 PM

Quote:

Originally Posted by Halarkin (Post 1580511)
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

Quote:

Originally Posted by rtburk (Post 2477826)
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!


All times are GMT. The time now is 05:23 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.01205 seconds
  • Memory Usage 1,768KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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