Back to vBulletin Tips & Tricks

[How-TO vB 4] Force vB 4 search engine to find all keywords by default
by RedFoxy 05 Jun 2010

Hi all!
By default vBulletin 4 search all keywords but don't force that all keywords must be present, that gives back a really huge result, like if you search "vbulletin plugin search engine modification" you'll find ALL threads that contains one or more words in your search... That's bad for huge forums, and your users will ask for a search engine like vBulletin 3...

The only way for a user to find a topic that have ALL keywords is to add AND between all keywords like "vbulletin AND plugin AND search AND engine AND modification", but not all user have a good skin and know how to use it, they just type words waiting to have the right results...

To change that, I forced my vBulletin 4.0.3pl1 suite (but I suppose that it goes with all versions) find all keywords in every search, if a user want find more result he still can add "OR" between one or more keywords.

I use it without troubles on my website http://www.softairmania.it with great successful!

To force vBulletin 4 search engine to find all keywords you need to edit a file: vb/search/criteria.php

PAY ATTENTIONS!
You do that modification at your own risk!


Open: vb/search/criteria.php

Search for: (it's about at row 1003)
PHP Code:
                default:
                    
$phrase $word
Replace with:
PHP Code:
                default:
//                    $phrase = $word; 
Save & Close.

I hope that you enjoy it!

PS: Sorry for my bad english

Similar Mods

Administrative and Maintenance Tools Search Engine Optimized Keywords & Description per Forum vBulletin 3.8 Add-ons
Add Search Engine Optimized (SEO) Keywords & Description to each Forum vBulletin 3.5 Add-ons
Administrative and Maintenance Tools Add Search Engine Optimized Keywords & Description to each Forum vBulletin 3.7 Add-ons
Administrative and Maintenance Tools Add Search Engine Optimized Keywords & Description to each Forum vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024