Quote:
Originally Posted by memobug
Maybe a simpler way would be to use mod_rewrite as described above, but instead of the cron cached stuff, instead call the existing membersearch using the member name as an argument like this:
https://vborg.vbsupport.ru/memberlis...username=Natch
which will give you names like Natch. If you want names exactly matching Natch, you'd just need to hack memberlist.php slightly:
above
Code:
if ($ausername)
{
$condition .= " AND username LIKE '%" . addslashes_like(htmlspecialchars_uni($ausername)) . "%' ";
}
add
Code:
if ($myusername)
{
$condition .= " AND username = '" . "htmlspecialchars_uni($myusername)" . "' ";
}
and then change the link above to use myusername=Natch instead of ausername=Natch (UNTESTED)
Also: You've probably noticed that in the admin panel if you do a user search and there is only one result it goes right to that user. It shouldn't be too hard to get that to happen in memberlist.php too.
Regards,
Matt
|
I do like your idea Matt: nice lateral thinking

... this other method creates a new file, instead of modding a vB file: sometimes a hack-less method is preferable...