Discussion & Support

This is where you can ask questions or leave feedback regarding the Gravatars2 plugin.

SUPPORT REQUIRES A DONATION

I am no longer giving support for this plugin without a donation — it’s becoming repetitive and not very rewarding. You can email me (kip @ this website’s hostname) with your question, and I can tell you what minimum donation amount is sufficient per the difficulty of the question. Note that this donation in no way obligates me to any contractual duties. It’s mostly a way to make sure that people have exhausted their own efforts at resolving their own problems before asking for my support.

If you find any bugs, please let me know so I can squish them. If you have never used Skippy’s Gravatars plugin, and you run into problems, please check out the questions and answers in his thread to answer common problems.

777 Responses to “Discussion & Support”

  1. Gravatar Kip

    Go to gravatar.com to get a gravatar. As people with gravatars leave comments on this page, we should hopefully see the efficiency of caching the gravatar images (as well as “no images” and even server errors). I have the options set so that this page only checks for a gravatar image the first time a new email address is used in a comment. After that, the system cron job refreshes the gravatars.

    SUPPORT REQUIRES A DONATION

    I am no longer giving support for this plugin without a donation — it’s becoming repetitive and not very rewarding. You can email me (kip @ this website’s hostname) with your question, and I can tell you what minimum donation amount is sufficient per the difficulty of the question. Note that this donation in no way obligates me to any contractual duties. It’s mostly a way to make sure that people have exhausted their own efforts at resolving their own problems before asking for my support.

    NOTE TO THOSE HAVING PROBLEMS WITH GRAVATARS2 PLUGIN ON THEIR SITE:

    If you don’t leave the URL / link to your site, I have no way of seeing what is going on, so helping you will be quite difficult and perhaps impossible. So, if you want me to help you, then you need to leave the URL / link to your site, and explain what the problem is, and have an example that I can see when I go to your site (e.g. a direct link to a comment not working, or whatever).

  2. Gravatar Christopher A. Wheeler

    This is a test to see if my gravatar shows up. It’s not working on my site.

  3. Gravatar Christopher A. Wheeler

    Update, it works in my post, but not in the comments.

  4. Gravatar Christopher A. Wheeler

    One further point of clarification: the “original” (http://www.gravatar.com/implement.php#section_2_2) plugin works. Both this plugin and skippy’s plugin only show the default gravatar.

    The theme I am using, 3K2, has gravatar support “built-in”, so I didn’t have to edit my comments file at all, but I guess it is only built to support the original plug. I’m not sure what I would have to edit to make it work with this plug. Here is the file: http://www.christopherawheeler.com/comments.txt

    Thanks.

  5. Gravatar Kip

    @Christopher A. Wheeler: I made a change to make the Gravatars2 plugin work with the Original WordPress Gravatar plugin syntax.  Your comments.php file was set up with that syntax, which isn’t (wasn’t) compatible w/ Gravatars2. Now, though, it will work. Note that the options you are passing in there, however (rating, size, default) are ignored, since those options are set in the Gravatar Options admin interface.

    So, re-download & unzip the files (into the root WordPress directory), delete your gravatar cache, and try it again. Let me know if it works.

  6. Gravatar Christopher A. Wheeler

    That is so awesome, it works. Now I have to figure out how I want to style it better.

    Thanks so much for your help.

  7. Gravatar Kip

    @Christopher A. Wheeler: I’m glad it’s working for you, now. Let me know if you ever have any ideas on how to make this plugin better.

  8. Gravatar Christopher A. Wheeler

    If I think of something I will for sure let you know. The only thing I wish I could do now is try and figure out a good way to put it where I want it.

  9. Gravatar Dean

    Can you tell me (or link me) how I would be able to use the Gravatars as icons for post authors?

  10. Gravatar Kip

    @Dean: Instead of $comment->comment_author_email, use $authordata->user_email as the parameter for gravatar_path (or gravatar, or wp_gravatar — whichever you are using currently — in your index.php and/or single.php and/or archive.php files. This won’t work with the gravatar.com WordPress plugin version — only this one or Skippy’s.

    Or… I may make this a feature in an upcoming release… stay tuned.

  11. Gravatar Dean

    OK, I don’t know how but somehow after installing your plugin I broke my blog. Nothing works - posts, comments, feed - nothing. I really regret not backing up my blog prior. :( Any ideas? Can I delete the Gravatars2 installation files safely in hopes of recovering my blog?

  12. Gravatar Kip

    @Dean - No worries… this plugin does not modify any core files, it only adds files. So, just remove the ./wp-content/plugins/gravatars2.php file and that will remove the plugin. Did you install or activiate anything else? Did you modify any template files (ie: comments.php)? I will email you to see if we can troubleshoot the problem, though. It’s most definitely a PHP problem — but with errors/warnings disabled, we can’t see what’s wrong without looking at the logs.

  13. Gravatar Kip

    UPDATE: I think I replicated the problem. Gravatars2-WPCron isn’t working on WP 1.5.1. I’m working on a fix now. In the meantime, you can remove that file: ./wp-content/plugins/gravatars2-wpcron.php

  14. Gravatar Kip

    BUG FIX: I found the problem with Gravatars2-WPCron not working on WP 1.51. New version released: 1.3.1b — download & reinstall (unzip into WordPress root directory)

  15. Gravatar Dean

    Oh sweet crap, you’re the man. My site’s not broken! Thanks! :D :D

    So I’ve reinstalled Gravatars2 and it seems to be working, but I’m finding it difficult to customize the way the Gravatars are formatted on my site. Kip, would you mind sharing your comments.php so us n00bs can use it as a guide?

    My personal gravatar is not working on my site for my old posts. I used a different email address when I signed up for a Gravatar than what’s in my WP profile and I don’t want to have to create another account, but I will if I must. Check it out here: http://deanish.com/music/pearl-jam-pearl-jam#comments . Also, the blank_gravatar.png image isn’t working at all. Thoughts?

  16. Gravatar Dean

    Nevermind about my personal gravatar - the comments remember the email address associated with the comment itself rather than the WP user, so I just had to edit each of my comments with my correct email address. Still don’t know about the blank_gravatar.png though - here’s the link (just so you can see that the image is valid): http://deanish.com/wp-content/gravatars/blank_gravatar.png

  17. Gravatar Dean

    Thanks for all of your help, Kip. :)

  18. Gravatar Kip

    You’re welcome, Dean. After we got your problem fixed, I made a minor fix to the plugin that makes sure the path for the default gravatar starts with a “/” (unless it’s a URL, of course). That should keep other people from running into the same problem.

  19. Gravatar Zer0

    very good

  20. Gravatar Matthias

    Works great, thanks a lot :)

  21. Gravatar Teddy

    Hey nice work! However I get the following error when I try add a local avatar on my blog:

    Warning: copy(): URL file-access is disabled in the server configuration in /home/site/blog/wp-content/plugins/gravatars2.php on line 145

    Warning: copy(http://www.linktosite.com/gallery/d/5789-1/IMG_0891.JPG): failed to open stream: no suitable wrapper could be found in /home/site/blog/wp-content/plugins/gravatars2.php on line 145

    Any insights would be much appreciated. Thank you.

  22. Gravatar Teddy

    Just to clarify. I’m using WordPress 2.0.2, on PHP 4.4.2; I’d like to use gravatar2 primarily for the local avatars since my blog is private.

  23. Gravatar Kip

    @Teddy: That error means you don’t have “allow_url_fopen” set to “On”. If you go to Options->Gravatars, you should see a message saying that. But, you are in luck… I’m actually about through with a modification that allows this to work without “allow_url_fopen” being On — which is a good thing for security-minded hosting providers. I should have the update no later than tomorrow.

  24. Gravatar Kip

    UPDATE: I’ve changed the code so that “allow_url_fopen” is no longer needed. After installing the new version, click “submit” in your Gravatar Options to set the default remote copy timeout.

  25. Gravatar Teddy

    Great! It’s working perfectly now. Thanks for all your hardwork. It’s much appreciated.

  26. Gravatar badkarma9000

    Hey Kip-

    I have author pages for all my users that have created posts on my site… Is there a way to “curauth” or whatever so that their gravatars show up on that author page, for each author?

    If so, that would be perfect… I don’t think there’s a single plugin out there capable of that.

    Eric

  27. Gravatar Kip

    @badkarma9000: I’d have to see how the author pages are set up to be sure, but if there is a php file that creates the author pages, and you can output the email address for the author, then just call the gravatar function and pass it the email address. If you manually create each page, then you can use the gravatar tag in the page (<gravatar email@domain.tld />).

  28. Gravatar badkarma9000

    That would work, except I’ve got a lot of users, so I need it to be automated…

    The normal php variables for author pages, to call author info, look like the following:

    About user_firstname; ?> user_lastname; ?>:

    user_description; ?>

    Contact Information:
    The Website - user_url;?>”>user_url;?>
    AIM Screenname - user_aim;?>
    MSN Screenname - user_msn;?>
    Yahoo Screenname - user_yim;?>

    Posts by user_firstname; ?> user_lastname; ?>:

  29. Gravatar badkarma9000

    Crap, sorry I’m a dummy and forgot php doesn’t work here… Someway I can pass you the PHP? E-mail or something?

    I’m at badkarma9000@cox.net

  30. Gravatar Kip

    @badkarma9000: Take a look here: http://codex.wordpress.org/Author_Templates
    There is a “user_email” field for the $curauth variable. Just add the gravatar tag where you want it, and pass it the “user_email” field (like I posted above, or using your own image tag output. This is outside the scope of the Gravatars2 plugin, though, so I’m afraid I can’t offer any more advice as I don’t use the “current author” tags that you are using.

  31. Gravatar badkarma9000

    Where would I pass the field in the tag?

    Without the carrot/question marks, I have:

    php if (function_exists(’gravatar’)) { gravatar_image_link(); }

  32. Gravatar badkarma9000

    Also, everything seems to be working fine, except its not reaching out and finding the gravatars via e-mail on the comments, even.

    In other words, despite me having a pic up at Gravatar, with a proper rating below what I mentioned in the options, my name still has the default gravatar next to it, not my real gravatar.

    I used the code I specified above in the comments.php page, too.

    Any ideas?

  33. Gravatar Kip

    What’s the URL to your site so I can see what the gravatars look like? Are you using Gravatars or Gravatars2 plugin? Your comments.php file should be set up as described here: http://zenpax.com/gravatars2/installation/ (for Gravatars2).

  34. Gravatar badkarma9000

    http://www.mediasignalonline.com

  35. Gravatar badkarma9000

    and im using gravatars 2

  36. Gravatar badkarma9000

    Actually, that’s weird… because my gravatar should be showing up here, too, and its not…

    Weird.

  37. Gravatar badkarma9000

    Ahhh… I think the problems I’m experiencing have to do with my cache?

    What settings should I use in the options for cache?

  38. Gravatar Kip

    @badkarma9000: The problem was that it had cached a “no image” (meaning when it had last checked, there was no gravatar associated w/ your email address). Now there is, and I manually refreshed the cache (after deleting your cached gravatar from my site). It would have re-checked after 1 day if I had not manually done it. On your site, when I checked it, it was not using cached gravatars, so yours was showing up in the comments. If you turn caching back on, go into Manage->Gravatar Cache & delete the gravatars & refresh the cache. That should pick up the latest gravatars associated /w the email addresses. Caching speeds things up (a LOT) so you want to cache if possible. But, that means that it may take your site a while to pick up changes made at gravatar.com (1 day for “no image” cached).

  39. Gravatar Kip

    @badkarma9000: Recommended settings can be restored by hitting “RESET” in the Gravatar Options. To pick up changes made at gravatar.com immediately, you’ll need to delete the cached gravatar in Manage -> Gravatar Cache. Also, be sure to read these instructions to set up cron if you can. If you set up Unix system cron, then set the “Automatic Cache Checking” to “Disabled”.

  40. Gravatar badkarma9000

    Thanks a ton Kip, that seems to have done the trick!

    Now on the author page, where would I enter the changes you listed above, in this line of code:

    php if (function_exists(’gravatar’)) { gravatar_image_link(); }

    Like, where would I put user_e-mail?

  41. Gravatar badkarma9000

    Also, Kip, when I did turn back on Caching, with the recommended settings, I deleted the cache and refreshed the cache, and now its not finding any gravatars.

    It’s like when caching is off, it finds them, but when caching is on it doesn’t.

  42. Gravatar Kip

    @badkarma9000: that function was made for comments, but you can override it by passing the email address as the first parameter. ie:
    <?php if (function_exists('gravatar')) { gravatar_image(USER_EMAIL); } ?>

    Note the “link” part I took out, because that pulled the URL from the comment. I’ll have to update that function later to allow overrides on the URL, too. In the meantime, if you want the link, you’ll have to wrap the gravatar_image in your own <a href=…> tags.

    Also, the “USER_EMAIL” part will need to be whatever function you are using to return the email address of the author.

  43. Gravatar Kip

    @badkarma9000: I just sent you an email.

  44. Gravatar Nick

    Works great for me. For some reason the download from gravatar.com didn’t work, but I found this one and it works perfectly. thanks :)

  45. Gravatar Scooter

    I have having the same issue that badkarma9000 was having. If I disable the cache, they work fine. Enabling the cache and I get default images (and not my default image - the one from gravatar.com (the question mark).

    Viewing the cache shows everyone there, but no one has a gravatar …

    Any ideas?

  46. Gravatar Scooter

    Never mind … seems to be working now. boggle …

  47. Gravatar Kip

    @Scooter: In the Gravatar Cache, if you see an “(E)” following the “NO GRAVATAR” title, that means there was an error retrieving the icon from gravatar.com. In testing, a 1 second timeout was sufficient for the initial check, and 5 seconds for retrieving the image, but that may need to be increased due to heavy loads on gravatar.com. So, in Gravatar Options, set “Remote Info Timeout” to 5, and “Remote Copy Timeout” to 10… increase if necessary. You can delete the cache, and then “Refresh” to have it recache the images from gravatar.com. If you still have “(E)”s on some, you can set the “Failure (Error)” cache time to “1″ (second), and keep clicking “Refresh” to try just those images again. Let me know how it works out — I may change the default “Remote Timeout(s)” in the next release, as gravatar.com seems to be timing out more these days.

  48. Gravatar Andy

    Way to go Kip! The plugin rocks!

  49. Gravatar Will

    Hey,

    Works great! Thanks a lot.

    Just one question….

    How the heck can I stop people from leaching all the cached gravatars.

    Like for example anyone can download:

    /wp-content/gravatars/local/AnotSoRandomNumber

    I’ve already blocked all popular image types of being leeched, but of course that is by extension. :(

    Any ideas?

    Thanks a lot,

    Will

  50. Gravatar Kip

    @Will: Did you use mod_rewrite to stop the leaching? If so, you can use the same thing, but instead of using the extension of the images, use the path to the gravatars in the rule.

    For example, if you have something like this:

    RewriteCond %{HTTP_REFERER} ^$ [OR]
    RewriteCond %{HTTP_REFERER} !^http://(.*)war59312\.com/.*$ [NC]
    RewriteRule .*\.([gif|jpe?g|png]+)$ - [NC,F]

    You can add/change that last rule to be: .*/wp-content/gravatars/local/.* - [NC,F]

    I can’t imagine people leaching your gravatars… that’s just crazy! :) Good luck. Glad you like the plugin.

  51. Gravatar Cola

    Hi Kip,
    thanks for the plugin. Some questions: How can I change the size of the gravatar showing up in my comments? I tried it in options - gravatars - default gravatar size but it didn’t change anything.
    Another problem is that my local gravatar doesn’t show up, hmmm…do you have any clue what I’m doing wrong?
    Must the email address at gravatar.com and the blog user email (=me) be the same?

  52. Gravatar Kip

    @Cola: Changing the gravatar size in the options will make the gravatar that is retrieved from gravatar.com the size you specify. It will not change 1) the sizes of the cached gravatars or 2) the size of the “default gravatar” (the “blank_gravatar.png”). You will need to delete & refresh the cache to get the new sizes from gravatar.com, and you will need to manually edit/create a new default gravatar to make it whatever size you want. If you are using a global avatar for yourself, then yes, you will need to use the same email address as registered with gravatar.com. Or register another one with gravatar.com. Or pay the $5 to associate multiple email addresses to the same gravatar image. Hope that helps. :)

  53. Gravatar Cola

    @Kip: Thanks a lot for your very quick and helpful answer! I followed your steps and it worked immediately; I have now a smaller image size :) But I still cannot see my local image though I already registered a second account on gravator.com. I think my gravatar there is not rated yet, can this be the “mistake”? But although I should see my local pic, shouldn’t I?

  54. Gravatar Kip

    @Cola: The email address you are using on here does not have a public gravatar yet (as you said, it may have not been rated yet). If that’s the same email address you are using on your site, you’ll just need to wait until it is rated. You can use a local gravatar by clicking on “My Account” and then “Gravatar”. It will show you on that page what gravatar is associated with your user.

  55. Gravatar Will

    Hey,

    Yeah I doubt it too, but I prefer to be pro active. ;)

    Not working though. Here is what I have at the moment:

    # Stop Leechers For Hotlinking Images And Files

    Options +FollowSymLinks

    RewriteEngine on
    RewriteCond %{REQUEST_URI} !(^/robots\.txt|/favicon\.ico|/sitemap\.xml)$
    RewriteCond %{HTTP_REFERER} !^http://(www.)?war59312.com(/)?.*$ [NC]
    RewriteRule .*\.(torrent|iso|gif|jpe?g|avi|css|doc|mid|mov|mp3|mp4|mpg|pdf|pps|ppt|ra|ram|
    swf|wav|wma|xml|png|cab|7z|cmd|txt|log|rar|zip|exe|js|ex_|dll|dl_|inf|in_|sys|sy_)$ - [F,NC]
    RewriteRule .*/wp-content/gravatars/local/.* - [F,NC]

    Thanks again,

    Will

  56. Gravatar Kip

    @Will: I don’t think your conditions will apply to your 2nd rewrite rule. I’m no mod_rewrite guru… For more help, check out:
    http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
    http://www.modrewrite.com/

  57. Gravatar Arturo

    hi kip, this is a VERY VERY beautiful plugin, and hour with your modifications finally works well on my blog!
    I wanted to know one what but, as I make to modify the dimensions of the avatar? to me it always remains 80×80.

    thanks and good work!!!

  58. Gravatar Kip

    @Arturo: It looks like you got it… but, just in case, see this comment.

  59. Gravatar Cola

    Hi Kip,
    too bad that your plugin is dependent on gravatars.com because my gravatar is still not rated and I didn’t know that it takes so long or if it even works. Is there another more reliable gravatar service that I could use together with your plugin?

  60. Gravatar Kip

    @Cola: You may want to post something on the gravatar.com forums. Also, while you are waiting for your gravatar to be rated, you can use a local gravatar (see my previous comment for details). There is no alternative to gravatar.com that I know of, but Tom (the gravatar.com admin) is working on improving the service.

  61. Gravatar Will

    Hey,

    All right thanks for the pointer.

    Will

  62. Gravatar schuen

    Nice plugin! Thanks!

  63. Gravatar Allen

    Hi,
    Great Works! I get the following error when I try add a local avatar on my blog, though:

    Warning: fopen(/home/theblog/public_html/wp-content/gravatars/local/496a6a658dd2e4f6cf903ec7ffe7258c): failed to open stream: Permission denied in /home/theblog/public_html/wp-content/plugins/gravatars2.php on line 379

    Warning: fclose(): supplied argument is not a valid stream resource in /home/theblog/public_html/wp-content/plugins/gravatars2.php on line 383

    Help would be appreciated. Thanks.

  64. Gravatar Kip

    @Allen: The web server needs write access to the ./wp-content/gravatars/* directories & files. Use chmod -R a+w <gravatar cache directory> to give everyone write access to the files & directories in your “<gravatar cache directory>”. Also, make sure that the “local” and “global” directories under the “gravatars” directory exist. They should if you unzipped the gravatars2.tar.gz file into your root WordPress directory. If you didn’t, you’ll need to create those files manually.

  65. Gravatar Allen

    Thanks. The local gravatars work now.

  66. Gravatar Marcus

    Can i have a directory with some images so when people that dont have gravatars and leave a comment they will have a random selected gravatar for them?
    On option i tried to put a path to a directory but it didnt work…

  67. Gravatar Will

    BTW just installed latest version and I had to delete all cache manually and then click the recache button. Before I did this, all local gravatars where showing up as red x.

    So if anyone else runs into this, that’s is all you have to do. :)

  68. Gravatar Will

    Hey,

    Also, I just noticed that cached gravatrs are 40px by 40px like they are suppose to be, since I have set Default gravatar size to 40x. But, blank_gravatar is always 80px by 80px. :( Could you please make this setting also for blank_gravatar ? That or could you please provide a blank_gravator of 40px by 40px. ;) I suck at grahpics…

    Thanks,

    Will

  69. Gravatar Will

    Whoops, sorry, just saw your reply above. Guess I need new glasses. Sorry!

  70. Gravatar Kip

    @Marcus: Yes, just specify a directory in the “Default gravatar image” box, like the 2nd example in the Gravatar Options. It must begin & end with a forward slash (”/”).

  71. Gravatar Marcus

    Kip, i just notice that i followe the options instructions before i posted the question here, but i forgot that i moved my blog to another directory and didnt type the name there. Doh! :D
    Now everything is cooooooollll. The plugin works great!!

  72. Gravatar ching

    Great Plugin!
    Thank you

  73. Gravatar caschy

    Great, using it now…

  74. Gravatar Bonnie

    Thank you! I thought for sure I’d messed up my blog theme for gravatars because no matter what I tried I couldn’t get them up and running. But your plugin works great.

  75. Gravatar matt

    Thank you very much for your efforts, this plugin works wonderfully.

  76. Gravatar Victor

    Hi, I’m not sure if this is working for me or not, I’m just getting the word “gravatar” next to my name. Maybe it’s got to cache first, i don’t have the wp-cron plugin installed, but i’ll probalby look into that. Hopefully it works within the next couple of days, unless you know I did something wrong. If you could, please let me know. Thanks…

  77. Gravatar Kip

    @Victor: Looks like it’s working now… I see the “blank gravatar” beside you name on your blog comments.

  78. Gravatar Victor

    I didn’t realize that the default gravatar’s location didn’t match my site. Thanks for the great plugin.

  79. Gravatar Jerry

    Actually, what’s the difference between Gravatar2 and wp_gravatar

  80. Gravatar Kip

    @Jerry: http://zenpax.com/gravatars2/
    - caching
    - local gravatars
    - admin interface
    - etc

  81. Gravatar Paul

    I’m unable to use a local gravatar. Every time I try to submit a path to the image, it returns a file not found. What format is the local image path supposed to be in?

    Would it be easier/better to use a file upload for local gravatars?

  82. Gravatar Kip

    @Paul: You need to place your local gravatar in the ./wp-content/gravatars/local/ directory, and then specify the filename (relative to that “local” directory). Or you can specify a remote url. I will probably add file upload in a later release.

  83. Gravatar Viper007Bond

    Great update to such an awesome plugin! Been using Skippy’s and I just upgraded to your’s. Took a little re-tweaking of my comments.php as I’m doing some custom stuff, but it appears to be all working now. :)

  84. Gravatar Viper007Bond

    Hmm, my cache page is taking a bit to load (I have quite a few comments) and I noticed that there’s a lotta inline CSS. May I suggest replacing it with CSS classes and then putting some CSS into the header via the admin_header hook? And making it only be inserted up there in the header when needed would be appreciated too. :)

  85. Gravatar Viper007Bond

    Haha, hi, it’s me again (sorry).

    I’ve noticed that some people’s gravatars are animated (example) however when they get cached by this plugin, they aren’t animated and are much smaller than the original (probably due to the lack of animation). Is this intended or is it a bug?

  86. Gravatar Kip

    @Viper007Bond: This plugin doesn’t insert any CSS at all. It outputs an image tag, with a “gravatar” class (so you can style it with your own external CSS file).

  87. Gravatar Kip

    @Viper007Bond: I will try to test it later with an animated image — or if someone could post theirs on here, that would be great. I don’t know any reason why caching it would keep it from working.

  88. Gravatar Kip

    @Viper007Bond: In regards to the animated images, it is a problem with gravatar.com resizing the images. Here is that same animated image you posted above, but resized by gravatar.com: (resized example) This is apparantly a known issue (gravatar forum).

  89. Gravatar Viper007Bond

    Ah, okay @ animations. Makes sense now. :)

    As for the CSS, I was referring to the admin area where you can view the Gravatar cache. Each cache item is in a div that has a style that says float: left, etc. ;)

  90. Gravatar Kip

    @Viper007Bond: Ah! Yeah, I haven’t changed that part much yet. Much improvement is needed in that area. Having all of them on one page is a big problem, also. I’ll probably use AJAX in that area in a future release. Thanks for the input.

  91. Gravatar Viper007Bond

    Ah, nice.

    Okay, well I’d like to request filtering by type (i.e. most of the time I don’t wanna see the people without Gravtars). Thanks. :)

  92. Gravatar Kip

    @Viper007Bond: Great idea. I’ll also allow sorting. It’s not been a big priority because most people probably will never even look at that screen — but for those that do, it needs a lot of work. :) Thanks for the feedback — if you think of anything else, just let me know.

  93. Gravatar i can´t fix bug 902

    I can´t fix bug 902.
    can you help me????
    thanks!!!

    company (@) panelista.com

  94. Gravatar Kip

    @i can’t fix bug 902: Skippy has instructions here. My recommendation is just to upgrade your Wordpress to 1.5.2 or later (preferably the latest release — 2.0.3 right now).

  95. Gravatar Jimmyleo

    I’m tring using it. Thank you!

  96. Gravatar ReDirEct__

    Hi.. i use 3k2 theme but when i open a single post in IE, i can’t see my gravatar image… in firefox work very well… i modified the comments.php template according to your gravatrs2 plugin…

  97. Gravatar Kip

    @ReDirEct__: It has something to do with your style sheet. When I disabled your styles in IE, the image shows up. I’m sorry I don’t have time to figure out exactly what is wrong, but hopefully that will give you enough help. If you figure out what it is, please post back here so other people using that theme can make it work also.

  98. Gravatar ReDirEct__

    i’m not sure that is a problem with stylesheet… because the default image it’s shown correctly… i forgot to say that the gravatar cache function don’t work with my host provider and i must load every gravatar remotely… i think it’s some other issue…

  99. Gravatar Kip

    @ReDirEct__: when I disabled your stylesheet, the image shows up. It’s probably not JUST a stylesheet issue — but it is definitely related. I noticed your default image is smaller — perhaps that is why it would show, but the other would not? What error(s) do you get that let you know the caching doesn’t work? There is now 2 ways to cache: fsockopen and cURL. If fsockopen isn’t working, try cURL (has to be installed, though). What OS platform is your site running on: Windows? Linux?

  100. Gravatar Kip

    @ReDirEct__: I just posted a test comment on your site, and my gravatar shows in IE. It is without a doubt a stylesheet issue.

    Regarding the caching, please let me know if you are getting any errors trying to cache, or what the problem is exactly. Also, what OS platform are you running on?

  101. Gravatar ReDirEct__

    My (free) hosting site dont specify what operating system they run… but it’s the fsockopen that it’s disabled by my provider… i don’t know how to use cURL… in any way i tried to put the images included in your plugin as defaut image but give me the same result… i noticed that the problem appears wht the comment text it’s long more than the avatar… i tried also to resize the avatar to the same size of the default gravatar my gravatar won’t to show…

  102. Gravatar Kip

    @ReDirEct__: How do you know fsockopen is disabled by your provider? Do you get an error? What is it? I just posted a long comment on your site, and the gravatar still shows up in IE. You are using a different style class for YOUR comment gravatar (as opposed to other people’s gravatars commenting on your site).

  103. Gravatar ReDirEct__

    Yes yes… i know.. but the only difference is the background color… i know about the fsockopen because a read about it on the forum of my provider internet site… i don’t know how to solve the IE problem… if you want, this is the theme internet site: http://aydin.net/blog/2006/03/23/three-column-k2-theme-for-wordpress-3k2/

    If you have the time you can see the comments.php and style.css… i really don’t know where it can be wrong… the only css rule for the different comment view change obly the background color…

  104. Gravatar Kip

    @ReDirEct__: Are you SURE it was fsockopen — not “fopen”?? I have not seen anyone disable fsockopen. Can you provide the url to the thread on the forum where your ISP says they have disabled fsockopen. I’d really like to see how they did it, and why.

    As per the IE problem, I’d suggest looking for the “authorcomment” style(s), and disable it(them). Re-add each style line one at a time, test with IE, until you find the culprit.

  105. Gravatar ReDirEct__

    oops… i think you are right.. it’s fopen… but… when i enable the cache the gravatars disappears…

    For the IE problem I will try that way

  106. Gravatar ReDirEct__

    ah.. it seems that i can’t write global directory (i chmoded to 777, also local grvatar directory)… when i enable cache all avatars are changed with the default gravatar image…

  107. Gravatar Kip

    @ReDirEct__: Use Manage->Gravatars in WP Admin to delete all cached gravatars, and then “Refresh” to download them again. If there is an “(E)” beside the name, that means there was a problem downloading them from gravatar.com.

  108. Gravatar ReDirEct__

    Yes there is an (E) beside the name… how can get cache to work?

  109. Gravatar Alex

    Hello Kip,

    I try to make the plugin work, but it doesn’t show a picture, just a link on the right side of the comment, what I’m doing wrong :(

    And where can I find an explanation of the options in the admin panel?

    I really appreciate your help

    Alex

  110. Gravatar Kip

    @Alex: You need to set a valid “default gravatar” in the options. The only documentation currently are the Installation Instructions on this site, as well as the Readme.txt file.

  111. Gravatar Slowfinger

    Shall I put the wp-content directory included in the .zip in the WP root directory upon installation? Won’t that replace my already existing wp-content directory? Please help.

  112. Gravatar Kip

    @Slowfinger: That will put the files included in the zip into the wp-content sub directory. You can do it manually if you want, but it’s just easier to extract it to the root directory.

  113. Gravatar xLekOx

    Only a test, thanks for the plugin!

  114. Gravatar Slowfinger

    Thanks,
    I have in my comment loop the following line

    ” class=”gravatar” alt=”Gravatar Icon” />

    so looks like it’s missing
    { gravatar_image_link(); }
    How do you suggest to edit it, replace/add? Hack-challenged here, Thx!

  115. Gravatar Slowfinger

    … meaning there’s much gravatar-related content between braces instead of the above mentioned. Simply add? Any help welcome.

  116. Gravatar Kip

    @Slowfinger: I’d replace what you have with the example I give in the Installation Instructions.

  117. Gravatar Slowfinger

    Thanks.

  118. Gravatar Scorp

    Works Greatly, i make an italian version for installation instructions on my blog… ;)

  119. Gravatar Alex

    Hi Kip, I still can make it to work and I set a default gravatar, in my comment.php is already a gravatar function

    “>” class=”gravatar” alt=”" />

    I also replaced it with your code and both are not working, it’s frustrating :(

    Any help would be great

    Alex

  120. Gravatar Kip

    @Alex: What do you have for the default gravatar? On your site, it shows “http://derfrison.com32″ as the default gravatar. That’s not a valid image URL.

  121. Gravatar Alex

    Ok, I guess I’m coming closer. When I logged out of wordpress and I used my email address it showed me my gravatar when I wrote a comment, after I approved the comment it detected that I’m the admin and put a gray background to the comment, the picture wasn’t showing anymore, is it possible it is behind the background?

    I also made a comment with another email address but instead of a default gravatar it’s showing a broken image link, it tried everything for a path to the default gravatar but nothing is working.

    You can find the comments here

    http://www.derfrison.com/?p=20

    Thanks for helping.

    Alex

  122. Gravatar Kip

    @Alex: Try this: http://www.derfrison.com/wp-content/gravatars/blank_gravatar.png

  123. Gravatar Alex

    Thanks Kip, sorry that I bother you, I figured out where to put the css style, yours didn’t work because there where already a gravatar style in my theme. So now it’s working but it still haven’t right in IE . On Mozilla it looks good an I’m sure I can fix it with some tweaks but on IE the gray background still comes over the picture if I have a long text and if it’s a short text the background stops at the picture.

    in my css style is right now

    /* gravatar plugin */
    .comments #commentlist li img.gravatar {
    float:right;
    margin: -5px 0 0 ;
    padding: 3px;
    border: 1px solid #000;
    background: #fff;
    }

    Thank you so much for helping me.

    Alex

  124. Gravatar Kip

    CSS Styling issues are outside the scope of this plugin. I’m sorry I don’t have time to look into everyone’s themes and figure out the problems they are having, but there are a lot of CSS tutorials on the web that might be useful.

  125. Gravatar Alex

    I understand, thanks a bunch Kip.

  126. Gravatar Slowfinger

    Kip, I know that CSS are not the core issue here, but is the CSS styling provided in the installation instructions meant to result in this thread’s styling? Mine doesn’t look anywhere near this even though I’ve copied and pasted the last bits from what you provide through the “here is what this site is using” (http://zenpax.com/examples/style.css) link.

    Last question, not clear with the “add the following cron job:

    0 * * * * /usr/bin/php
    /full/path/to/wordpress/gravatars2-cache-refresh.php
    >/dev/null 2>&1 ”

    lines under the System Cron section. Should it be included in the installed gravatars2-cache-refresh.php? I’d love to use the System Cron option, as you suggest (without installing more plug-ins).

    Many thanks

  127. Gravatar Kip

    @Slowfinger: Yes, the CSS styling that is used on this site, results in the gravatars looking like they do here. You most likely have conflicting styles applied to your gravatars.

    Cron: http://www.google.com/search?q=cron

    If you are unfamiliar with cron, you can use Cron Monkey plugin to make it easier.

  128. Gravatar Slowfinger

    That sounds promising, thanks.

  129. Gravatar Slowfinger

    I had a look, the only rules for Gravatars I have in my stylesheet is from the mentioned css you provide. I’m also enquiring at the K2 (my theme) forum.
    My comments page: http://www.quidtum.it/blog/2006/06/18/fiori-di-zucca/#comments

  130. Gravatar Kip

    @Slowfinger: you are loading multiple style sheets. I assure you, there is a conflicting “gravatar” style being loaded on that page.

  131. Gravatar SK

    I am quite confused.
    I installed the script. As an admin, i have the option to call a local gravatar for myself.
    For a registered user, there is no Gravatar option in the account settings area.
    All a registered user sees is “Dashboard” and “Profile”

    Also, is there an option for registered users to upload their own gravatar? I mean there is a folder for local and global ones.

    How does an Admin also upload an gravatar? Currently what I did for the admin is upload a gravatar through FTP into the local folder and then typed in the URL in my Gravatar menu in my profile.

  132. Gravatar Slowfinger

    Thanks, I think I’ve figured it out at last! Would you please have a look at the above link to my comments page? I wasn’t updating the stylesheet found in the same directory as the edited comments.php file, even though my actual and current style had been (happens under K2). What I’m still not totally clear, though, is why the default gravatar size can’t be edited from the option panel. Editing the value does’t seem to take effect. Besides, the gravatar frame you have here doesn’t show up on my site.

  133. Gravatar Kip

    @Slowfinger: The default gravatar is a location to an image. You will need to edit that image using an image editor to make it whatever size you want. The size option for other gravatars is for specifying the size you want to receive from gravatar.com. The gravatar border (frame) is not showing up on your site because of another CSS conflict. Your theme specifies no borders for images. You’ll need to adjust that if you want your gravatar images to have borders.

  134. Gravatar Kip

    @SK: There is no “upload” per se for local gravatars, but you can use a URL to an image (which then copies that image locally). Otherwise, just use ftp or whatever to put the image in the “local” gravatars directory, and specify the filename.

    Before today, local gravatars required a userlevel > 0, so subscribers, by default, could not use local gravatars. However, per your question, I have added the option to specify the userlevel required for local gravatars (default is still “1″). You can now change this to “0″ to allow subscribers to use local gravatars. You will need to download & install the new version: 2.5.0. Hope that helps! Enjoy.

  135. Gravatar Hoofei

    Test Gravatar!

  136. Gravatar Nelly

    Hello!

    I have installled Gravatars2 on my Wordpress blog (version 2.0.3), but it seems to be that it does not work for me. I’ve got the following error:

    Parse error: syntax error, unexpected $end in /home2/cornelia/public_html/blog/wp-content/themes/pool/comments.php on line 97

    Line 97 in comments.php is blank, so I really do not understand what I did wrong. I have copied the text from the README file, so I guess there is no possibility of an typing error. I am using the ‘Pool theme’ and here it is:

    [PHP / HTML CODE CLIPPED - NOT DISPLAYED CORRECTLY - Kip]

    I really hope that you can help me with this.

    Thank you very much in advance.

    Kind regards,
    Nelly

  137. Gravatar Kip

    @Nelly: I removed the PHP/HTML code you posted — unfortunately, the comment system doesn’t allow a lot of the characters in the code, so it makes it a jumbled mess. I do not have time to troubleshoot your PHP, but would suggest that you restore the original comments.php file used by your theme, and then use the code that I suggest in the Installation Instructions. I have now updated the README file to include the same code.

  138. Gravatar Slowfinger

    Hi,
    is the 755 chmod value fine for the /wp-content/gravatars/ directory? Chmod-challenged here, thx.

  139. Gravatar Kip

    @Slowfinger: Your webserver needs read+write permissions on the /wp-content/gravatars/* directories. So, if the files are owned by the user the webserver is running as, then yes, 755 is fine.

  140. Gravatar Nxqd3051990

    Local file not found ??? I’ve already a image in local folder and already chmod ???

  141. Gravatar Kip

    @Nxqd3051990: The local gravatar is relative to the /wp-content/gravatars/local/ directory. You can also specify a URL and it will copy the image to that directory.

  142. Gravatar Viitoria

    Kip,

    Hi, and thans for the great new gravatars plugin. I know uploading gravatars have been asked before, but it never got any real result. What I’m requesting is an additional feature to your plugin.

    Currently, the user must specify the URL for the local gravatar - since most blog admins don’t give out the FTP for the users to upload gravatars to, and the user probably wouldn’t want to go through the hassle of opening ftp and uploading in the first place, and then having to find the local address and then add it to the ‘gravatars’ section, could you please add the feature of uploading an avatar to the /wp-content/gravatars/local/ address as well as keeping the remotely-linked gravatar ability?

    Thank you for your time. :)

  143. Gravatar Kip

    @Viitoria: Yes. When? Not sure. There is no “remotely-linked” gravatar ability — when the user supplies a remote URL, the image is copied locally. That’s why uploading ability never seemed like a big requirement — because people can just copy the URL to an image and use it for their local gravatar. If the image is not already on the web somewhere, they can use any number of free image/web hosting sites to put it up, then copy the URL.

  144. Gravatar SK

    Thanks Kip for making an update. Will test it out. If you need discounts on rugs, all you have to do is let me know.

  145. Gravatar nozzy

    just testing, tnx for fixing gravatar thingy :P

  146. Gravatar nozzy

    sry, forgot the gravatar funct.

  147. Gravatar TechZ

    Excellent plugin, even a simple user like myself was able to use it :D

  148. Gravatar Patrick

    Hi Kip,

    Wow, I absolutely love this plugin - I grabbed the original and Skippy’s, and they were ok, but yours is a major improvement by adding the admin area features.

    I do have one question: Is there any way to get JUST the gravatar URL and not the link and image tags surrounding it? I would like to be able to just plug that in myself but at the moment I can’t see a way to do so.

    Thanks!

    Patrick

  149. Gravatar Patrick

    Kip,

    Nevermind, I’m a moron. I found it, gravatar_path. I forgot I can pass in the comment’s author to that function.

    Thanks for the awesome plugin!

  150. Gravatar gavin

    just test image

  151. Gravatar TechZ

    Just awaiting my gravatar rating.

    :D

  152. Gravatar Kip

    @TechZ: Just FYI: there is a forum on gravatar.com where you can post to test your gravatar. If there are any problems, Tom (the gravatar.com admin) can help.

  153. Gravatar TechZ

    oh, sorry, missed it. But I notice my avatar got rated, and I’m all good. Thanks!

  154. Gravatar stefan

    Testing :)

  155. Gravatar Christian

    Testting, not showing up on my site actually

  156. Gravatar yskin

    test

  157. Gravatar kano

    Thanks buddy, nice plugin, cool!!

  158. Gravatar QAD

    Just a simple test

  159. Gravatar bill

    test

  160. Gravatar Paolo Gabrielli

    Hi,
    just installed this fantastic plugin. But… (there is always a “but”) what about changing the ‘ (single quote) in ” (double quote) in the code so we can validate XHTML?
    I’ve already done the change in my installation: all the ‘ (single quote) became ” (doulbe quote).

    Ty!

  161. Gravatar Kip

    @Paolo: I double checked the W3C site and didn’t find anything about only double quotes being valid. XML allows single or double, and I’m pretty sure that is the same for XHTML. I even ran this site through the W3C validator (XHTML 1.0 Transitional & Strict) and no errors with the single quotes. If you can link to a W3C page that shows that double quotes are not valid XHTML, please let me know.

  162. Gravatar Sephiroth

    Kip, I just installed this plugin, and it worked right out-of-the-box for me.. Excellent work. :)

  163. Gravatar Robin

    The default gravatar that came with the plugin is not showing up in my comments.

  164. Gravatar Kip

    @Robin: You have WordPress installed in a “/blog/” subdirectory, so you’ll need to change the Gravatar options, and append “/blog” to the “Default gravatar image” path.

  165. Gravatar Robin

    Do I need to make the default gravatar smaller manually or is there another way?

  166. Gravatar Kip

    @Robin: Manually. (See here and here.)

  167. Gravatar Robin

    Ok, got it! Thanks for the quick help. This was much easier to do than I thought it would be and it looks great!

  168. Gravatar Joefish

    I’ve been having a little difficulty with both your plugin and Skippy’s plugin, but not with the “official” plugin. It seems when Gravatar.com’s own servers are overloaded, it can take an inordinately long time for my gravatar-enabled comments to load. This has been a huge problem for me the past few days. What might normally take a few seconds to download and render now takes several minutes. When using the official plugin, my comments display quickly (making the page usable quickly), but the gravatar images take a few minutes to load.

    I’ve enabled caching in both your plugin and Skippy’s and this doesn’t seem to improve the long delays. For example, reloading a page triggers the same long delay, even when those very same gravatars were just cached.

    Is there anything I can do to ameliorate this? I’d really like to use one of the advanced plugins (especially yours… that’s some fantastic work), but I don’t know how to better insulate myself from gravatar.com’s instabilities.

  169. Gravatar Kip

    @Joefish: You will want to use Cron to fetch the gravatars — follow the “Cron Configuration” section of the Installation Instructions. The key is setting the “Automatic Cache Checking” to “Disabled” which will make the plugin never check the gravatar.com server even if the cache time has expired. That’s what you would use cron for. Note, that the 1st time a gravatar is loaded into cache, the gravatar.com server will be checked — but this would normally be when a user posts a comment.

  170. Gravatar Jessica

    I have the plugin installed and working! GREAT plugin btw…but…I have a few users that have uploaded their own gravatar…well like a few days later when somebody else uploads their own the other ones that uploaded their’s earlier doesn’t show up…they are returned to the default image…I looked in my local folder and the image is still in there but it isnt showing up in the comments (the default is instead…the ones that they upload will show up until like a few days later when somebody else uploads one). What do I need to do?

    And…whenever I say uploads…I mean submits…whatever on the gravatars control panel.

    Thanks! :)

  171. Gravatar Matias

    Thanxs!

  172. Gravatar m0n

    Kip,

    I am having inconsistent success with your plugin. When I use no caching, some gravatars appear inconsistently while others do not appear at all. When I try using caching, only the default blank image appears for all gravatars. Also, the gravatar cache shows only “X” for each gravatar even when the “cache gravatars” option is selected. Also, my blog is in a subdirectory. I have tried everything I can think of and tweaked as many things as possible, but I am still experiencing inconsistent results. Any help would be greatly appreciated.

    Thanks,
    Jeff

  173. Gravatar Vixen

    Absolutely wonderful plugin. Easy to set up and use. Thank you for creating it! :)

  174. Gravatar _ck_

    Very nice work on gravatar2, I’m glad I found it before I commited to the other ones floating around.

    Some questions:

    I wanted to ask if there is any kind of security in place to make sure the image specified by url is not too large in bytes (ie. someone being malicious could specify a multi-megabyte image)

    If they choose a 80×80 image is it copied to the cache untouched? Or does it get passed through the resize routine anyway?

    Before I start hacking in a bunch of code, have you considered adding any kind of ability to select from a local avatar gallery for users without a gravatar? And/or the ability to upload?

    I’ve given the users the ability to go to the dashboard and change/update the avatar but I want them to have a quick and easy choice if so desired.

    I’m also concerned your choice of descriptions/instructions on the url page will be impossible for a novice to understand so I intend to change that as well.

    Thanks again and keep up the great work…

  175. Gravatar Kip

    @Jessica: Sorry it took so long to get back to you. I’ve been busy lately. Anyway, I don’t use local gravatars on my site, so I haven’t seen the problem you described. I just tested it with 3 local (non-admin) users, and none of the local gravatars were being overwritten, and they all show up correctly in the comments. I will wait a few days like you mention, and then add another user or 2 to see what happens. I’ll need to be able to reproduce the problem to troubleshoot it. In the meantime, if you could put the links to 1-2 posts and tell me which comments should have local gravatars that have been overwritten, I can take a look at them to see if I can tell what’s going on.

  176. Gravatar Kip

    @m0n: It sounds like you are just experiencing the very common problem of the gravatar.com server being overloaded. That’s the reason this caching plugin was created. You will still periodically experience problems (e.g. when initially trying to cache a gravatar image), but once the image is cached, then you’ll never have a blank image again. Further, if you use the cron option (highly recommended), people browsing your site will never have to wait for any gravatars to be re/loaded.

  177. Gravatar Kip

    @_ck_: The local gravatars have not been given much attention. The main focus is on the global gravatars (hosted from gravatar.com). There is no checking on the images people use for the local gravatars (file size or dimensions). Your suggestions for the local gravatars are good, so I’ll keep them in mind for future development. Also, feel free to send me any code you add/change to incorporate into this plugin. I wonder if the local gravatars shouldn’t be a separate plugin, really? Hmm. I’ll think about that.

  178. Gravatar _ck_

    Well I enjoy hacking up plugins as it teaches me something new about php almost every day (and we’re going on years now ;)

    Local avatars are important to me so I’ll slug away on adding that functionality. I’ve already studied the internal structure of your plugin so I can see where I can just slide any code I want as a function right into the regular member page. The problem with making it a second plugin is seamless integration for the novice. I definitely don’t want them to have to check two different pages in their profile with the word avatar or gravatar. I guess you could make your plugin check for the optional second plugin and integrate them but I would want the instructions to be very clear for the end-user visiting the blog.

    I’ve already taken the liberty of “beefing up” the curl and fsock commands for my own needs, by adding a user-agent and a referer of the object itself as many servers are just blinding blocking any request missing such info (especially if they are missing both). I’ve learned this from other projects that these are good curl options to add. I know it’s nasty to fake a user-agent and referer but it’s a necessary evil to make sure the visitor gets a smooth interface.

    after line 386 in v2.5

    // beef up curl options
    curl_setopt($curl_handle, CURLOPT_HTTP_VERSION,constant("CURL_HTTP_VERSION_1_1));
    curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($curl_handle, CURLOPT_FAILONERROR, 1);
    curl_setopt($curl_handle, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)");
    curl_setopt($curl_handle, CURLOPT_REFERER, $url);

    and after line 334

    . 'Referer: '.$this->_url . $crlf
    . 'User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)' . $crlf

    probably not for everyone but I guess it could even be added as a type-in option in the advanced part of the control panel for it

    I’ll dig into adding a transfer size limit tonight. I think I remember that 10 second limit on curl/fsock is for the START of the transfer, not the whole transfer or otherwise that would be good in limiting the max size possible (on all but the fastest servers).

    ps. I would suggest maybe you add in the plugins here for “preview comments” and “notify of comment moderation”

  179. Gravatar Kip

    @_ck_: Very good ideas. I’ll use them in the next release, I’m sure! :)

  180. Gravatar m0n

    Kip,

    Thank you for the informative response to my previous comment! After a little investigating, I (almost) solved the cache problem I was experiencing. However, I need your help with the following situation:

    My blog is located in a subdirectory. Creating the /gravatars/ directory in /wp-content/ caused the caching function not to work. However, after creating a pseudo /wp-content/gravatars/ directory in the root directory, the caching function works great and I am off to the races.

    I would like to use your plugin without an awkward, virtually empty /wp-content/gravatars/ directory hanging off the root of the site. What lines of code can I change to set the plugin to look in the subdirectory for the real /wp-content/gravatars/ directory?

    Your help is invaluable and greatly appreciated.

    Thanks,
    Jeff

  181. Gravatar Kip

    @m0n: 1) What error(s) do you get when you don’t have that empty directory? 2) What is “ABSPATH” set to in your wp-config.php file?

  182. Gravatar m0n

    Kip,

    Without the empty directory I receive no errors, only a nonfunctional cache. Specifically, with the cache option enabled and without the empty directory, all comment gravatars display the default blank image. Also, in this case, the gravatar cache displays the names of people who have left comments, but no gravatars are shown. On the other hand, using the empty directory, everything works fine and gravatars appear everywhere they are required.

    As for the ABSPATH in the wp-config file, it shows:


    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');

  183. Gravatar m0n

    I also noticed that even though the empty directory is required for the cache to work, the gravatars are then stored in the actual, non-empty /wp-content/gravatars/ directory..

  184. Gravatar Kip

    @m0n: I’ll look into that when I get a chance. I’ll have to duplicate the setup to do it, so I don’t have time right now. It’s baffling that there is no error message (even in the Gravatar Options & Cache control panels?), but it doesn’t work. The error reporting is supposed to tell you when caching is not enabled for some reason.

  185. Gravatar _ck_

    Hey be sure to get on the WP 2.1 plugin compatibility list.
    Since the original 2.6 gravatars works, I am willing to bet gravatars2 is fine also.

    http://codex.wordpress.org/User:Spencerp/2.1alpha1_Plugin_Compatibility
    site running 2.1 alpha -> http://212.vindictivebastard.net/

  186. Gravatar Kip

    @_ck_: Thanks for the heads up. I’ll install 2.1 sometime and check it out.

  187. Gravatar Jessica

    Ok, thanks! Well…one of the comments is Stephanie (she had uploaded her pic) on the post titled BLOG at my site…and the local gravatar is showing up for the link in the local gravatars folder but it switches to the default gravatar after a few different users upload their own avatars…hmmm???

  188. Gravatar Kip

    @Jessica: I need a link (URL) to check it out.

  189. Gravatar Jessica

    And…btw…if you cant figure out how for me to fix this…either way really…is there a way that I can edit each of my uses gravatars…that way if they disappear or whatever again…I can go in and give them their original gravatars again without them having to keep doing it themselves.

    Thanks!

  190. Gravatar Kip

    @Jessica: See my response above. Also, this plugin is mostly for gravatars. The best way to use gravatars is for them to upload the pic to gravatar.com & use the registered email address on your site. But, “local gravatars” functionality was here when I expanded this plugin, so I left it in. It seems to work for my tests, I have added 4 registered users, several days apart, and all local gravatars are working. I think there are other plugins out there for local avatars that probably do what you want, and offer more features. I have yet to decide whether to expand the local gravatars functionality, move it to another plugin, or just drop it altogether, and instead get gravatars to work in conjunction with another avatar plugin (for local avatars). Anyway, I still need you to send me a link to some comments on your site that are not working correctly.

  191. Gravatar Jessica

    http://dhost.info/jessicascorner/wordpress/?p=28 is the link Kip

    Thanks!

  192. Gravatar Jessica

    I noticed by looking at the properties of the graphics for your gravatars here that they are stored in the global folder…would that help me out any with my users gravatars and how would I go about doing that?

  193. Gravatar Kip

    @Jessica: Yes; using global avatars (gravatars) is the main functionality this plugin provides. Just have your users register their email address with gravatar.com.

    As for the local avatars not working, I can’t duplicate your problem. If you want to help me fix it, you can come up with a series of steps that replicates the problem. That way, I can then trace what’s happening to cause the problem, and then fix it.

  194. Gravatar Jessica

    Well is there a way for me to go in and assign each of my members/users specific gravatars?

    Thanks! :)

  195. Gravatar Kip

    @Jessica: Not really. You could assign each one an email address, and then use gravatar.com to assign an image to each address. Or, log into each user, and set their local gravatar for them. But, that’s not a supported feature with this plugin.

  196. Gravatar Viper007Bond

    In regards to the animated images, it is a problem with gravatar.com resizing the images.

    What about requesting it fullsize from Gravatar.com and then resizing it locally?

  197. Gravatar Kip

    @Viper007Bond: That would be an option, but it is not current a feature of the plugin. Since Tom is working on that in the next version of Gravatar.com, I’ll probably wait until that comes out rather than duplicate functionality.

  198. Gravatar m0n

    Kip,

    In regards to the previous issue we were discussing, i finally discovered the following error:


    [30-Jul-2006 00:07:43] PHP Warning: Invalid argument supplied for foreach() in /home/root/public_html/blog/wp-content/plugins/wp-cron-gravcache.php on line 23

    Would this have something to do with the use of the empty directory?

  199. Gravatar mefisto

    nice

  200. Gravatar crazyparty

    cool :)

  201. Gravatar joker999

    Hi! why my Cache gravatars wont show, only turn off will show it. Hmmm

    /wp-content/gravatars/global/37fab25c597b91350e7659c2eeaa51f9

    and its show as
    “‰PNG”

    Hmm?

    but i like it your script :)

  202. Gravatar Kip

    @joker999: I have to be able to look at your site to see if I can determine what is wrong. IOW, I need your site’s URL.

  203. Gravatar joker999

    Okay here test site: http://joker999.freehostia.com/2006/07/26/464356/#comments

    Thanks.

  204. Gravatar joker999

    btw test on joker999 one.

  205. Gravatar Kip

    @joker999: The problem is with the server MIME types. The gravatar images do not have file extensions, so the server is supposed to serve them to the client as binary files, but that doesn’t appear to be happening on your server (it’s serving as text). The solution is to change the server so that it serves the files correctly. Apache can use “mime_magic” to determine file types that don’t have extensions. Another option is to post on the gravatar.com forum to see if Tom has run across this problem and can offer a solution. Since this is the only supported way to serve gravatar.com images, this problem is outside the scope of my plugin. Please post back if/when you find a solution, though, so that others with the same problem will be able to fix it as well. Thanks, and sorry I couldn’t be of any more help.

  206. Gravatar joker999

    Okay thanks for help :)

    i’ll find out and post here. (that is what you say ;))

  207. Gravatar joker999

    Hmmm i think my free host dont support MIME types.

    so I move to paid host its work! :)

    Thank you for your time plus sorry for bit wasted your time though.

    Love it ;)

  208. Gravatar Fernando S

    im interesting in gravatars, im to register en gravatar.. go to see

  209. Gravatar Fernando S

    very fine this…thanks

  210. Gravatar roc

    I’m confused but I cannot change anything in the “gravatar options” in the wordpress panel. whatever I change in that place - resizing images, checking a box - they returned to what they initially were after I clicked “reset”. HELP!

  211. Gravatar Kip

    @roc: Click “Submit” instead of “Reset”.

  212. Gravatar Julie

    Hi!!

    I downloaded your gravatars plugin months ago, however I’m not sure if i did the gravatars 2 function correctly in my comments.php

    My gravatar works fine in the posts, but i don’t see the gravatar link in the comments.php

    do you think you could take a look @ my comments and see if i did it right or not?

  213. Gravatar Kip

    @Julie: Looks like it’s working to me.

  214. Gravatar Julie

    Thanks, Kip!! I wasn’t sure if had put the function in correctly or not. Thanks for checking that out, for me! :)

  215. Gravatar David

    Thanks for the great plugin.

  216. Gravatar Zoe

    Thanks for sharing your work (and your patience in answering questions!)

  217. Gravatar Roux

    hey there, Kip

    this looks like a great plug-in, but i’m having some trouble using it

    I followed all the instructions as listed on the page properly (or at least i think so, haha), and I’m quite sure that I placed the php function in the right place for the comments loop, however I can’t seem to get any pictures working local or not.

    Maybe it’s because of the custom design? i’m using a Hemingway theme

    Also, when I try specifying a remote gravatar under Users>Gravatars i get this error:
    “Warning: Missing argument 2 for httprequest() in /var/www/html/wp-content/plugins/gravatars2.php on line 320″

    Perhaps, the two things are linked? I can’t get any pictures even if that error doesn’t exist

    Thanks for all the hard-work you put into the plugin and for all the help you’ve given others

  218. Gravatar Math

    Hi,

    I’ve got dedicated server. For the Default gravatar image, i’ve got :
    home/ovh/www/wp-content/gravatars/blank_gravatar.png

    but this must be
    home/myaccount/www/wp-content/gravatars/blank_gravatar.png

    How can I do that ?
    thanks

  219. Gravatar Kip

    @Roux: Did you get it working? If not, email me your IM and I will try to help. kip at zenpax.

  220. Gravatar Kip

    @Math: The gravatar image is relative to your web root. The script sees that “/home/ovh/www/” is the absolute path to the current web root. Anyway, whatever you put in that field is what is put in the href for the default image.

  221. Gravatar Roux

    Alrighty, I sent you an e-mail, with my information in it.

    Hope to see you online,
    Roux

  222. Gravatar Sonny

    The plugin is great. But what if I want when users click on a gravatar, the link will take them to commenter’s website (if he fills in the URL). If he doesn’t just display the gravatar with no link at all.

    How can I do that? Thanks.

  223. Gravatar Kip

    @Sonny: The “gravatar_image_link” function defaults to adding the link to the commenter’s website, or a link to “gravatar.com” if there is no associated gravatar (no link if there is a gravatar, but no URL). You’ll have to use the “gravatar” or “gravatar_path” function, along with your own php code, to do what you want. The README file has a bit more information.

  224. Gravatar Henrik Buchwald

    Hi.

    I have make a Danish translation of the .po file - Will you have it for download on your Website??

    Best
    Henrik

  225. Gravatar Kip

    @Henrik Buchwald: Sure. Just send it to me (kip at zenpax), and I’ll create a place for them.

  226. Gravatar abdi

    hi my name is abdi and i am using your plugin which is fantastic thank you for this.. i installed everything and is working i am using default picture for comment avatar… the opicture shows up but no border can you please help me with this.. i read all the above q+A but no one got the same problem as me

    i have added the below code to my style.css at the end

    .gravatar {
    float:left;
    padding: 3px;
    border: 1px solid #000;
    background: #fff;
    }

    .postgrav {
    float: left;
    padding: 3px;
    margin-right: 5px;
    margin-left: 5px;
    border: 1px solid #000;
    background: #fff;
    }

    i am using connections-reloaded wordpress template

  227. Gravatar Roger

    Hi, I’m trying to use this plugin and it’s working with comments, but when I try yo put it on a POST using this it doesn’t work.

    Can anyone help me ?

    I’m using wordpress 2.0.2

  228. Gravatar Roger

    OKs my las post, please delete the 2 above.

    I’m using the TAG commented at the end of this page : http://zenpax.com/gravatars2/installation/ with this title : USING GRAVATARS

    Can anyone help me ?

  229. Gravatar Kip

    @abdi: I will need the URL to your website for me to see what’s going on.

  230. Gravatar Kip

    @Roger: Do you have the Gravatar Options “Replace <gravatar foo@bar.com> in posts” set to yes?

  231. Gravatar Roger

    YEs I’d set this option to YES.

    The website is http://www.pesagrup.com:8080/g2a/

    Do you need a autor Account ?

  232. Gravatar Kip

    @Roger: I will need to see sample where you included the tag in the post. What is the result? What does it show? When you re-edit the post, are the tags still there? Are you using a GUI editor that is replacing the html tag with something else (like html entities)?

  233. Gravatar Roger

    Well, when I write the TAG in the text editor( my text editor is the one that is included in the oficial Wordpress 2.0.2.) I Write it in the post directly or I try to write it in the HTML version where you see al html tags that your text has.

    When I click on save and continue editting I see that the GUI puts the open and clos tag paragraph ( ) whith the gravatr TAG inside, but after that If you look at the post you don’t see anything.

    I write it one now, look at it if you can please.

    Lot’s of thanks.

  234. Gravatar Kip

    @Roger: Yes, I see now what it is doing. The GUI editor is “fixing” the html tag for you (messing it up). You can use the text editor, and it will work. Or, perhaps there is another GUI that will allow you to insert the tag and not “fix” it?

  235. Gravatar Roger

    Wich text Editor ? I’m using the one that wordpress 2.0.2 version includes, i’m not doing something strange :(

    I don’t understand what you mean.

  236. Gravatar Kip

    @Roger: The default is a GUI editor (with the “bold”, “italic”, “underline” buttons & such). A text editor is like this comment box you are typing in (requires/lets you add your own html tags). You can change this in the Wordpress options (also a check box in your user profile).

  237. Gravatar Roger

    A yes Sorry, I’ve unchecked this option : ” Users should use the visual rich editor by default” and the on in my profile.

    Now it appears a Text editor with buttons but without images ok I’m in the right way.

    I write the tag for the gravatar but it doesn’t appears too.

    But now If I edit the post, the tag gravatar and emial is there.

    If you can check it on my homepage.

    Lots of thanks :)

  238. Gravatar Kip

    @Roger: The tag should be: <gravatar name@domain.net />

  239. Gravatar Roger

    Oh yes !!!!!!

    Thanks for your precious time Kip.

    One last thing, what can I do If I would like that if a user clicks on the gravatar he can send an email to him/her ?

    Is there any automatic option of function, or I’ve to put manually the tag for the hyperlink ?

  240. Gravatar Kip

    @Roger: You will have to do that manually.

  241. Gravatar abdi

    kip thanks for your fast reply this is my site http://www.bashaal.com/test/wp/?p=14#comments

    i am still working on my site…. thank you

  242. Gravatar Kip

    @abdi: You have conflicting styles being applied to the images. Specifically, you have an “img” style and an “a img” style both setting the border to “none”. You’ll need to tweak your css and/or your pages to make it work how you want. I’m sorry I can’t be of any more help, as CSS issues are not my forte.

  243. Gravatar abdi

    thanks kip fpr looking my codes.. i’ll look around, if i fix this problem i’ll let you know

  244. Gravatar Andy

    Thank you for a great plugin and reading through much of the feedback above, it’s great to see so much support being given by a plugin developer. Very much appreciated.

    I am having cache problems with the gravatars on my site. I have had a number of people tell me their images don’t show - they get my random ones instead - and when I go into the cache I have to manually delete what’s there under their email address and force the cache to grab them back with their ‘proper’ image.

    The cache doesn’t seem to be periodically re-checking at all. It only does so when I tell it to do so manually. Also, to date the plugin has failed to cull the entirety of commenters from my database. I have around 120 commenters in the DB and for the first few days the plugin only showed around 90, then today it went up to 111 but still - where are the others, whether they have gravatars or not? And why does auto-checking the gravatar server seem not to be happening?

    I have wp-cron installed and WP 2.0.4.

    Any help you can provide would be gratefully received. I’ve trawled through all the previous comments and can’t seem to find any that address these two issues together.

  245. Gravatar Andy

    But then, here’s the weird thing - my comment above as I type this shows I don’t have a gravatar but I do and it’s displaying correctly on my site while others report EXACTLY this problem. Does it take some time for, say, your site to go get my gravatar? Shouldn’t it be checking straightaway and bringing that image back with it?

  246. Gravatar Kip

    @Andy: What you are describing sounds normal. One of the main reasons this plugin was even developed was because of the gravatar.com server often being slow and bogged down (resulting in a lot of missed gravatars). So, this problem still exists (with gravatar.com), which is why this Gravatars2 plugin doesn’t always display all of the gravatar images. The way it works is the first time the plugin finds a new email to get a gravatar for, it will contact the gravatar.com server. It’s here that sometimes there will be an error contacting the server (bogged down, usually). You can view the Gravatar Cache and note the letter in parenthesis after the “NO GRAVATAR”. An “X” means the gravatar.com server was contacted, but did not have a gravatar for that email address (the “No Image (Negative)” cache time applies to these). An “E” means there was an Error contacting the gravatar.com server (the “Failure (error)” cache time applies to these). The default is 1 hour cache for errors, and 1 day cache for “no gravatar”. Once a good gravatar image is retrieved from the server, it is cached (default is 7 days). At that point, unless you delete the cache, you will always have a gravatar image to display for that address. Even after the cache expires, it will keep that gravatar image until a new image is able to be retrieved from gravatar.com.

    The method used to recheck the cache for expired images (or “no images” or “failures”) depends on how you have the options configured. The default is to check every image to see if it is expired whenever a page with that image is loaded. This is not the preferred method, as it is not very efficient. The preferred method is to use a system cron job (preferred) or wp-cron plugin that will check the cache in the background. When cron is set up, you should set the “Automatic Cache Checking” option to “Disabled” to prevent the gravatar plugin from checking the cache for expired images each time a page is loaded.

    Hopefully this helps… I should post this on the main page for other people to reference. And put it in the README. And maybe some tool-tips in the options screen. :) I’ll add that to my “to-do” list.

  247. Gravatar cenourinha

    Tanks man! You do a big work!

  248. Gravatar emeff

    Kip,

    I don’t know what’s going on here: I can see my gravatar.com gravatar in the user - gravatar section, but in my blog it does not work. Added to a post I just see the default image, and within a comment no gravatar is displayed.
    Resetting does not help and I got no errors.
    Do you have any idea?

  249. Gravatar emeff

    Now it works for cmments (perhaps a caching problem, I have really now idea). But still in the post area just the default gravatars are displayed, even for email adresses that show the right gravatar in the comment section and even with your email adress…

    Strange!

  250. Gravatar Chucks

    Hi,

    At Gravatar Cache, I got a “Warning: Invalid argument supplied for foreach() in…../wp-content/plugins/gravatars2.php on line 886″

    Can someone enlighten me what does it mean?

  251. Gravatar Tony

    Is there any way to show all the images in the random folder and allow the users to pick from those for a local gravatar? Lots of my users are not very tech savy and gravatar.com confuses them. They just want to pick from a list. Any ideas?

  252. Gravatar Rahner

    Hi!
    Nice PlugIn works Fine, but i want to disable the links. I simply want to see the gravatars without the links.
    How can I do this?

  253. Gravatar Kip

    @Tony: not currently. There may be other plugins that do allow that “avatar” functionality. This one is primarily for using gravatar.com images.

  254. Gravatar Kip

    @Rahner: Use the “gravatar_image” function. See the README file for more info on other functions.

  255. Gravatar Kip

    @Chucks: It may be a bug — but probably not significant, if your gravatar images are working now.

  256. Gravatar Kip

    NOTE TO THOSE HAVING PROBLEMS WITH GRAVATARS2 PLUGIN ON THEIR SITE:

    If you don’t leave the URL / link to your site, I have no way of seeing what is going on, so helping you will be quite difficult and perhaps impossible. So, if you want me to help you, then you need to leave the URL / link to your site, and explain what the problem is, and have an example that I can see when I go to your site (e.g. a direct link to a comment not working, or whatever).

  257. Gravatar Rahner

    In the Readme there’s no Info on other functions, but i got what you want me to say ;)
    I’m using now:

  258. Gravatar Kip

    @Rahner: At the bottom of the gravatars2.README is a list of functions that do various things.

  259. Gravatar Rahner

    I have written a German Tutorial for the basics of this PlugIn and how to install it.
    I hope you dont have anything against it: http://labs.wars-world.de/gravatare-wordpress/ http://3ckig.de/blog/gravatare-wordpress/

    greetz Rahner

  260. Gravatar _ck_

    Hey sorry if this is a dumb question but I can’t quite figure it out, tired today.

    How do I change the alt text for the image to tell them to register at gravatars.com if they are using the default image and do not have their own?

    I can’t quite figure out the “if” statement i need.
    I guess I could test the resulting URL returned by gravatar() to see if it contains “/default/” ?

  261. Gravatar Kip

    @Rahner: I think that is great!

  262. Gravatar Kip

    @_ck_: The easiest way would be to change it in the gravatars2.php code. That would be a nice feature (to have it be easily changed in the options), so I’ll add it in one of the future releases.

  263. Gravatar tony perraglia

    Hi,

    Just wanted to say thanks for a great plugin. I still have some css styling to do because I really like yours.

    Thanks again,
    Tony

  264. Gravatar Knightcrawler

    Having trouble with local cached gravatars on a website that has ads. The hosting is free but has a banner ad at the top. The problem arises because the locally cached gravatars don’t have extensions so it tries to inject ads into it which means the pic won’t display.

    The blank gravatar displays properly because it ends in a .png, not sure how to get around this little obstacle.

  265. Gravatar Kip

    @Knightcrawler: I just checked out your site, and you don’t have caching turned on, so I can’t see what’s happening. Images on gravatar.com don’t have extensions, so trying to add them to the cache might prove impractical or impossible. Hopefully the next version of the gravatar.com server application (not this plugin) will allow extensions to the images.

  266. Gravatar Knightcrawler

    Here is an example of the problem:

    http://pixma.allhyper.com/wp-content/gravatars/local/f6c00aea41784b69d0a6b51a1e94aed3

  267. Gravatar Kip

    @Knightcrawler: Yikes. I see what’s going on now. They are serving up the file without an extension as TEXT and then inserting their banner ad before it. Tisk tisk.

    Unfortunately, I don’t know of any way around that. Maybe get a new hosting provider? I’ll keep this in mind for future versions — if Tom doesn’t add support for this in the next gravatar.com server application, then I’ll try to see if I can work something in to the plugin.

  268. Gravatar Knightcrawler

    I guess I will just turn of the cache feature since the global gravatar will still work.

  269. Gravatar Knightcrawler

    So now I have a new problem, the gravatars show up but I can’t get default image to show up:

    " class="gravatar" />

    This is the url I get:

    http://www.gravatar.com/avatar.php?gravatar_id=d1695a5620652ee4362b191a2d496a9f&rating=X&size=80&default=http://pixma.allhyper.com80

    It tries to look up: http://pixma.allhyper.com80

    =====

  270. Gravatar Knightcrawler

    Thought I would mention that the posting gravatar works fine:

    http://www.gravatar.com/avatar.php?gravatar_id=f6c00aea41784b69d0a6b51a1e94aed3&rating=X&size=80&default=http://pixma.allhyper.com/wp-content/gravatars/blank_gravatar.png

    It’s just the comment gravatar that is messed up:

    http://www.gravatar.com/avatar.php?gravatar_id=d1695a5620652ee4362b191a2d496a9f&rating=X&size=80&default=http://pixma.allhyper.com80

  271. Gravatar Kip

    @Knightcrawler: What exactly do you have for the “Default Gravatar Image” in the Gravatar Options?

  272. Gravatar Knightcrawler

    This is the default: /wp-content/gravatars/blank_gravatar.png

    Since the POSTING gravatar has the proper url it must have something to do with the code in the comments.php which came with the theme that I’m running.

    I’ve tried to muck with it but it still get the same results. How does the POSTING gravatar get it’s url ?

  273. Gravatar Kip

    @Knightcrawler: You will need to find which comments file your theme is using (sometimes they have multiple), and insert the gravatars function according to the installation instructions.

  274. Gravatar Knightcrawler

    I fixed it….sweet.

  275. Gravatar Tom Edwards

    I’ve been looking at upgrading to your version of the plugin lately, but I’ve run into an issue. In the upcoming revision of my site I intend to maintain two stylesheets: a new, dark green/grey sheet with orange highlights, and a backported version of the layout you see today.

    This leads to an issue with Default Gravatar. No one image will work with both stylesheets. My current solution is the obvious one, background-image, but this isn’t reliable enough. IE in particular messes it up, displaying the ‘missing image’ border and red X icon.

    Is there a way around this issue?

  276. Gravatar Tom Edwards

    The link to the comments feed is broken, BTW. Both the one at the bottom of the page and the actual URL. :/

  277. Gravatar Kip

    @Tom Edwards: Although I haven’t tested it, and plan on changing it in a future release of Gravatars2 plugin, you can override defaults when you call the gravatar_image_link function:

    function gravatar_image_link($who = ”, $default = ”, $width = ”, $height = ”, $alt = ‘Gravatar’, $title = ”, $ target = ”, $echo = TRUE)

    So, in your comments.php file, you could have this:
    <?php if (function_exists('gravatar')) { gravatar_image_link('', "YOUR_DEFAULT_GRAVATAR"); } ?>

    Obviously replacing “YOUR_DEFAULT_GRAVATAR” with the path to the default gravatar you want to use for the particular stylesheet.

    Hope that helps. Thanks for the heads-up about the comment feeds… I’ll try to fix that later. :)

  278. Gravatar Tom Edwards

    No no, these are stylesheets. The PHP and XHTML is all the same.

    Actually, I won’t finish that paragraph because I’ve worked it out: I’ll make the default Gravatar a 1×1 transparent GIF (PNG in a few short months, hopefully!) expanded to the full 80×80. That will create an area the correct size, display the background-image, and not throw up missing image stuff from browsers. Perfect. :)

  279. Gravatar Tom Edwards

    Hit a post-install snag: I have one page with some three hundred comments, and as I’ve only just installed the plugin the thing is currently in limbo until the cache finishes building. Some sort of pre-request Gravatar acquisition limit before the system stops trying to cache and displays the page would be good. If I wasn’t testing like this, it would be a reader—and they would assume that the site was offline or something.

  280. Gravatar Tom Edwards

    *per-request

  281. Gravatar Kip

    @Tom Edwards: I’m not sure what you mean “per-request Gravatar acquisition limit”, but it is recommended that once you install the plugin, that you do a “Refresh Cache” in the Gravatar Cache admin screen. The idea with caching is to not have a user of your site ever have to wait to load any gravatars from gravatar.com. To this end, it’s also recommended to use a cron cache-checking method.

  282. Gravatar patung

    First thanks for your work.

    For my own image I managed to set it to http://www.indonesiamatters.com/wp-content/gravatars/local/patung-1.jpg but on both the web page and on the “Gravatar Cache” page in admin the script looks for this image:

    /wp-content/gravatars/local/b108757195f649cf61214a98e42f3b29

    which obviously it can’t find.

  283. Gravatar Kip

    @patung: A URL is for copying a remote image to your local cache. If you put the image in your own cache, then just specify the path (relative to web server root), leaving off the “http://” part.

  284. Gravatar patung

    Thanks, Kip. I just entered patung-1.jpg and the system seemed to accept it but again it won’t show the image. Might be a caching problem at my end. Maybe you could look here:http://www.indonesiamatters.com/697/avatars/ and see whether my image shows and whether the blank_gravatar displays at 40 pixels - I manually resized it - or at 80 because it keeps showing at 80 for me.

  285. Gravatar Kip

    @patung: Use the full path. (i.e.: /wp-content/gravatars/local/patung-1.jp )

  286. Gravatar patung

    Ok thanks Kip, it’s funny it works, my image shows but the page says “Local Image File NOT FOUND. The system default has been used instead.”

  287. Gravatar Kip

    @patung: Hmm. Looks like I need to do some debugging there. One method that I did test a lot, and has worked flawlessly, is to use a REMOTE URL. The plugin will retrieve the image, and cache it locally using the hash of your email address. You can use a service such as imageshack.com to upload an image.

  288. Gravatar Jenny

    this is hard. id really like to use this plugin but i cant seem to get it to work. its not showing the gravatars. only the default one. and i keep getting errors when i refresh the cache. i used all the tips people had but it still wont work. could you maybe help me to get it to work?

  289. Gravatar Kip

    @Jenny: What errors are you getting?

  290. Gravatar Justin

    I have been using the normal gravatar(s) plug-in for quite some time. However, I made the switch yesterday, to your plug-in. I’m needing the cache because the load time of my website is getting worse and worse based upon the time it takes for gravatar.com to deliver all the gravs on the main page etc.

    Could you check out my website, main page specifically and tell me if its cacheing properly, I am using WP-cron too.

  291. Gravatar Jenny

    im not getting any errors on my site. the gravatars just arent showing up and in the cache’d page they all have E’s next to them.

  292. Gravatar Kip

    @Justin: Your main/home page “Recent Comments” is not using caching. I’m not sure about your individual post pages, because I couldn’t see any that had any gravatars (besides the default one).

  293. Gravatar Kip

    @Jenny: You said: “and i keep getting errors when i refresh the cache”. What are they?

  294. Gravatar Jenny

    Hmm… I deleted the cache. Then refreshed it (which took forever) and all the gravs that loaded came up blank with the (E) next to them.

    Am I still confusing? *sucks at explaining*

  295. Gravatar Jenny

    actually is says NO GRAVATAR (E)

  296. Gravatar Kip

    @Jenny: See Above.

  297. Gravatar RomainB

    Hey Kip!

    I’m a french user of your tool and it seems there’s a problem with your gravatar plugin. Actually when i activate the caching sytsem, my articles a load very very very slowly (more than without the cache).
    I’ve read comments there but there seems there is no people who got the pb. Do you have any idea? (because i use your plugin especially for the caching system).

    Thx a lot for help :)

    PS : i’m using WP2.

  298. Gravatar Justin

    Kip, I want to use caching.. why isn’t it caching?

  299. Gravatar Kip

    @RomainB: Do a “Refresh Cache” in the admin screen to have it cache all the gravatars. It’s also recommended to use a cron job to check the cache, and disable the “automatic cache checking”. After that, it will be fast - guaranteed.

  300. Gravatar Kip

    @Justin: Your main/home page “Recent Comments” isn’t using the gravatar plugin (so it seems). You will need to edit your php files that are displaying those recent comments, to call the Gravatars2 plugin in the same way that the Installation Instructions outline calling the function in the “comments.php” file.

  301. Gravatar Justin

    I’m digging through get-recent-comments.php’s plugin file and I am unable to determine the best route to do this. Do you believe you could find a moment to check it out and get back with me with the best route, or perhaps collaborate with the original author of get-recent-comments and have the cache’ added?

  302. Gravatar Kip

    @Justin: Sorry, I don’t have time to do this. Basically, you need to find the part of that plugin’s php file that is outputting the gravatar, and replace it with the gravatar_image_link function.

  303. Gravatar Jenny

    how do you disable the automatic cache checking?

  304. Gravatar Kip

    @Jenny: Set “Automatic Cache Checking” to “Disabled” in the Gravatar Options.

  305. Gravatar Justin

    Kip,

    I read through the entire get-recent-comments plugin and I was unable to determine that, I’ll keep checking. Appreciate it.

  306. Gravatar Kip

    @Justin: I downloaded the “get-recent-comments” plugin to look at the code. It would take a pretty good knowledge of PHP to make the necessary changes to make that plugin use my plugin rather than calling gravatar.com directly. I’ll add this to my “to-do” list, but it really is something that the “get-recent-comments” author will need to change in his plugin.

  307. Gravatar Jenny

    @Jenny: Set “Automatic Cache Checking” to “Disabled” in the Gravatar Options.

    thats the one that says “Cache Gravatars?” right?

  308. Gravatar Kip

    @Jenny: Nope. It’s the one that says “Automatic Cache Checking”.

  309. Gravatar Jenny

    ok nevermind i figured it out. but now im having trouble with the user gravatars not being the same size as the others. i set mine to 30 and the normal ones are 30 but the user ones (mine right now) arent. see here:

    http://girlseyeview.nu/blogosphere/thursday-13-edition-1/#comments

    not really a great example but its really the best i have right now.

  310. Gravatar Kip

    @Jenny: Answer Here

  311. Gravatar Robin

    I just re-installed so I could have the newer version and now none of the gravatars are showing up.

  312. Gravatar Kip

    @Robin: Try deleting & then refreshing the cache. And read the comments above dealing with an “(E)” after the “NO GRAVATAR” name in the Gravatar Cache page.

  313. Gravatar Robin

    Thank you.

  314. Gravatar Robin

    Not working yet but I’ll give it some time.

  315. Gravatar Justin

    @Kip: I really appreciate any modifications you could make. Appreciate it.

  316. Gravatar Robin

    It’s still not working. It was working fine before I uploaded the new version.

  317. Gravatar Viper007Bond

    Well mind you that Gravatar.com is currently having a heart attack.

    If you ever have issues with this plugin, make sure to check to see that Gravatar.com is loading. ;)

  318. Gravatar Kip

    @Viper007Bond: Indeed. Gravatar.com is becoming increasingly unstable. This plugin goes a long way to making sites that use Gravatars much more stable, as well as alleviating a lot of load off of gravatar.com (making it more stable). But it still relies on Gravatar.com to get the images.

  319. Gravatar Robin

    Everything is working but the “No Gravatar” isn’t showing up, instead it’s blank. I think I accidentally turned off the local gravatar or something and maybe that is it.

  320. Gravatar Adrian

    I wonder if you could help me to get a gravatar function to work. When a person is logged in to the blog, I would like their gravatar to appear in the sidebar along with their profile information. I can’t seem to get it to work. For example when you are on an individual entry page it will show the gravatar of the person who wrote the post, not the gravatar of the person who is logged in. I have tried every combination of code I can think of, but I must be missing something. This is the code I most recently tried:


    user_email);
    echo "' alt='' class='gravatar' width='60' height='60' HSPACE=10 ALIGN=LEFT />“;
    ?>

    Maybe what I am trying to do isn’t possible. Does anyone have any ideas?

  321. Gravatar Adrian

    Ok. This seems to do what I was talking about:

    I am new to this php stuff, so if someone has a better way of doing this, I am open to suggestions. Thanks!

  322. Gravatar Kip

    @Adrian: You’ll need to look at the WordPress site to get the appropriate variable for the email address of the person logged in. You can then pass that variable as the first paramater to the gravatar_image_link (or just gravatar_image) function. See above for full syntax of the gravatar_image_link function.

  323. Gravatar Robin

    I somehow turned off the Local gravatar for myself I believe and that may have messed up the gravatar that is used for those who do not have one. How can I change it so under Gravatar Cache so it doesn’t say “No local gravatars”.

  324. Gravatar Kip

    @Robin: It says that when there are no local gravatars. Go into your account settings, gravatar tab, and assign yourself a local gravatar. Personally, I use a global gravatar, and have my email address assigned to a gravatar from gravatar.com. I don’t use local gravatars.

  325. Gravatar Joefish

    Hiya. Fantastic plugin Kip. Thank you!

    When manually refreshing my grav cache today (Manage -> Gravatar Cache) I encountered this error after the refresh:

    Warning: Missing argument 2 for httprequest() in /home/ibcaxna/public_html/blog/wp-content/plugins/gravatars2.php on line 320

    I’ve been using your plugin for at least a few weeks with wonderful results. Despite today’s error, the cache seemed to refresh just fine. I have not been able to duplicate this error. It’s not a problem for me, but I thought you might want to hear about it anyway.

  326. Gravatar Kip

    @Joefish: Thanks for the bug report. I’ll investigate it and fix it in the next release. By the way, why are you doing a manual cache refresh? Are you doing that instead of using cron (or wp-cron)?

  327. Gravatar Joefish

    I use cron. It refreshes automagically just fine. Every now and again I refresh it manually just for kicks.

  328. Gravatar Kip

    @Joefish: Ahh. I see. Very well. Good to hear it’s working well for you. Thanks again for the feedback.

  329. Gravatar Viper007Bond

    Does setting WP-Cron to 15 min rather than 1 day make it perform better? I was thinking it would as the unlucky user who triggered the cron and made the cache update would only have to update less Gravtars then (I have them set to expire weekly).

  330. Gravatar Kip

    @Viper007Bond: Doing that, though, somewhat defeats the purpose of using cron. The idea is that users don’t ever have to wait for your server to get images from gravatar.com. That’s why it’s better to use a system cron job if possible. It may not be a user who triggers wp-cron, it could be a search engine crawler. For a future version, I have a plan to fork off the cache updates, so no user (or the admin doing a manual refresh) ever has to wait to fetch the images from gravatar.com if they happen to be the one who triggers wp-cron.

  331. Gravatar Laurent

    hi, i just tryed this plugin, but i have an error, and can do nothing now :/

    have you an idea of what i can do ?

    i have wp 2.0.4

    now on the index i have this message :

    Fatal error: Cannot redeclare gravatar() (previously declared in /home.10/calilill/www/wp-content/plugins/gravatar.php:15) in /home.10/calilill/www/wp-content/plugins/gravatars2.php on line 1384

    thanks for your help !

  332. Gravatar Kip

    @Laurent: Delete or move the gravatar.php file (not the gravatars2.php file) out of the plugin directory.

  333. Gravatar Laurent

    ok, thank you, it’s look like ok :)
    i will never use again gravatar.php ?

  334. Gravatar Kip

    @Laurent: No, the gravatar.php is the previous version. You shouldn’t have to use it again, unless you want to revert back to that version (in which case you will delete gravatars2.php).

  335. Gravatar Laurent

    it works, but it’s very slow, i saw your answer :

    …It’s also recommended to use a cron job to check the cache, and disable the “automatic cache checking”. After that, it will be fast - guaranteed…

    but i dont understand “use a cron job to check the cache” :/

    can you explain me please ?

    longest page to load => http://www.cali2lille.fr/?p=152

  336. Gravatar Kip

    @Laurent: Check out the installation instructions, cron section.

  337. Gravatar abdi

    hi kip everthing is working for me but my user can’t setup local gravatar i have seen ur prev post u said ur plugin is not supporting this function.. this is my website http://www.bashaal.com/?p=231#comments…. i enabled local gravatar… this the url my members are using to assign their own local gravatar “http://www.bashaal.com/images/catfly.png” thank you for ur help

  338. Gravatar abdi

    kip i am have sorted the problem it was just clearing the catch in IE

  339. Gravatar Laurent

    re Kip ^^

    can you explain me :

    System Cron:

    * add the following cron job:
    0 * * * * /usr/bin/php /full/path/to/wordpress/gravatars2-cache-refresh.php >/dev/null 2>&1

    where wan i do this and how ?

    thx

  340. Gravatar Kip

    @Laurent: You can use the CronMonkey plug in. Or you can do it manually. See here and here for more info.

  341. Gravatar Viper007Bond

    @Viper007Bond: Doing that, though, somewhat defeats the purpose of using cron. The idea is that users don’t ever have to wait for your server to get images from gravatar.com. That’s why it’s better to use a system cron job if possible.

    Well it’s not updating every single cached Gravatar when WP-Cron runs, only the Gravatars that have expired, correct? By running WP-Cron often, I hope to cut the number of Gravatars being updated down. I also have the timeouts nice and low.

    As for a normal cron, yeah, I know that would be better, but I don’t have access to setting them up currently. I hope to get one up soon. :)

  342. Gravatar Laurent

    thanks for your answers, i think all is ok

    but i dont find where users can change their local gravatar
    there’s nothing about it in user’s profile, only in user admin menu, is it normal ?

  343. Gravatar Kip

    @Viper007Bond: I suppose it’s a preference thing. I’d rather most (if not all) of the people browsing my site to not have to wait for the gravatar.com server. So, reducing the frequency that wp-cron runs is better (preferably to 0, if you have system cron).

  344. Gravatar Kip

    @Laurent: See Here

  345. Gravatar Laurent

    It’s wonderfull, thank you very much for your plugin and for your support !!

  346. Gravatar Viper007Bond

    @Kip: Yeah, I just realized that. Better one person have to wait a few seconds than lots of people having to wait for a split second.

    *goes to poke his buddy/host to add a cron for him*

  347. Gravatar Stephen Chu

    Thanks for the great plugin. It helps a lot when gravatar.com is slow recently. I did mod the code to include a size parameter in the gravatar_path to create and serve cached resizes. The reason for that is I use avatars in different sizes in different parts of the blog. 40 px for the author and 30 px for the comments, for example. IE and FF on Windows scales the images aliased (read: ugly) so I use GD to create anti-aliased resizes.

    If you are interested, I can send you my modified gravatar2.php.

    Again, thanks for the great work.

  348. Gravatar Kip

    @Stephen Chu: Sure. Just send it to kip @ this domain.

  349. Gravatar Marcu5

    Does anyone know if this works with the comvatars plugin, the one that combines the gravatars and favatars (favicons) plugins?

  350. Gravatar Kip

    @Marcu5: I just checked out the comvatars plugin, and noticed some minor things that will keep it from working with Gravatars2 plugin. Most notably is the check for “gravatars.php” plugin and not “gravatars2.php” plugin.

  351. Gravatar Richard Silverstein

    I have a question about unzipping the plugin within the root directory:

    Unzip the Gravatars2 package in the WordPress root directory.

    What does this mean? I’ve never seen plugin installation instructions asking you to do this. Usually, I unzip the file & then place the files in the directories specified. I’m not sure what it means to unzip the file WITHIN the root directory.

    I tried to upload the zip file itself into the root directory but I see no way to unzip the file once it’s in that directory. Am I missing something?

    Also, gravatars.com seems not to be serving my gravatar which uses an old Tom Werner gravatars.php file. If I upgrade to this plugin will gravatars.com serve my gravatar?

  352. Gravatar Kip

    @Richard Silverstein: You can place the files manually if you want. Just put them in the same paths, treating the “root” of the zip file as the Wordpress root. If you copy the zip file to the WordPress root, then run “unzip” or “tar -xvzf” from within a Windows or *nix prompt, then all the directories & files will be put into their proper places automatically.

    Upgrading to this plugin will not affect whether or not gravatar.com serves your gravatar correctly. You may need to post a support request in the gravatar.com forum.

  353. Gravatar Marcu5

    Hey Kip! I’m trying to somehow make the comvatars plugin work with your version. Right now I’m working myself through the code, would be nice if you could point out to the significant differences. ;)

  354. Gravatar Marcu5

    Well, think i got it working for now, though that’s kinda hard to say since gravatar.com is a little down ;)

  355. Gravatar Kip

    @Marcu5: You probably found this, but the main thing I noticed was the check for “gravatars.php”. Changing that to “gravatars2.php” might be enough. The function calls should be backward compatible with Skippy’s version (for now).

  356. Gravatar weasel

    Is there any way we can get a template-tag function that displays something similar to gravatar_profile(); ? I really want to keep my users out of the wordpress interface, but want to retain the ability to have locally uploadable images.

  357. Gravatar Kip

    @weasel: Probably not any time soon. I’ll add it to the list of requests, but it doesn’t seem like something too many people would want, and it would be reinventing a lot of the wheels in WordPress. Perhaps check out comvatars to see if that does what you want in regards to local avatars?

  358. Gravatar Marcu5

    Hmmm, not really, but that’s no problem :)
    … but somehow i fear that the comvatars plugin requires caching to be disabled, which would render all your nice improvements useless :(

  359. Gravatar Marcu5

    Hey Kip!
    I finally got it working real nice, but i had to change your gravatar_path() to only return the default gravatar (in case there is no cached avatar) if no $default is supplied, since the comvatars plugin uses this to supply the favicon fetched by the favatars plugin.
    You should definitely change that since it also overrides any $default supplied to gravatar_image_link() ;)

    @weasel: the comvatars plugin should help you there

  360. Gravatar Richard Silverstein

    Kip: Thanks for yr reply.

    run “unzip” or “tar -xvzf” from within a Windows or *nix prompt, then all the directories & files will be put into their proper places automatically.

    Though I don’t consider myself a complete dolt, I’ve never used a Windows prompt to unzip a file. If my ignorance doesn’t impose on you too much, would you let me know how to do this. I’d VERY MUCH like to have the files & directories go automatically to their proper places rather than having to manually do this.

    Of course, I could place them manually but there seem to be so many diff. files & directories that I’m not sure I know where ea. one should be placed.

  361. Gravatar Kip

    @Richard Silverstein: If your Wordpress Installation is on a Windows server, and you have GUI access, then just use that to unzip the file into the root of the Wordpress installation. Or unzip them locally how you are used to, and then just copy the entire directory structure to the root of the Wordpress install.

  362. Gravatar killercup

    sorry kip, please ignore my previous comment. it was my mistake and i m too stupid to see it…

  363. Gravatar Stahn

    I don’t know why I’m getting 43 bytes GIFs instead of the correct image…

    The Plugin “works” (parses correctly) but the problem is that I don’t know why I’m getting that 1X1 GIF.

    I don’t want to be a hassle, but please check the site the fastest as possible since it’s not intended to go “live” yet.

    Thanks :)

  364. Gravatar Kip

    @Stahn: See Here

  365. Gravatar Kip

    @Stahn: Also, there appears to have been (or may still be) a problem with gravatar.com’s API — so it was caching the 1×1 GIF instead of returning “no gravatar”. I’ll test some more to figure out what the API is doing (or not doing).

  366. Gravatar Stahn

    But I have a gravatar associated with my email (I’ve been using it for months), so I assume it’s a timeout from gravatar.com server, and wait for the upgrades (check gravatar.com Blog).

    I remembered that some months ago I installed Skippy’s Gravatars without problems…

    Thank you again for your fast response :)

  367. Gravatar Kip

    @Stahn: This is a gravatar.com problem, Skippy’s plugin would be showing the same problem. It’s not just your gravatar image, there are others on here that are doing the same thing. Here is the direct link to your gravatar.com image:
    http://www.gravatar.com/avatar.php?gravatar_id=427df283de98be9fa456625a239f6dda

  368. Gravatar Ingrid

    Thanks for this great plugin. Would you consider supporting the new wordpress.com avatars ? That would mean checking if people have entered a wordpress.com blogname in the URL field, and then caching the avatar from Wordpress.com ?
    I for one would find this very useful, but maybe I am the only one?

  369. Gravatar Kip

    @Ingrid: That sounds like something more applicable to the Comvatars plugin (which currently combines Gravatar, Favatar, & local avatar functionality).

  370. Gravatar Kip

    @Marcu5: FYI: I snuck the bug fix that you submitted into the latest 2.5.1 emergency release: the supplied $default is now returned by the gravatar_path function.

  371. Gravatar Viper007Bond

    Any clue why I’m getting this error message when I try and refresh my cache (either via the button or the cron script)?

    Fatal error: Call to undefined function mb_strlen() in [...]/wordpress/wp-content/plugins/gravatars2.php on line 419

    http://www.viper007bond.com/phpinfo.php

  372. Gravatar Viper007Bond

    Using version 2.5.1 BTW.

  373. Gravatar Kip

    @Viper007Bond: Schnikes. I didn’t realize that wasn’t a default extension. I will work on a fallback function that doesn’t use mb_strlen. In the meantime, check to see if you can enable mb_strlen on your server: http://www.php.net/manual/en/ref.mbstring.php

  374. Gravatar Kip

    @Viper007Bond: I changed the code so that now it checks the actual filesize rather than the data stream size. Please update to version 2.5.2 and try again.

  375. Gravatar Steffen

    @Kip:
    I appreciate your support and your fast updates, but please give us a changelog, so that we now, what files to replace.

  376. Gravatar Kip

    @Steffen: It’s at the bottom of the README file.

  377. Gravatar Steffen

    Yes there’s a changelog, but no informations on what files have changed?!

  378. Gravatar Kip

    @Steffen: The 1st word in the change log (after my name) tells you what php file was changed.

  379. Gravatar Kip

    @Steffen: PS: You can always do what I do when I move the files from development to production: replace them all.

  380. Gravatar Jess

    Hope this is working ^^

  381. Gravatar Jess

    This is just Great !!
    Thank You, and i’ll make a link to your plugin website ;)

  382. Gravatar Jussi

    Beautiful, Kip, just beautiful.

    At first the cache was filled with “NO GRAVATAR (E)”, but changing the timeouts, and clearing & refreshing cache fixed all that.

    Works like a charm and pages load in a snap.

    A very big special thank you!

  383. Gravatar rmolina

    test

  384. Gravatar Keith

    I’ve just upgraded from Gravatars 2.5.0 to 2.5.2 and for my visitors without a Gravatar (shame on them!), instead of getting my configured default avatar, I get - ‘img src=”32″‘, an example is at http://cr0wley.freepgs.com/?p=251#comments
    I’ve re-saved the Gravatar configuration, purged and refreshed the cache to see if that helps, but to no avail. The default avatar icon is configured to point to /wp-content/themes/k2/images/defaultgravatar.jpg but I’ve also tried http://cr0wley.freepgs.com/wp-content/themes/k2/images/defaultgravatar.jpg Any ideas? Thanks in advance!

  385. Gravatar Kip

    @Keith: Hmm. Well, not sure why it would be doing that. You might try to click “Reset” in the Gravatar options, and then reset the options you have changed — then delete & reload your gravatar cache. Let me know if that works.

  386. Gravatar tinyau

    @Kip:I have encountered the same problem as Keith. I have followed your procedures but the problem is still existed.

  387. Gravatar Keith

    Thanks for the swift response Kip. I’m afraid that didn’t help so I’ve had a dig through the K2 comments.php;
    “>” class=”gravatar” alt=”" />
    I would imagine that if “X” (where-ever the hell that’s defined) isn’t fed through, the URL might resolve to point at ‘32′? I’m not too hot with this stuff but I’ll have a proper wade through the code and see if I can figure out where this is broken. I’ll post back if I find anything.

  388. Gravatar Keith

    Blast, I thought a [quote] around that PHP might allow the render to see it as plaintext. Translated, it’s
    [a href=”http://www.gravatar.com/” title=”[?php _e(’What is this?’,'k2_domain’); ?]”][img src=”[?php gravatar(”X”, 32, get_bloginfo(’template_url’).”/images/defaultgravatar.jpg”); ?]” class=”gravatar” alt=”[?php _e(’Gravatar Icon’,'k2_domain’); ?]” /][/a]

  389. Gravatar Kip

    @Keith: I see what happened now. I actually fixed a bug in the latest release that was ignoring the default gravatar parameter in the “gravatar()” function call. This K2 comments.php file is passing “32″ as the 2nd parameter (which is the default gravatar override). Just remove that (and probably the rest of the parameters in the function call), and it should work. I actually recommend using the gravatar_image_link function as detailed in the Installation Instructions.

  390. Gravatar Keith

    I’d got so used to having plugins ‘just work’ with K2, I’d forgotten that Gravatars2 isn’t on the standard list! Please forgive me if I have mis-read the syntax on the stock gravatar site, but isn’t the second parameter the size? I believe the third parameter is the default icon. Anyway, I’ve ripped out that whole hunk of code and replaced it with gravatar_image_link so as soon as Gravatar site starts responding (it’s under heavy load atm for some maintenance) everything should be back up and running. Another good reason to cache the Gravatars!

  391. Gravatar Kip

    @Keith: The Gravatars2 plugin is not the same as the one on the gravatars.com site. The bottom of the README file has some of the syntax for this plugin. It’s on my “to-do” list to document the full syntax for the functions — but most people will just use the default that is on the Installation Instructions.

  392. Gravatar Keith

    No worries Kip, I had assumed you were maintaining compatibility with the original gravatars function. Sorry to have taken so much of your time with a flawed implementation on my part. At least I’ve learnt a lot from checking through the code. Thanks again for your assistance and a truly excellent plugin.

  393. Gravatar ProphetJoe

    Hi Kip,

    Thanks for the plugin. I have a couple of functional questions. My gravatars seem quite large — I’ve tried adjusting the size parameter, but to no avail. What size setting are you using? I tried flushing the cache, but then got no gravatar back from gravatar.com when I tried a new post. To my surprise, the word SUCKAGE!!! came out just above a question mark gravatar — although when I refreshed the page, it disappeared!! Has anyone else had that happen??

    How do I change the comment.php file to align the gravatar to the right side of the comment instead of the left side? I also see that you alternate backgrounds on your comments (I have as well), but your admin comments use a third background. color. Can you explain how you did that as well?

    Thanks,
    Prophet Joe

  394. Gravatar Kip

    @ProphetJoe: I’m using size “48″. Getting no gravatar back from gravatar.com is very common. I removed the rougue “SUCKAGE” message that I had been using for testing. Oops. :) You can download the latest 2.5.3 release to get rid of that. It only shows up when the gravatar downloaded from gravatar.com should have been valid, but wasn’t (the reason for the previous emergency release).

    As for the comments styles on this site, I just used the default I believe, but added the “Author Highlight” plugin to highlight my comments. You can see view the comments.php file I’m using on this site to see how I did it.

  395. Gravatar ProphetJoe

    Thanks Kip!

  396. Gravatar ProphetJoe

    Kip,

    I’m still having issues with the size. I set mine to 48 also, but I’m still getting a large format. See http://prophetjoe.com/?p=5 test page… any ideas what I’m missing??

    Thanks!

  397. Gravatar Kip

    @ProphetJoe: See my reply in comment #57 and comment #197.

  398. Gravatar kulit

    hello. I don’t really know what i’ve done wrong in the installation process, but mine just says gravatar on it. id really appreciate any help. thank you.

  399. Gravatar Kip

    @kulit: I just looked at your site and it looks like it’s working to me.

  400. Gravatar James

    The installation instructions mention adding a .postgrav definition to the CSS. I haven’t seen that definition in use when the plugin is active on my blog, and I don’t see it in use here. What does it control?

  401. Gravatar Kip

    @James: It’s the style for gravatars used in posts (rather than comments).

  402. Gravatar kulit

    yes. finally had it working, i dont know how lol. except that i cant an assigned gravatar to work,
    this keeps popping up
    Local Image File NOT FOUND. The system default has been used instead.

  403. Gravatar James

    Thank you for responding so quickly!

  404. Gravatar Adrian

    I noticed several comments regarding this error:

    “Warning: Missing argument 2 for httprequest() in /myaccount/wp-content/plugins/gravatars2.php on line 320″

    I am getting this error too, and am wondering what the resolution was. It seems to save the gravatar just fine, so I am wondering if this is something I should be concerned about.

    Also, I have several authors on this site, and I have had everyone’s gravatars get cleared out for no apparent reason. Could that be a related issue? Thanks in advance for your help!

  405. Gravatar solace

    i had the plugin working great, but w/ the last 2 upgrades, i’m only getting the text “Gravatar Icon”

    when i view the URL of the cached gravatar:

    http://www.morecowbell.net/wp-content/gravatars/global/b4513cb40570a31cd0755946ecdcbe2b

    it just wants to download it (it sees that it’s binary tho). i’m guessing it’s a mime-type issue w/ my server config, but i haven’t changed anything lately, and it was working last week.

    any ideas/suggestions?

  406. Gravatar kulit

    I also get “There was an error copying the gravatar. The system default has been used instead” when I type in a remote address.

  407. Gravatar solace

    nm, i got it straightened out ;)

  408. Gravatar Kip

    @solace: In case anyone else runs into the same problem, can you let us know how you fixed it? Thanks.

  409. Gravatar Kip

    @kulit: Try using a global gravatar. I’m pretty sure I’m going to take the local gravatar functionality out of the next release. That should be a separate plugin, and I think the Comvatars plugin supports something like that.

  410. Gravatar Kip

    @Adrian: I’ll add that the bug-list. I don’t think the 2 are related.

  411. Gravatar Dee Dee Warren

    Hello, I have just activated and downloaded this plug-in and am using a local gravatar but all I get is a box that says “gravatar.” Help!

  412. Gravatar Kip

    @Dee Dee Warren: I just looked at your site. It looks like it’s working to me.

  413. Gravatar Dee Dee Warren

    Hello, yes I figured out something silly I am doing. However, I am having some tremendous problems with the CSS. I am using the suggested CSS code listed here, but I am lost what might help it conform to my site.

    i.e. I wanted to have the comments appear below the gravatar with the name and time to the right of the gravatar, right now it wraps hideously and they are not lining up properly. The bottom of one gravatar doesn’t clear the top of the next one.

  414. Gravatar Justin Frydman

    @Justin: I was just trying to have get-recent-comments to work with gravatar2.

    Open get-recent-comments.php and find the line:

    $comment_gravatar = "";

    so it reads this:


    if (function_exists('gravatar')) {

    $comment_gravatar = "comment_author_email) .
    "\" alt=\"\" width=\"$gravatar_size\" height=\"$gravatar_size\" class=\"kjgrcGravatar\" />";

    } else {

    $comment_gravatar = "";

    }

    excellent plugin, although i wish it would cache multiple sizes of a gravatar (i used 2 different sizes on my website).

  415. Gravatar Kip

    @Dee Dee Warren: I’m sorry, I can’t help with styling issues. That’s not my forte. :)

  416. Gravatar bunorte

    Hello,Kip:
    I am using your plugin no on my wordpress 2.0.5 @ a Windows Server 2003.I have no idea how to change or add MIME Type to support show up gravatar in my post?The url is like http://www.guimod.com/blog/wp-content/gravatars/global/8a7e4f38***********4e1491e

    If possible,could you send me your MIME Type config?Thanks!

  417. Gravatar Dee Dee Warren

    @kip: I somehow bungled through it and got it styled. It wasn’t so much a CSS issue but putting the comments.php form. I needed to rearrange the order a bit and put a “clear” tag to move the text away from the gravatar. Check it out now, it looks much nicer.

  418. Gravatar Kip

    @bunorte: Sorry, I’m a *nix guy, so I don’t know how to change the MIME types on Windows.

  419. Gravatar Joe

    Glad to see that your continuing development of a really great plugin, but I have 2 minor problems with your install information.
    First:
    You say only to put the extracted content into the Word Press dir, but do you think maybe you could add a file list like
    / (wordpress dir)
    file1.php
    /wp-content/
    something else

    Second, do I really need the cron? I’m not sure why it’s needed but any way… :-) Thanks…

  420. Gravatar Joe

    I’m, not sure if you got my last comment, but everything’s a bit buggy.
    Take a look at this page http://blog.fileville.net/?page_id=121, it works, but the images are different sizes, and when I refresh the page I get different things happening. Some gravatars show up, while others cannot be displays (but show up I view the image) when I refresh again, it sometimes displays all the gravatars and other times doesn’t.

  421. Gravatar Kip

    @Joe: The zip file contains the directory structure the files belong in, so just unzipping into the wordpress root will put the files in their proper directory structure. If you want to do it manually, just duplicate the structure that is in the zip file.

    Your site is not cacheing the gravatars — perhaps that option is turned off? Cron updates the cached gravatars “offline” (without a user having to wait for the gravatars to be cached).

  422. Gravatar mofu

    Thank you for nice plugin!
    I referred to your Installation Instructions and was able to introduce this plugin into my blog.
    Thank you…

  423. Gravatar Joe

    I did turn off caching, but it still does not work, and why is it that some of the images are large while others are small? The smaller ones are what I set the size to. But it’s mainly the default image that does not shrink.

  424. Gravatar jfpcreations

    Thanks you for this plugins, really nice personalization.

  425. Gravatar Kip

    @Joe: It is recommended to use the cacheing feature of this plugin, as that is the main reason it was written. The gravatar.com server often times out, which is why some of your non-cached gravatars are not showing up. Enabling cacheing will fix this (AFTER the plugin is able to cache all the images). See above comments for your problem with the default gravatar not being resized (short answer: this plugin doesn’t resize it).

  426. Gravatar Joe

    OK, what would the cron code be? I’m not good at it… So I just have to resize the image? OK… Thanks…

  427. Gravatar Kip

    @Joe: Cron instructions are toward the bottom of the Installation Instructions on this site. Yes, you will have to resize the default image.

  428. Gravatar ESC

    OK.

    I got all of the plugins installed, made the necessary changes to the stylesheet, and even changed my comments code required for K2 template users.

    YET…all I get is a default question mark where the gravatar should be. I have a feeling it’s something stupid and obvious I forgot to do…can anyone help?

  429. Gravatar Kip

    @ESC: It’s probably a problem with gravatar.com server not serving up the gravatars. You can go to the Manage->Gravatar Cache page, and see if there are any “(E)”’s there. If there are, then there was a problem retrieving the images from gravatar.com (very common). You can delete them, and manually “Refresh” to try again.

  430. Gravatar ESC

    yep. there seems to be a big retrieval problem for alot of my regular commenters, but hopefully that will resolve itself eventually - or I’ll keep deleting and refreshing. what’s MOST important is now MINE works ;)

    thanks!

  431. Gravatar Kip

    @ESC: A tip: Just delete YOUR cached gravatar (click the [X] under your name in the Gravatar Cache management page), then “Refresh”. That way, it will only try to fetch your gravatar. Once you have yours retrieved, then you can let Cron (or WP-Cron) do it’s job to fetch the others. :)

    UPDATE: I see I misread your previous comment. Yours IS working now. Just for the record, the problem is with the gravatar.com server timing out. If you weren’t using this plugin, then you would just have a blank (or broken) image instead of the default image. The gravatar.com server was supposed to have been fixed, but it doesn’t appear to have been.

  432. Gravatar Joe

    OK, thanks… :-)

  433. Gravatar caschy

    Works fine, but users with no gravatars doesnt get the standard “no gravatar” - pic, only a text with: “gravatar icon”. See commenter “telly” in this post:
    http://stadt-bremerhaven.de/2006/11/07/zum-kotzen/

  434. Gravatar The Marmot

    For some odd reason, I can’t seem to get the border property in the gravatar CSS to show up. At the risk of possibly asking a question already answered, do you know why that might be?

  435. Gravatar Kip

    @The Marmot: I’m sorry, I am not able to help with styling issues. You might check to see if you have conflicting styles. The “Web Developer” Firefox extension is very useful for that.

  436. Gravatar eyespi

    I’ve uploaded all the files as instructed, but no avatars show (just red x’s) and have double checked my path to the folder where they are.

    It also says “WARNING! WARNING! WARNING!
    /home/kemark9/public_html/wordpress/wp-content/gravatars/global
    is not writable.

    Gravatar caching will be disabled until this directory is made writable.” however I’ve set all folders to 666 or 777 as needed, so they should be writable.

    Please help.

    Thanks!

    Margaret

  437. Gravatar Kip

    @eyespi: Folders should be 777. I browsed to that path, and it didn’t appear to exist. A bit of digging around and I found the gravatars folder under the plugins folder. That is not correct. Please view the path structure in the gzip file and duplicate it, or unzip it into the wordpress root to have it place the directories where they are supposed to go.

  438. Gravatar Ogarite

    test my gravatar

  439. Gravatar Ogarite

    ?? still missing

  440. Gravatar Lauren

    The theme I am using, XXX cant tell about it.., has gravatar support “built-in”, so I didn’t have to edit my comments file at all, but I guess it is only built to support the original plug. I’m not sure what I would have to edit to make it work guessed what it is.

  441. Gravatar Kip

    @Lauren: You’ll have to follow the Installation Instructions. I cannot help with individual themes, as that would be an insurmountable task given the large number of themes that exist. Most of them should use a similar “loop” when outputting the comments, though. If you can’t locate it, I’d suggest asking the author of that theme, and/or people on a support forum for that theme, if one exists.

  442. Gravatar Xavi Ivars

    I’ve just installed this plugin, but I can’t make it work: it always show the default plugin.

    I don’t know what can be the problem…

  443. Gravatar vyim65

    Hi Kip

    Lately I’m using another new WP theme and has gravatar support built in.

    I’ve downloaded to the admin panel and activated the Gravatars2 plugin, but at the admin panel OPTION for gravatars shown an error :

    WARNING! WARNING! WARNING!
    /home/tropicb8/public_html/bettersmarterkids/wp-content/gravatars/global
    is not writable.

    Gravatar caching will be disabled until this directory is made writable.

    Is that due to root directory? I’ve placed gravatars2 to wp-content/plugin/gravatars2.

    Please tell me how to resolve this problem.

    Thanks

  444. Gravatar Kip

    @vyim65: See my previous responses to eyespi & Lauren.

  445. Gravatar Joefish

    The new 2.6.0 looks awesome. This plugin just keeps getting better and better. Thanks Kip!

  446. Gravatar Steffen

    Even if I have disabled the PlugIn, because of gravatar.com server suckage, I would like you, Kip, to delete or correct my comment here.
    Because my german tutorial has moved with my blog to 3CKIG.de.

    Keep up the good work
    Greetings Steffen

  447. Gravatar Mike

    I had a hard time believing you offered this service for so long without donations

  448. Gravatar mholtum

    I used your gravatar plugin a few yrs ago and loved it. I recently setup a new blog and finally got the correct code to implement it into wordpress 2.X with K2 and the default theme. Works great! When might your site be back online so I can register a new gravatar?

  449. Gravatar Jussi

    Thanks for the update, Kip! Now we just wait for things to work on gravatar.com. :-)

    (RSS feeds on this site don’t seem to work, btw.)

  450. Gravatar Joefish

    Is there a problem with 2.6.0? Ever since upgrading, I haven’t been able to retrieve any new gravatars. I’ve seen blogs using the basic plugin from gravatar.com retrieving new images, but mine no longer does. A pal of mine has asked me for help with this same issue.

    Is anyone else able to retrieve new images with 2.6.0?

  451. Gravatar Kip

    @Joefish: I will fix it this evening. Since gravatar.com was not responsive when I released 2.6.0, I was not able to test it properly. Grumble grumble. :)

  452. Gravatar Joefish

    Awesomely outrageous. Thanks Kip!

  453. Gravatar Kip

    I determined the problem is that now the gravatar.com REST API is no longer working. I emailed Tom to hopefully have it fixed. In the meantime, I have been coding yet another kludgey work-around, and am now entirely frustrated. I may finish this tomorrow.

  454. Gravatar Byutiful

    Why is my gravatar not showing in my site :(

  455. Gravatar Kip

    Released v 2.6.1 - includes a kludge “fix” for the gravatar.com REST API not working. Default is to NOT use the REST API, but the option should be set to “Yes” once it starts working again — more efficient, less kludgey.

  456. Gravatar _ck_

    Since gravatars doesn’t seem to be ever coming back from the dead, how about a switch to myfavatar.com or something like that?

  457. Gravatar Kip

    @_ck_: I believe there is already a plugin for that? Favatars? Comvatars? Something like that. :)

  458. Gravatar Joaquín

    I translated a this plug in to Spanish but many of the content of the admin page is still in English. __() function isn’t used in many parts. Any idea if this will be changed in next releases?

    When this is done I’ll gladly submit the .po and .mo files.

  459. Gravatar Lisa

    how do I set up my global gravatar? I tired going to gravatar.com but the site is down…

  460. Gravatar eve

    Test

  461. Gravatar ChrisH

    Kip, nice work… i’ll be trying this out and give you feedback afterwards…

    thanks!!

  462. Gravatar David

    Hello!

    Nice work!!

    Only one question: can I integrate “Gravatars2″ with bbpress?

    Thanks for your respone ;).

    Regards,
    David

  463. Gravatar Kip

    @David: I’m not sure; I’ve never used bbPress. If it uses the same admin panel, and similar templating system, then it should work fine. Try it and let us know! :)

  464. Gravatar iplinger

    test

  465. Gravatar Premasagar

    Well, it seems that Gravatar.com is finally back online! So we should get some fresh avatars streaming in…

    FLICKR BUDDYICON PLUGIN
    I have written a plugin that adds Flickr BuddyIcon capabilities to Kip’s Gravatars2 plugin. Basically, when the Gravatars2 plugin cannot find a gravatar for a user, the FlickrBuddyIcon plugin uses the user’s email address to see if they are registered on Flickr.com - and if so, it uses their Flickr BuddyIcon as their avatar.

    You can download the plugin at: http://premasagar.com/code/
    It will be moving to its own plugin support & discussion page soon…

    Premasagar.

  466. Gravatar MM Web

    Test

  467. Gravatar MM Web

    Improvement Suggestion:
    Local Gravatars are linked to gravatar.com. Instead they should link to the profile’s website.

  468. Gravatar Muskie

    I’ve been using your plugin for a while along with Get a Gravatar and the OpenID plugin. The latter never seemed to work properly. gravatar.com has been upgrading for a while and I got tired of trying to make everything work…

    However I upgraded to WordPress 2.1 and I went through and started upgrading and getting rid of some plugins. Yours is working. And it was kinda working before the upgrade, but not for every user.

    A random Chinese person recently stopped by and when he left a comment his Gravatar just worked, but others that used to work stopped working. After the upgrade his gravatar is working, mine is working, my local gravatar works, but my friend Dave who I know registered one, isn’t showing up. Perhaps it is just a timing issue, I’m forced to use WP-Cron.

    One feature I would like to see, is a gravatar for my blog. I often link to old posts of mine, which shows up as trackbacks from my blog. The gravatar for this is just the default question mark. I’d like it to be something different, but still would like the default question mark. Any ideas?

  469. Gravatar David

    @kip, did you received a post/comment I sent here some days ago with the Gravatars2 improvements I had done to use your plugin with bbPress? If not, tell me in order to resent my message to the discussion board.

    You no need to publish this comment, only respond me by e-mail if you want.

    Bye!

  470. Gravatar Kip

    @Muskie: I haven’t tried WP 2.1 yet. It’s on my to-do list.
    @David: No, I didn’t get it.

  471. Gravatar @llm0n3y.w5

    On my comments & all users I see only default blank_gravatar.png, but I have avatar on gravatar.com… What’s wrong?

  472. Gravatar Kip

    @@llm0n3y.w5:
    What’s wrong is that you tried to spam this site in what appears to be a very directed way. I’ve never seen that before. As you can see, I’ve removed the links to your website, and changed your name so no search engine can pick it up. Go away now, you are not welcome here — even if you have a legitimate question — I hate spammers - you are a spammer.

  473. Gravatar _ck_

    Looks like Gravatars is finally back!
    http://site.gravatar.com
    Has anyone tested/updated the plugin for compatibility?

  474. Gravatar d.f.h

    yes, it works perfectly for me.

  475. Gravatar Sandra-Lia

    Actualy, i use in WP 2.1; and i get the Gravatar, but it don’t load the right Gravatars and displays only the standartgravatar. What i done wrong?

  476. Gravatar _ck_

    Looks like it remembered my old account too, I just had to reset my password to get in. Now let’s see how long it takes to update here, though I guess there might be a long cache timeout set since it was down for so long?

  477. Gravatar Test

    test

  478. Gravatar Slowfinger

    One more test.

  479. Gravatar Erhan

    Doesnt work for me

  480. Gravatar Kip

    There’s a difference between the plugin not working, and the gravatar.com service not working. Check the Gravatar Cache in the admin panel, and click the link on the md5 to check the gravatar.com service directly. If that doesn’t work, there’s nothing this plugin can do about it. If it does work, then clear the cache & reload it. It seems like this plugin works with WordPress 2.1 - no problems. The gravatar.com service is still a bit flakey at times. This is not the place to discuss the gravatar.com service. Go to gravatar.com for that.

  481. Gravatar 800A

    test.

    cuz in my site don’t work :(

  482. Gravatar Kaminiko

    Yay, your plugin is awesome! Works like a charm. :)

  483. Gravatar Rogier

    Cool plugin!

    Testing 1..2..3.. Why doesn’t the plugin check if the emailadres filled in doesn’t have an account at gravatar? Now I have to fill in the special gravatar-tag, linked to the same email-adres as the one I filled in at the email-form.

    Does it work?

  484. Gravatar ovizii

    Hello,

    I am using your plugin, vers. 2.6.2 (latest at this moment) with wpmu. It works fine so far still I cannot choose a local gravatar… I have enabled the use of such, but I cannot see where to choose a local gravatar. Could you maybe give me the url so I can see how the link looks like to chose an avatar?

    Or is it directly in the page where I can change my name, password, etc?

    regards
    ovidiu

  485. Gravatar Jay

    Great plugin but is it ready for the new gravatar 2.0 system?

  486. Gravatar Kip

    @Jay: The new gravatar.com 2.0 system uses the same syntax for retrieving images as the old one did. So, yes, it’s ready. However, the new system still seems to be a bit quirky — nothing I can do about that.

  487. Gravatar loic

    super plugins !

  488. Gravatar sky

    nice work
    thank u!

  489. Gravatar mario

    nice plugin but gravatar not workig well.

  490. Gravatar Kip

    @mario: Unfortunately. You might try posting something about it on gravatar.com blog/forum.

  491. Gravatar TaloX

    Hi!
    I use your great Plugin. But no Gravatar will shown. :/ I had install it as you described. i got no Error Msg. or so. It is a bit tricky.

    TaloX

  492. Gravatar theddy

    Hi

    The gravatars are displayed. But when I refresh the cache I get the message

    Gravatar Cache Refreshed. 27 Gravatars Updated. 0 Images Cached. 27 Caching Errors.

    What this means?

  493. Gravatar James

    All of the “pre-gravatar.com 2.0″ gravatars seem to have retained their ratings, and rating your own gravatar is now a mandatory part of the upload process, so it really isn’t necessary to change the plugin’s “Default Rating” to ‘X’, as mentioned on the front page.

  494. Gravatar Pablo

    Testing 1 2 3 :)

  495. Gravatar Kip

    @James: No, it’s not mandatory. I’ve done it twice without rating the gravatar. They get an “X”. I’ve tested several people’s gravatars to find out they were rated “X”, even though the images should not have been. The image upload process will sometimes take a really long time and/or time out, so people may leave, and come back. When they do, their image is there, with an “X” rating — but they may not realize that they need to change the rating. So, anyway, if you still disagree, just try it and see.

  496. Gravatar piratis

    Hi,
    just testing my avatar. I’ve installed your plugin on my new site (piratis.org) b ut no luck with the images… Let’s see if it works here.
    Thanks and keep up the good work!
    piratis

  497. Gravatar Hans69

    the new gravatar service don´t work for me :( is there any new information when they will fix the problem?

  498. Gravatar James

    That’s very strange. Once I get to the rating screen, the only way to proceed forward is to click on one of the four possible ratings. I suppose that if I closed the browser window or went to a different site after the first step, the gravatar would still be added to my account with an ‘X’ rating, but I don’t see why anyone would intentionally do that. I haven’t seen the upload process time-out yet, but it suppose it could have, especially on the launch day of gravatar.com 2.0.

  499. Gravatar Owen

    I’ve just had a problem running the plugin on my blog: (http://www.u-g-h.com)

    It turned out that $_SERVER[’DOCUMENT_ROOT’] wasn’t assigned on my installation (could be because I’m running on Windows). I fixed it by changing the line to:

    $doc_root = ABSPATH;

    (ABSPATH seems to be used in other places in the script). Just thought I’d document it here in case anyone has the same problem.

  500. Gravatar Terje Hauger

    Hi. I am trying to get your program to work, but for some reason the path to the gravatar image is (very) wrong:

  501. Gravatar kit

    to be honest, i’m just posting this because the gravatar is showing up as default on my wp blog, and i wanted to know if yours registered that i actually have a gravatar or not.

  502. Gravatar kit

    and it’s not. which means it’s a gravatar problem rather than your plugin. :/

  503. Gravatar Mohamad

    hi its not working on my site

  504. Gravatar mryoung

    test

  505. Gravatar Martin

    Hi there!

    Really good work, Thanks!

    As I appreciate your plugin, I did following:

    * Upgraded your grabatars2.php with missing translations.

    * Made a French translation.

    A diff file and po files (default and fr_FR) are avalaible. Don’t hesitate to send me a mail! :)

    Martin

  506. Gravatar testing

    to be honest, i’m just posting this because the gravatar is showing up as default on my wp blog, and i wanted to know if yours registered that i actually have a gravatar or not.

    me to :)

  507. Gravatar Benjamin

    Test

  508. Gravatar Mark

    I’m trying to get th gravatar2 plugin working on my blog, however all that displays is the local default image. I’m just posting here to see if my gravatar shows up here.

  509. Gravatar Storm

    I’m also having problems. The local gravatar showed up fine but the link on the image leads to the gravatar site and not to my own site like other commentator’s unlocal gravatars do.

    My newly registred gravatar over at the gravatar site doesn’t show up either. The control panel shows a gravatar found for about one in fifteen commentators. Maybe it just isn’t widely used.

    Anyway, the plugin was easy to set up. A bit worried about the pageload speed when using this, but since I hardly have any comments it won’t be much of a problem.

    Thank you for the plugin!

  510. Gravatar BeRKA

    I wonder if this will worka at my site? :-?

  511. Gravatar chm

    testing… gravatars are not shown on my blog.

  512. Gravatar Bernard Doddema

    My Gravatar not being recognized so had to use local. Checking to see if this will pick it up.

    First time using Gravatars and yours is an awesome plugin.

  513. Gravatar redhalo

    test

  514. Gravatar Magnum_IP

    It is an interesting plugin.

  515. Gravatar c.urdaneta

    Thanks for the plugin Kip
    Let’s hope the new Gravatar site fix the problems

  516. Gravatar Mike

    Thank you! I have been waiting for the re-release!

  517. Gravatar shamsul

    i got a problem too..all are fine except there is no image on the post comment,just a box and the link to gravatar.com inside.

    i dunno where the image goes!thanks

  518. Gravatar Mark

    Three days later and now the icon is appearing… I guess gravatar isn’t dead.

  519. Gravatar Storm

    Yes, Gravatar is back! Some people may need to reassociate their mail addresses with their icons. I did that and refreshed my weblog cashe and it came up straight away.

  520. Gravatar James Farquhar

    Test

  521. Gravatar crazybjörn

    Test

  522. Gravatar sean

    test

  523. Gravatar _ck_

    I like to let my visitors upload their own image if they are too lazy/paranoid to register with gravatars - the problem is they have no restrictions and can send a 400k 1024×768 image if they want.

    Here’s a super simple fix, though it needs a sharpening routine added at some point:


    find the line if ($filename) {
    and after it add
    gravatar_resize($filename);

    then add this anywhere at the end or so

    function gravtar_resize ($filename) {
    global $gravatar_options;
    list($width, $height) = getimagesize(ABSPATH."wp-content/gravatars/local/".$filename);
    $new_width = $gravatar_options['gravatar_size'];
    $new_height = $gravatar_options['gravatar_size'];
    if (($new_width != $width) || ($new_height != $height)) {
    $image_p = imagecreatetruecolor($new_width, $new_height);
    $image = imagecreatefromstring(file_get_contents(ABSPATH."wp-content/gravatars/local/".$filename));
    imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
    imagejpeg($image_p, ABSPATH . "wp-content/gravatars/local/$filename", 98);
    }
    }

    borrowed and tweaked from php.net manual

    php can go crazy on extremely large images/sizes so probably should throw in a check for anything insane, ie. > 1500k 4000×4000

  524. Gravatar David

    Hi Kip, do you remember me? :)

    Sorry, I’ve got too much work and I can’t post this comment before.

    Here you have got the Gravatars2 code editted to work with bbPress: http://www.masquedominios.com/scripts/gravatars2.zip; see the readme.txt file in order to get more information about what I have edited and how to install this plugin to work with bbPress.

    You can see it working fine there: http://www.mosenchufem.com/forum/ (please, don’t send “test” messages - thanks!).

  525. Gravatar Pete

    Great, thanks!
    I can’t believe how easy this was to implement on my blog.

    Still a bit unclear about the “cron” stuff. Should I turn that on (activate the pluggin), or is there more to do? What does ‘requires skippy…’ means? Never mind. Very happy with the rest.

    Thanks, Pete.

  526. Gravatar Bill

    testing my gravatar. my guess is it won’t work :-)

  527. Gravatar Hasan

    Let’s test our gravatar

  528. Gravatar Hasan

    Hi Kip, first of all: thanks a lot! Everything is working just fine.

    I’ve been browsing through the comments displayed above to see whether someone else had the same question I have at the moment, which is related to showing the gravatars at the posts (so not only the comments).

    It looks like Dean and Badkarma9000 had some sort of the same question, but I couldn’t find the answer I’m looking for.

    I have got a couple of authors (

  529. Gravatar Hasan

    sorry, shouldn’t have used the tag for ‘less than’.
    […]I have got a couple of authors (less than 10) posting news and discussion items on the weblog. For the sake of recognition I want to add their gravatars to their posts (and not only to their comments belonging to a post)

    Correct me if I’m wrong, but it should be possible with your Gravatars2 plugin. I’ve tried it by editing the index.php as you’ve instructed Badkarma9000 earlier, but no luck so far…

    Is there any way you can help me out with this? Thanks in advance!

  530. Gravatar _ck_

    Just to double-check, local gravatars that are specified by URL will NEVER expire unless the user goes in and delete it with a blank submission, correct?

    I am having a problem where my own local gravatar seems to disappear every other week or so.

    Second question which you may have answered somewhere already and I will search again, if I want to use a real cron job to update the cache, should I just call function gravatar_cache_refresh() ? But where would I disable the internal self-update, I can’t quite seem to figure it out…

    Thanks as always!

  531. Gravatar _ck_

    Okay there is most definitely a bug with local gravatars.
    They are constantly getting deleted. Both mine and visitors.

    I suspect there is a flaw in the code when it tries to check if the user has a gravatar on the remote system. Basically if there is a local gravatar defined the system should never check the remote server for that user.

    I’ll have to try to hunt down the bug over the next few nights.
    I think I am also going to implement local uploading, not just via url.

  532. Gravatar David

    I’m having the same problem as solace mentioned above. I just upgraded your plugin from 2.5 to 2.6.2 and now the default image I use for the gravatarless is not showing - the words “gravatar icon” are there instead.

    Here’s an example:

    http://umoja.co.uk/2007/03/05/coming-home/

    Any ideas how to solve this?

  533. Gravatar Tek

    at least I am not the only one having issues!

  534. Gravatar Nien

    Thanks Kip, it’s working so far!!

  535. Gravatar edwardhey

    thank u~
    i’m using…

  536. Gravatar Ale

    Thanks!

  537. Gravatar DawnK

    test

  538. Gravatar Ale

    where’s my avatar? :)

  539. Gravatar Ale

    why my gravatar isn’t appearing? :(

  540. Gravatar Moh

    Nice work!
    Thanks!

  541. Gravatar Renee

    Love it! Works great! Thanks!

  542. Gravatar Paul

    Just testing…..

  543. Gravatar Bronwyn

    test.

  544. Gravatar Bronwyn

    hmmm. Testing.

  545. Gravatar Dee Dee Warren

    testing

  546. Gravatar Dee Dee Warren

    No gravatar, though I have a gravatar account

  547. Gravatar Joel Rothschild

    Testing.

  548. Gravatar Daniel

    Thanks

  549. Gravatar Michael

    Testing, thanks.

  550. Gravatar