Quote:
Originally Posted by Natch
...Now to have it based on the membername, you would need to do a little on-the-fly manipulation of that .htaccess file: this is dangerous, as a bug in your .htaccess can make your site unviewable...
This said, it is doable to have a cached htaccess that is updated via a daily cron job based on the userlist, but it would make for high server overhead having a N-line htaccess file where N in the number of members you have...
|
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