I know how to get user information from user id, but how to get user id from username? I tried something like $userid(user) but no joy. I need this because I'm trying to add gravatrs to wp-useronline -plugin which has username implementation but not user email. If this is not possible, then is it possible to get user email from username?
Thanks in advance.