Forums

Gravatar Plugin No Result (20 posts)

  1. cleverclio
    Member
    Posted 4 years ago #

    I followed the instructions word for word for the gravatars plugin. While the options menu and plugins menus appear just right, my blog page is gravatarless. Its not that they are just in the wrong place, they just aren't there at all. Any ideas what may have happened?

  2. Cypher
    Member
    Posted 4 years ago #

    You have made the appropriate calls in your comments.php file or whatever you are using for your comments?

    Just installing/activating the plugin will get you the Admin option menus, but will not actually put the gravatars in your comments, until you make the call to the plugin.

    If you are using Skippy's Gravatar plugin (and it sounds like you are), you will have to make a call to "gravatars();" in your comments file.

    Regards

  3. cleverclio
    Member
    Posted 4 years ago #

    Yup, editted my comment.php according to the site's directions

  4. Cypher
    Member
    Posted 4 years ago #

    Do you even see your default gravatar?

    Also a link to your site would be good so that we can take a peek ourselves.

    I had gotten Skippy's plugin working, but reverted back to using the plugin that is availbale from the Gravatar website itself after I had issues with Skippy's version.

    Regards

  5. cleverclio
    Member
    Posted 4 years ago #

    the website is http://www.cleverclio.com. I can see my avatar in the options menu but not on the site. I think maybe my definitions (ie .gravatar) are entered wrong or something. Thanks you in advance for anyhelp you could give me.

  6. Cypher
    Member
    Posted 4 years ago #

    Did you intend your "avatar.jpg" to show up on every post or did that happen after you started playing with the Gravatar's??

    If that is indeed supposed to be your default avatar or your gravatar, then you've placed the Gravatar function call in the wrong location.

    I don't see any mention of the gravatar calls in the Comments section. Usually, there is a <img> tag with the class of GRAVATAR.

    Please paste your comments.php file into http://pastebin.com so that I can see what it looks like and help you debug this issue.

    Regards

  7. bk
    Member
    Posted 4 years ago #

    Cyper, could you take a look at mine, please.. Gravatars are not showing up.

    http://www.xeenat.com/wordpress/2005/07/04/testing-images/#comments

    http://pastebin.com/308086

    Thank you.

  8. bk
    Member
    Posted 4 years ago #

    This is what I put. Seems perfect.

    <img src="<?php gravatar("R", 50, "http://xeenat.com/gravatar.jpg","000000"); ?>" alt="Xeenat" align="right"/>

    Take a look at my comment page here

    I inserted it after <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">. I'm using the Kubrick template.

    Can someone tell me if I'm doing everything right, please?

  9. richards1052
    Member
    Posted 4 years ago #

    I too had problems using skippy's plugin instructions for displaying the gravatar housed at your own site. At first it was not displaying at all & then it displayed in every single comment on my blog.

    I reverted to calling my gravatar from the gravatar.com site rather than from the image on my own site. That caused the image to display properly. So if you're linking to the gravatar on your own site I'd try linking instead to your image at the gravatar site.

  10. bk
    Member
    Posted 4 years ago #

    I'm going to host a default gravatar on my website.

    Suppose "X" person didn't have a gravatar and later on he did. So will it automatically change the default gravatar hosted on my website to his own gravatar which is uploaded on Gravatar.com, once it get's accepted?

    I hope it's making sense... =/

  11. bk
    Member
    Posted 4 years ago #

    Also, how would I use mine? It should automatically replace it, right? o_O

  12. Cypher
    Member
    Posted 4 years ago #

    You provide a default gravatar for everyone to use as a "fall-back" option. Basically you send a query for a given email address to the gravatar.com site, if it has a gravatar associated with that email address, it will be returned to you, otherwise it will use the default gravatar you would have given as part of your query.

    The gravatar query is something along the lines of:


    http://www.gravatar.com/avatar.php? gravatar_id=279aa12c3326f87c460aa4f31d18a065
    &rating=R
    &size=40
    &default=http://www.somesite.com/someimage.jpg
    &border=FF0000

    This is all on one line of course. :) But, anyways, the "default" portion of the URL tells gravatar.com to return that image if it can't find a valid gravatar.

    So in your example, if person "X" didn't have a gravatar, you would display the default gravatar for them. The moment they get a gravatar, it will be automatically returned from gravatar.com without you having to do anything.

    I hope I make sense. ;)

    Regards

  13. bk
    Member
    Posted 4 years ago #

    Yes, I get it now. Thank you Cypher. =]

  14. bk
    Member
    Posted 4 years ago #

    One last question. Check here.

    The text is coming on top of the gravatar in the last comment. How to fix that?

    Thanks, in advance. :)

  15. Marc
    Member
    Posted 4 years ago #

    BK add this to your gravatar css


    margin: 5px 0px 10px 10px;

    Those margins translate to top, right side, bottom, left side of grav image. You can alter them to suit your own tastes.

  16. bk
    Member
    Posted 4 years ago #

    Thanks a lot Marc. :)

  17. sskhalsa
    Member
    Posted 4 years ago #

    how do other people, who comment on my blog, add their avatar ??

    do they have to use php code?

  18. bk
    Member
    Posted 4 years ago #

    sskhalsa: They have to sign-up for it at Gravatar.com.

  19. Marc
    Member
    Posted 4 years ago #

    Or better yet, place a function in your comments page that allows people to sign up via your blog.

    http://txfx.net/code/wordpress/gravatar-signup/

  20. bk
    Member
    Posted 4 years ago #

    That function was a great idea. But my page won't be valid because of that so I had to remove it. :(

Topic Closed

This topic has been closed to new replies.

About this Topic