WordPress.org

Ready to get started?Download WordPress

Forums

Gravatar support (20 posts)

  1. matthew
    Member
    Posted 9 years ago #

    http://www.gravatar.com/
    I think WordPress should support this. It's a cool idea.

  2. KyleGM
    Member
    Posted 9 years ago #

    Err... the wordpress plugin it's already there.

  3. optimystic
    Member
    Posted 9 years ago #

    Yes. Gravatar support is already available in WordPress and I can vouch that it works too!

  4. Puck
    Member
    Posted 9 years ago #

    It works, but making them display properly requires hacking around with the PHP. Bleah.
    If anyone has a simple way of adding it to comments, I'd love to know. I had to make do with a small table because of the IE display bug (I had it float: left, but then the icon didn't show up, even though it was there and could be clicked).

  5. Root
    Member
    Posted 9 years ago #

    There was an implementation bug in IE ? Surely not :)

  6. optimystic
    Member
    Posted 9 years ago #

    tables? ... arghhh ... no tables please!! ;-)
    and it does not require any more PHP hacking than any other plugins. just upload the file to the plugins directory and activate the plugin. then add <img src="<?php gravatar() ?>" alt="" /> in wp-comments.php wherever you want the gravatar to appear. thats it!
    surely simpler than adding tables! :-)

  7. Anonymous
    Unregistered
    Posted 9 years ago #

    I know this is going to sound very stupid.. but where do I put that in the wp-comments to show up next to the comment??? I'm totally new to php and I know I should be ashamed, but anyone?

  8. Anonymous
    Unregistered
    Posted 9 years ago #

    bump :)

  9. stephanie
    Member
    Posted 9 years ago #

    Also new to php...do I need to do something to the php file after uploading it to make things work, or do I just insert the above into the comment area. I feel like just inserting is wrong. I thought that it will identify peoples gravatars from their email addresses...am I totally off here? :-)

  10. stephanie
    Member
    Posted 9 years ago #

    ok, ignore my post above...note to self...if all else fails, read more carefully! :-) Still unsure where to place script in the comment.php. Will try things, but if anyone knows, it would save a lot of trial and error! :-)

  11. Anonymous
    Unregistered
    Posted 9 years ago #

    This is where I have mine, scroll down and find these lines
    <cite><?php comment_type(); ?> <?php _e("by"); ?> <img src="<?php gravatar("R", 15); ?>" alt="gravatar" /> <?php comment_author_link() ?> — <?php comment_date() ?> @ "><?php comment_time() ?></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?>


  12. This will place the gravatar right before the person's name in the comments.

  • Anonymous
    Unregistered
    Posted 9 years ago #

    Shown in the comments section on my page:
    http://cariadsrealm.net/journal/index.php?p=901#comments

  • idowens
    Member
    Posted 9 years ago #

    This was a really old post, but I found it very helpful as I was trying to implement this plugin on my comments page...Much thanks to Cariad for the code help! Chk out any comments at http://www.idowens.com to see this in action. (Of course, until my sites visitors choose their own avatar at http://www.gravatar.com it'll show the default on I've set it to.)

  • Anonymous
    Unregistered
    Posted 9 years ago #

    That to me was part of the downside of using gravatars. In order to have a unique gravatar, the site visitor would have to elect to signup and submit their personal gravatar and have it "okayed" by the gods that be. I did signup; created, submitted and had approved my own gravatar. Not sure how many casual readers would do that though.
    The cool thing is that regardless of what blog you comment on, if they are using gravatars, it pulls in your personal gravatar.

  • vsa
    Member
    Posted 9 years ago #

    My implementation of Gravatar on http://vitorazevedo.com/index.php?p=249
    please leave your comment to see how avatars look like!
    thanks!

  • penandmouse
    Member
    Posted 9 years ago #

    i know what you mean. i figured out how to right align the gravatar icons. at least on my site it works. to see my example, click here. i put this code in my comments.php file...
    on approx line 30 right after:
    ">
    I inserted:
    <img src="<?php gravatar("R", 40, "http://www.reinhardt.ws/wp-uploads/default.png", "000000"); ?>" alt="upload your avatar at gravatar.com!" align="right" class="gravatar" />

    I found that the "align right" is the key. Hope this helps.

  • Paolo
    Member
    Posted 9 years ago #

    Thanks very much for the tip!

  • Anonymous
    Unregistered
    Posted 9 years ago #

    Am I the only one having problems with the gravatars not resizing? I have it set to 40 but they still show up as 80x80.

  • Anonymous
    Unregistered
    Posted 9 years ago #

    argh..it was just my default graphic that was not resizing. sorry

  • 7milesdown
    Member
    Posted 9 years ago #

    Grrrr. this is not working for me! I using 1.5 of wordpress. I just keep getting parse errors on line 16 of the wp-comment-post.php file. Im not sure where to put this thing to stop the errors.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.