Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Invalid (Too Short) Search Keyword Remover Details »
Invalid (Too Short) Search Keyword Remover
Mod Version: 1.0.1, by Analogpoint (Member) Analogpoint is offline
Developer Last Online: Dec 2007 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.x Rating: (4 votes - 3.50 average) Installs: 53
Released: 06 Sep 2007 Last Update: 07 Sep 2007 Downloads: 203
Not Supported Uses Plugins Template Edits  

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".

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	crash and burn.PNG
Views:	332
Size:	16.9 KB
ID:	69495   Click image for larger version

Name:	message.jpg
Views:	321
Size:	33.9 KB
ID:	69496   Click image for larger version

Name:	results.jpg
Views:	310
Size:	46.7 KB
ID:	69497  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements Google search from profile keyword in postbit NetRover vBulletin 3.7 Template Modifications 6 07 Nov 2015 20:17

Comments
  #2  
Old 06 Sep 2007, 05:38
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
*reserved for updates*
__________________
My vBulletin Modifications.
Reply With Quote
  #3  
Old 06 Sep 2007, 05:40
momo2 momo2 is offline
 
Join Date: Feb 2007
Thanks..
Reply With Quote
  #4  
Old 06 Sep 2007, 05:44
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Originally Posted by momo2 View Post
Thanks..
You're welcome. Let me know how it works for you.
__________________
My vBulletin Modifications.
Reply With Quote
  #5  
Old 06 Sep 2007, 09:00
Ba$im Ba$im is offline
 
Join Date: Apr 2007
Real name: Basim
work with me
I have arabic forum with utf-8

thanks
__________________
3walim soft news arcade
Reply With Quote
  #6  
Old 06 Sep 2007, 15:06
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
I think dismounted released this already, not sure if his is different or not, either way, thanks for sharing.
Reply With Quote
  #7  
Old 06 Sep 2007, 16:04
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Originally Posted by hornstar1337 View Post
I think dismounted released this already, not sure if his is different or not, either way, thanks for sharing.
Thanks hornstar, I just added a note about "similar mods" in the original post.
__________________
My vBulletin Modifications.
Reply With Quote
  #8  
Old 06 Sep 2007, 16:39
momo2 momo2 is offline
 
Join Date: Feb 2007
Tested on 3.68 huge forum, and does work... Congrads..
Reply With Quote
  #9  
Old 06 Sep 2007, 21:02
telc's Avatar
telc telc is offline
 
Join Date: Dec 2001
nice add-on
Reply With Quote
  #10  
Old 06 Sep 2007, 21:34
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
nice

/me installs
__________________

Love and support one another #vote2020
I offer Managed IT Services in Kansas
Reply With Quote
  #11  
Old 06 Sep 2007, 23:17
Axel Foley's Avatar
Axel Foley Axel Foley is offline
 
Join Date: Nov 2001
I just uninstalled Dismounted's version...I like the fact that a message is given to the user.

It's working fine...good job...
Reply With Quote
  #12  
Old 06 Sep 2007, 23:25
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
I almost forgot about this, just uploaded it and everything works great

Thanks
__________________

Love and support one another #vote2020
I offer Managed IT Services in Kansas
Reply With Quote
  #13  
Old 06 Sep 2007, 23:33
pspmaster93 pspmaster93 is offline
 
Join Date: Aug 2007
Real name: James
NICE WORK!!!!!!!!!!!!!!!
My members always said the search thing doesnt work and id always say it has to be 4 letters/... THAT SEARCH WORD LIMIT EVEN ANNOYED ME!
THIS SHOULD SERIOUSLY BE Mod Of The Month IT makes everything so much easier searching for!!!
Reply With Quote
  #14  
Old 07 Sep 2007, 12:10
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Installed....

Thanks ...

Very nice....

Now, if I could only figure out how to change the MySql setting to 3 after I change the AdminCP setting to 3 to match, I'd be all set. Even though I change the AdminCP search setting to 3, the system still keeps Full Search checking at 4 characters.

Regards,
Badger
Reply With Quote
  #15  
Old 07 Sep 2007, 17:21
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Originally Posted by BadgerDog View Post
Installed....

Thanks ...

Very nice....

Now, if I could only figure out how to change the MySql setting to 3 after I change the AdminCP setting to 3 to match, I'd be all set. Even though I change the AdminCP search setting to 3, the system still keeps Full Search checking at 4 characters.

Regards,
Badger
Thanks Badger. The minimum word length in the ACP settings is for if you're using vB's build-in search engine. If you're using the MySQL fulltext search, then that setting doesn't apply. If you're running your own server, I believe you can re-compile MySQL with a lower limit for the Fulltext search. I can't remember if you have to recompile MySQL or if you can just change it in the config file.

And to all the rest of you who have installed this, thanks! Be sure to let me know if you see something that goes wrong or you think of some other feature that it should have.

Originally Posted by pspmaster93
THIS SHOULD SERIOUSLY BE Mod Of The Month IT makes everything so much easier searching for!!!
Feel free to nominate it if you want
__________________
My vBulletin Modifications.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 16:48.

Layout Options | Width: Wide Color: