Thanks, this post did help me. I wish there was a way to do this in a plug-in... There just aren't enough hooks to do it though.
To get the search working, you need to find the block of code starting with the IF statement:
Code:
if ($vbulletin->GPC['ausername'])
.
When a quick search is done, the field 'ausername' contains the search string. All you need to do is update the condition variable to search fieldX rather than username.
Code:
if ($vbulletin->GPC['ausername'])
{
if($sortfield == 'lastname')
{
$condition .= " AND userfield.fieldX LIKE '%" . $db->escape_string_like(htmlspecialchars_uni($vbulletin->GPC['ausername'])) . "%' ";
}
else
{
$condition .= " AND username LIKE '%" . $db->escape_string_like(htmlspecialchars_uni($vbulletin->GPC['ausername'])) . "%' ";
}
}
Note that I wrote this using vb 3.8.3.