***CORRECTED***Hi,
Sorry for the delay, but my computer had a major accident,
still recovering, but I'm back...
In the end this was no big issue, just tested this on latest Osclass 3.5.3.
Add this at the very bottom of your theme functions.php (take care not to leave blank lines after this):
<?php
function cust_search_keyword_wildcard($params) {
if (@$params['sPattern']) {
$mSearch = Search::newInstance();
$query_elements = (array) json_decode($mSearch->toJson());
$query_elements['sPattern'] = str_replace(' ', '* ', $query_elements['sPattern']) . '*';
$mSearch->setJsonAlert($query_elements);
}
}
osc_add_hook('search_conditions', 'cust_search_keyword_wildcard', 10);
?>
Regards