At the wordpress form, when you leave comment as guest, there's a website field to fill your web address. If we fill in that box, we can get the link by calling this function
<?php echo get_comment_author_link(); ?>
But if you are logged in and you don't add the website at your profile, when you leave comment. It doesn't have the link on your username.
What I want is, if the logged-in user doesn't have the website, there will be the link which will be carry them to their profile page which is something like http://www.example.com?author=21
Is there any function that i can use out there ? Please help me out. Thank you.