Display Gravatar
-
OK, i am trying to display a users gravatar on my site. If a user does not have a gravatar than i want to display the default image that it is showing now. What is happening is my gravatar is showing for all users. Here is the code i have so far:
< ? php global $userdata; get_currentuserinfo();echo($userdata->first_name);
echo ” “;
echo($userdata->last_name); ? >< ? php global $user_email;
get_currentuserinfo();
echo “<img src='”;
echo gravatar($user_email);
echo “‘ alt=” class=’gravatar’ width=’60’ height=’60’ ALIGN=LEFT />”;? >
Nickname:
< ? php global $userdata; get_currentuserinfo(); echo($userdata->user_login); ? >
< ? php global $user_email;Can anyone offer any help in this? I have been following and commenting on this
https://www.ads-software.com/support/topic/88090?replies=6
- The topic ‘Display Gravatar’ is closed to new replies.