Re: bbpress info in wordpress?
I got to thinking… being that it renames the image to their usernames, I thought that the following might work, but it doesn’t…
<img src=”http://yourkahil.com/forum/avatars/<?php echo $strtolower($user->user_identity); ?>.jpg” alt=”avatar” />
Shouldn’t that work? I’m trying to get it to display the current username of the person visiting the site, provided they are logged in. If they aren’t logged in it shouldn’t display anything. Later I’d like to figure out how to do an if else statement so that if the visitor isn’t logged it, it will display a default image.