Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Exclude service forums from "New Posts" Search Details »»
Exclude service forums from "New Posts" Search
Version: 1.00, by FractalizeR FractalizeR is offline
Developer Last Online: Nov 2014 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.7.0 Rating:
Released: 06-08-2008 Last Update: 06-08-2008 Installs: 24
Uses Plugins Template Edits
Re-useable Code Translations  
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-09-2008, 01:26 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what you mean with 'vbulletin settings'?
Reply With Quote
  #3  
Old 06-09-2008, 01:28 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those areas should be staff areas and regulars users shouldn't have access to them.
Reply With Quote
  #4  
Old 06-09-2008, 01:30 PM
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 06-09-2008, 01:55 PM
FractalizeR's Avatar
FractalizeR FractalizeR is offline
 
Join Date: Oct 2005
Location: Russia, Moscow
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #6  
Old 06-09-2008, 01:58 PM
Ideal Web Tech's Avatar
Ideal Web Tech Ideal Web Tech is offline
 
Join Date: Feb 2008
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 06-09-2008, 03:03 PM
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Location: Virginia
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ideal Web Tech View Post
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.
Reply With Quote
  #8  
Old 06-09-2008, 03:06 PM
FractalizeR's Avatar
FractalizeR FractalizeR is offline
 
Join Date: Oct 2005
Location: Russia, Moscow
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ideal Web Tech View Post
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)
Reply With Quote
  #9  
Old 06-09-2008, 11:14 PM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FractalizeR View Post
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.
Reply With Quote
  #10  
Old 06-09-2008, 11:57 PM
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
Posts: 1,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As said previously, there is no need for this mod.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06175 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete