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.


All times are GMT. The time now is 02:57 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.01803 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete