vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - Invalid (Too Short) Search Keyword Remover (https://vborg.vbsupport.ru/showthread.php?t=157133)

Analogpoint 09-05-2007 10:00 PM

Invalid (Too Short) Search Keyword Remover
 
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".

Analogpoint 09-06-2007 03:38 AM

*reserved for updates*

momo2 09-06-2007 03:40 AM

Thanks..

Analogpoint 09-06-2007 03:44 AM

Quote:

Originally Posted by momo2 (Post 1333332)
Thanks..

You're welcome. Let me know how it works for you.

Ba$im 09-06-2007 07:00 AM

work with me
I have arabic forum with utf-8

thanks

Hornstar 09-06-2007 01:06 PM

I think dismounted released this already, not sure if his is different or not, either way, thanks for sharing.

Analogpoint 09-06-2007 02:04 PM

Quote:

Originally Posted by hornstar1337 (Post 1333561)
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.

momo2 09-06-2007 02:39 PM

Tested on 3.68 huge forum, and does work... Congrads..

telc 09-06-2007 07:02 PM

nice add-on

Brandon Sheley 09-06-2007 07:34 PM

nice :)

[high]* Brandon Sheley installs[/high]

Axel Foley 09-06-2007 09:17 PM

I just uninstalled Dismounted's version...I like the fact that a message is given to the user. ;)

It's working fine...good job...:)

Brandon Sheley 09-06-2007 09:25 PM

I almost forgot about this, just uploaded it and everything works great :)

Thanks

pspmaster93 09-06-2007 09:33 PM

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!!!

BadgerDog 09-07-2007 10:10 AM

Installed.... :up:

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

Analogpoint 09-07-2007 03:21 PM

Quote:

Originally Posted by BadgerDog (Post 1334137)
Installed.... :up:

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.

Quote:

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 :)

BadgerDog 09-07-2007 03:30 PM

Quote:

Originally Posted by Analogpoint (Post 1334297)
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 :)

Thanks..... that's what I thought... :up:

Regards,
Badger

momo2 09-07-2007 05:47 PM

Problem found.. When I press on member's threads it will take u to keyword short ... instead of taking u to all threads made by member...
Un installed .. fixed the problem, so, there is a bug... please check in to it..

Analogpoint 09-07-2007 06:01 PM

Quote:

Originally Posted by momo2 (Post 1334378)
Problem found.. When I press on member's threads it will take u to keyword short ... instead of taking u to all threads made by member...
Un installed .. fixed the problem, so, there is a bug... please check in to it..

Can you elaborate please? I'm not sure I understand you. On my forums, I just went to a member's profile page and clicked on "find all posts/threads started by this user" and it worked correctly. Please tell me exactly what problem you're having, and I'll fix it.

momo2 09-07-2007 06:39 PM

sure buddy, I'm using this https://vborg.vbsupport.ru/showthread.php?t=151844
so before i install urs, it worked fine and here is what i did...

Quote:

$vbphrase[posts]: $post[posts]

--------------------------------------
REPLACE it with:
--------------------------------------

$vbphrase[posts]: <a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow">$post[posts]</a> -- $vbphrase[threads]: <a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;e xactname=1&amp;searchuser=$post[username]" rel="nofollow">$post[threads]</a>
So ur mod and this will not work.. how ever i tried so many other way, but as soon i un install urs it worked fine..
let me know..

Analogpoint 09-07-2007 06:48 PM

Hi momo2, thanks for letting me know about this bug. I've fixed it and released version 1.0.1. Download it above and import the XML file, overwriting the previous version.

pspmaster93 09-07-2007 09:19 PM

Quote:

Originally Posted by Analogpoint (Post 1334297)
Feel free to nominate it if you want :)

I already did ;)

Analogpoint 09-08-2007 06:37 PM

Quote:

Originally Posted by pspmaster93 (Post 1334500)
I already did ;)

Appreciate it.

momo2 09-12-2007 02:09 PM

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

princeedward 09-30-2007 08:03 AM

thanks for this...installed... ;)

perfphysio 09-30-2007 12:51 PM

Nice one. A must have for anyone using vbulletin

DieselMinded 09-30-2007 05:43 PM

/me clicks installed

PurpleButterfly 09-30-2007 05:55 PM

Another wonderfully easy and helpful mod - thanks so much! :D Clicked installed, voted and nominated! *smooch*

FleaBag 10-13-2007 02:49 PM

Great idea, should be a default function. Thanks!

lkforum 10-14-2007 02:13 PM

Not work with my forum . I have a Vietnamese forum with utf-8

Analogpoint 10-15-2007 07:29 PM

Quote:

Originally Posted by lkforum (Post 1359747)
Not work with my forum . I have a Vietnamese forum with utf-8

What exactly happens?

lkforum 10-16-2007 01:04 PM

The following errors occurred with your search:Please specify some words or valid user names to search on. There were no matches for those that you specified.

Analogpoint 10-16-2007 07:58 PM

Quote:

Originally Posted by lkforum (Post 1361568)
The following errors occurred with your search:Please specify some words or valid user names to search on. There were no matches for those that you specified.

Could you PM me with your forum's URL and I'll see if I can deduce anything.

Dismounted 10-24-2007 08:01 AM

I'd like to correct you on your description of my modification, it actually does display a message to the user and it uses a standard vBulletin phrase along with using vBulletin's way of storing excluded words.

Analogpoint 10-24-2007 08:25 PM

Quote:

Originally Posted by Dismounted (Post 1367300)
I'd like to correct you on your description of my modification, it actually does display a message to the user and it uses a standard vBulletin phrase along with using vBulletin's way of storing excluded words.

Thanks. Actually this was one of the very first mods I made, and to be honest if I would have found yours before making this I never would have made it. :)

I encourage anyone who's considering installing this mod to consider Dismounted's Continue Search mod. It's as good if not better. :) To be completely unbiased, I'd actually call it the cleaner of the two.

Hornstar 05-08-2008 08:05 AM

Do I still need this installed if I have 3.7 installed anyone? or can I now uninstall it?

mad@Max 05-08-2008 09:21 AM

Very useful!
*Installed*


All times are GMT. The time now is 10:16 AM.

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.01281 seconds
  • Memory Usage 1,816KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (36)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