PDA

View Full Version : Search with automatic wildcard???


pmquist
10-12-2011, 05:37 PM
I have tried to search for information about if it is possible to have an automatic addon of wildcards for the non-advanced search in vBulletin. What I mean is that i would like the not advanced search to always search for everything where the search phrase is included. Not an exact match.
I found some really old postings about this, but nothing that could help me out to solve the problem.
Is this an old issue that is solved and I just cant figure out how to do? Or is it something where there is an addon to buy? :confused:

Regards / PerOla

PaulAxure
10-26-2011, 08:31 PM
I want this too, where can I find the template? It's gotta be simple but I don't know where to add the * to in the templates.

studify
05-13-2013, 03:27 AM
Still interested? I made a "quick and dirty" fix for it:
DIR/vb/search/criteria.php

around Line 1120 replace

$words[] = array('word' => $token, 'joiner' => $token_joiner);

with

$words[] = array('word' => '*' . $token . '*', 'joiner' => $token_joiner);

This adds wildcards to every keyword token.