• 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • You may just want to install the plugin. This one will give you gravatar, favicons, and built in icons as well.

    https://bluesome.net/post/2005/08/07/44/

    Thread Starter carnold

    (@carnold)

    Yea, i use that plugin but i want the gravatar in the sidebar, not on comments. It is working with this plugin on comments but i want users gravatars on the sidebar. Unless, you can also do this with this plugin? I only see where it does comment gravatars

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display Gravatar’ is closed to new replies.