The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Wildcard (*) in every searches
Hi, all
Since my forum is for Thai people we have to use wildcard (*) for better search result because we are using two byte fonts. However, most of the members always forget to include wildcard (*) and end up complaints for poor search result. So, I was wondering whether it's possible to modify some files to including wildcard (*) for every searches. Any ideas? Thanks in advance. |
#2
|
||||
|
||||
edit search.php, find:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Thanks for reply.
I'll give it a try tonight. Thanks again. |
#4
|
|||
|
|||
Do you think this piece of code would allow for wildcard searches unless quotes are used? I haven't tried it and have never done any php programming, just some C. Feedback welcome before I starting hacking away...
Code:
if ((substr($query, 0, 1)!="*" && substr($query, 0, 1)!="\"")) { $query='*'.$query; } if ((substr($query, -1)!="*" && (substr($query, -1)!="\"")) { $query=$query.'*'; } |
#5
|
|||
|
|||
I tried the original suggestion on vb3, beta7 but couldn't find the same query line. I found one similar that looked like it was checking if there were any html codes in the query. I put the lines after that one, but still no results.
We really badly need auto wildcarding on our board. Any suggestions would be greatly appreciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|