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

Reply
 
Thread Tools
Invalid (Too Short) Search Keyword Remover Details »»
Invalid (Too Short) Search Keyword Remover
Version: 1.0.1, by Analogpoint Analogpoint is offline
Developer Last Online: Dec 2007 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.6.x Rating:
Released: 09-05-2007 Last Update: 09-06-2007 Installs: 54
Uses Plugins Template Edits
 
No support by the author.

Please remember to click Mark as Installed if you use this modification.

This product removes keywords that are too short and allows a forum search to continue with the remaining valid keywords.

Normally, if the user searches for a word or words that are shorter than the minimum word length, the search crashes and burns with a not-so-user-friendly warning that they need to enter longer keywords. How is the user supposed to know that instead of searching for "racetrack in phoenix" they must leave out the "in" for it to work? This mod allows the user to search for "racetrack in phoenix" and the word "in" is automatically removed and a note is displayed telling the user what was done.

Features
  • Removes search terms (keywords) that are shorter than the value set in vB Options -> Message Searching Options -> Search Index Minimum Word Length
  • Does not remove the "whitelisted" words that are shorter than the minimum length. The whitelist can be found at vB Options -> Message Searching Options (vB Internal Search) -> Words to be Included Despite Character Limit
  • Respects the vB built-in search operators AND OR NOT -AND -OR -NOT (does not remove them)
  • Displays a friendly note that the invalid (short) terms were removed from the search, and allows the search to go on.
  • You may fully customize how the message is displayed in the templates
  • This mod is fully phrased, so you can modify the wording of the message and/or translate them by searching in the phrases.
  • No template modifications are necessary to install this.
Installation
  1. Extract the XML file from the zip file and import it via ACP -> Manage Products -> Add/Import Product
  2. Tell all your members to stop worrying about searching for words that are too short.
Upgrading
  • Upgrading is simple. Simply download the new version and import the XML file overwriting the previous version.
Changes that it makes
  • This mod adds a template (search_invalid_keywords) for displaying the message to users.
  • Adds a couple of phrases
  • Adds three plugins that do the work.
Modifying the message that is displayed

You can modify the message by changing the phrases (do a phrase search for the text of the messages) and by changing the template. The template to change is called search_invalid_keywords.

I hope you enjoy this mod. If you have any problems with it, or feature requests, just let me know.

Requirements

I tested this in the following configuration, but this should probably work with vB 3.6.x and up, and PHP 4.1.x and up.
  • vB 3.6.8
  • PHP 4.4.7
  • Apache 1.3.37
  • Linux
History
  • v 1.0.1 Bug fix. (Sept. 7, 2007)
    • Code is now only executed if the user did a search by keyword. It's ignored if they only searched by username etc. (Thanks momo2)
  • v 1.0.0 Initial Release (Sept. 5, 2007)
Similar Mods

Continue Search by Dismounted works pretty much the same as this mod. Maybe even better. Unfortunately, I found out about it after creating mine.

Screenshots

Screenshots are attached below. (1) The first one is an example of the regular vB error message when you search for words that are too short. (2) The second one is the result of searching for "crash in the burn". "in" and "the" are removed, and the search continues with "crash" and "burn". (3) The third screenshot is the message that's displayed when there are no results to the search. The search terms were "cash in the cow, man".

Supporters / CoAuthors

Show Your Support

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

Comments
  #22  
Old 09-07-2007, 09:19 PM
pspmaster93 pspmaster93 is offline
 
Join Date: Aug 2007
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Analogpoint View Post
Feel free to nominate it if you want
I already did
Reply With Quote
  #23  
Old 09-08-2007, 06:37 PM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pspmaster93 View Post
I already did
Appreciate it.
Reply With Quote
  #24  
Old 09-12-2007, 02:09 PM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much, now it works great.............................. you are the best mate !!!!

This mod works great with cyb hack
https://vborg.vbsupport.ru/showthread.php?t=122990
Reply With Quote
  #25  
Old 09-30-2007, 08:03 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this...installed...
Reply With Quote
  #26  
Old 09-30-2007, 12:51 PM
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
Location: London, UK
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one. A must have for anyone using vbulletin
Reply With Quote
  #27  
Old 09-30-2007, 05:43 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me clicks installed
Reply With Quote
  #28  
Old 09-30-2007, 05:55 PM
PurpleButterfly's Avatar
PurpleButterfly PurpleButterfly is offline
 
Join Date: Sep 2007
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another wonderfully easy and helpful mod - thanks so much! Clicked installed, voted and nominated! *smooch*
Reply With Quote
  #29  
Old 10-13-2007, 02:49 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea, should be a default function. Thanks!
Reply With Quote
  #30  
Old 10-14-2007, 02:13 PM
lkforum lkforum is offline
 
Join Date: Sep 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not work with my forum . I have a Vietnamese forum with utf-8
Reply With Quote
  #31  
Old 10-15-2007, 07:29 PM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lkforum View Post
Not work with my forum . I have a Vietnamese forum with utf-8
What exactly happens?
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 12: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.04550 seconds
  • Memory Usage 2,310KB
  • Queries Executed 26 (?)
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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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