Warning: PDOStatement::execute() [pdostatement.execute]: SQLSTATE[HY000]: General error: 145 Table './skippy_skippy/h_sessions' is marked as crashed and should be repaired in system/classes/databaseconnection.php line 269
skippy dot net

Gravatars feed icon

I've updated my gravatar plugin to use the new Gravatar REST API. The new API makes it considerably easier for plugins to query the existence of a gravatar, which makes my plugin considerably easier! A few bugs have been squashed, too.

NOTE: this version is called gravatars.php, with an s. If you used a prior version, be sure to deactivate it first, else you'll have function collisions and your blog will break.

Download the gravatars tarball.
Download the gravatars zip.
Feel free to peruse the README.

INSTALLATION

First and foremost, if you have not yet done so, please fix Bug #902! WordPress versions 1.5.1.1 and above already contain the necessary fix.

Place the gravatars.php file into your wp-content/plugins directory, and activate it. Create the wp-content/gravatars/ directory, if it doesn't exist -- make sure this directory is writable by your web server! Click the Options link in your admin menu, select Gravatars, and set the default options. If you enable local gravatars, click the Users link in your admin menu, select Gravatar, and define a local gravatar image for yourself, if you want one.

Edit your theme's style.css, and add two new definitions:

.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;
}

note: these are the CSS declarations may not work for you. You may want something different.

Edit your theme's comments.php file, like this. We wrap the entire thing inside an if (function_exists('gravatar')) { block to make sure your site doesn't totally break if you disable this plugin for some reason.

USING GRAVATARS

Commenters who have registered for a gravatar will have their gravatar image displayed next to their comments. Anyone who has not yet signed up for an account will receive the gravatar image you defined in your Options page. Registered users who have assigned themselves a local gravatar will automatically have that image assigned.


You can insert a gravatar into any post or page with a simple tag: <gravatar skippy@skippy.net />. If the email address you supply does not have a gravatar, your default gravatar image will be used, instead.

CHANGELOG

2005-07-02: released version 2.6, adding an ALT attribute to the gravatar images used in posts. Thanks Mike for the heads-up.
2005-07-02: released version 2.5 (skipping 2.4). This version should fix random gravatars
2005-06-20: released version 2.3 (skipping 2.2). This version fixes the &s in the links when used to fetch images from gravatar.com -- thanks Gregory! Also included in this version is support for random default gravatars. Thanks to Shane for the impetus and testing. PLEASE read the updated documentation for details on how to use random gravatars. Also note that I am no longer offering or supporting one-click installs through the WP Plugin Manager.
2005-05-21: released version 2.1. This contains a minor, but important, fix for handling allow_url_fopen. The plugin now uses ini_get instead of get_cfg_var, which should avoid some false positives that had been occuring. Thanks to Fredo for a German translation!
2005-04-21: released version 1.9. Minor fixes for valid XHTML (thanks frozenstar) and local gravatar handling (thanks kiesow). This version also introduces support for localization of the text used in the administrative interface. Included in the archive is /wp-content/gravatars/gravatars.po, which you can use to translate the text as needed. Feel free to send translations to me, and I'll make them available for download.
2005-04-05: released version 1.8. The plugin now checks for the value of the server's allow_url_fopen setting. If disabled, the plugin automatically disables caching gravatars. Updated the caching and looping, to hopefully improve performance. On some servers (like mine!), this plugin can introduce noticable delay. If that bothers you, simply disable caching and all gravatar images will be pulled from gravatar.com. (Note: this plugin is designed to make gravatars more reliable, not necessarily faster!) Updated comments.php template to properly assign gravatars to trackbacks and pingbacks.
2005-04-02: released version 1.6, with special thanks to Adam for fixing a bug with how image sizes are handled.
2005-03-29: released version 1.5, which significantly improves options storage in the database. Also introduces a new cache expiration verification method using the database, instead of the filesystem.


  • BeerLuver
    Umm I tried adding editing the comments template as instructed here... and it didn't work. It brought up an error: Parse error: parse error, unexpected T_STRING And that was directly related to that code I added as per your instructions. Any thoughts on why this isn't working? Also in the Admin panel; I am using WP 1.5 with the default theme, when I click on Gravatars in Options, there is nothing there. No options, no anything... just a blank page. I'm lost here as to why this isn't working :(
  • skippy
    The blank option page is due to bug 902. Apply the patch attached to that bugnote, and your Options pages will work as expected. The T_STRING error you received is probably due to line breaks that snuck into my sample code. Refresh the example, and make sure you don't have a line break in your template.
  • BeerLuver
    OK.. thanks for the reply. Although, I have no clue HOW to apply the patch that's attached there o.O heh weird.
  • Carsten
    Yup, I also get a PHP parse error using exact code, and a blank Gravatar Options page in the admin menu. Thanks for any insight that you may be able to provide :-)
  • Carsten
    Nm... answered while I was typing... Darn I'm slow :-)
  • BeerLuver
    Got the Options page to work :) Thanks for that info. Now when I added that code to comments template... I get a new error: Parse error: parse error, unexpected $ I'm about to just give up... too tedious just to get this working :( Plus is there a specifc location ON the comments.php file this code should be placed?
  • skippy
    Here is my complete comments.php file, which should serve as an example.
  • BeerLuver
    Cool. Got it working after it brought up another error in which I had to replace the time of day code with: (?php comment_time() ?) ...() in place of obviously heh
  • skippy
    Good catch, BeerLuver. I'm using the time of day plugin to provide fuzzy timestamps. Glad you got it working!
  • March 26th, 2005
  • March 26th, 2005
  • cat
    hmm... when i try to edit the comments.php i lose my entire comment page. HELP! what am i doing wrong? i was pasting that gravatar code right after the tag like you have in your php. i'm using the default kubrick theme and i'm trying to edit that. so far after about 2 weeks with wordpress all i have learned is that it hates me. :)
  • cat
    oh, wait! i got it to work! woo! (it would have probably gone a lot smoother had i actually activated to plugin. oops. *sheepish grin*) thanks for this plugin though. i have been fighting to try and get gravatars on my site for some time. this made it really easy for a gal who can't figure out php for the life of her! ;)
  • Frederik
    Hi there, I've just started to use your plugin and have several problems: 1. The comment page takes about 0.5 sec. generation time per comment when the plugin is active. It seems that comments from authors without gravatars cause the delay. 2. If I deactivate gravatar caching the img src is empty giving me missing gravatars.
  • Frederik
    And as a sidenote: 2. also happens if a user choses to use a local gravatar - even though it is correctly displayed in the gravatars-plugin-menu.
  • skippy
    I introduced a silly mistake, which broke gravatars when not being cached locally. The latest version fixes this. Download links in the post above are updated, and the one-click installation is updated, too. On some hosts, this plugin may slow things down a little. It introduces a modest delay here on skippy.net, but it's not too bad. If you're concerned about performance, contact me by email (or the Contact link in the sidebar), and we can discuss it.
  • c. s.
    That seems like a rather inefficient way to cache images if you ask me. Asking the page that displays the entire comments to access a remote site and process the information is not a very good implementation as it makes the entire page load much more slowly. There's no doubt that caching is good as is allowing users to have their own avatar for each site. I just don't think this implementation is the best way to go about it. Maybe I'm just opinionated because I wrote my own script back in November that emulates gravatar.com's avatar serving script.
  • skippy
    C.S.: there's no doubt that the cache mechanism could be improved. It's something I want to look into, for future updates. You're of course welcome to improve the caching in my plugin, since I released it under the GPL; but it'd be great if you could send me a patch with your improvements.
  • s1amson
    Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/wp-content/plugins/gravatars.php on line 247
  • s1amson
    Fatal error: Call to undefined function: time_of_day() in /srv/www/htdocs/wp-content/themes/red-train/comments.php on line 19
  • s1amson
    Parse error: parse error, unexpected T_ELSE in /srv/www/htdocs/wp-content/themes/red-train/comments.php on line 37 fun fun fun.
  • Justin
    Just like to say a big thank-you for writing this plugin. It works great :D
  • skippy
    s1amson: "invalid argument supplied for foreach()" is because a foreach loop was passed only one item. This is most likely to occur the first time you run the plugin, when you have only one cached gravatar. "Foreach one item" spits a warning. "Call to undefined function: time_of_day()" is because I'm using the fuzzy time plugin, as I mentioned above. I've edited my comments.php example to remove this. "parse error, unexpected T_ELSE" is a most likely due to a missing closing brace. Take another look at my comments.php file. If you still have problems, feel free to email me your comments.php file, so I can see what's happening. Justin: thank you for your feedback! I'm glad it's working for you.
  • March 29th, 2005
  • Jennifer
    Oh cool, I will have to try this out!! *gets excited*
  • Justin
    Hmm... it doesn't work well with Kubrick's oddcomment code, which makes alternate comments have different styles. Basically in Kubrick comments are done with list items, and your code just breaks it wherever I try to put it. Either the images refuse to stick to their respective comments, or the styling is screwed up from the 2nd comment onwards. Not sure if that makes sense, I'm not good at PHP either. :(
  • skippy
    Justin, Here's an example of how to use gravatars with Kubrick's comments.php. Style to taste.
  • Justin
    Thanks, I've settled that now. Only thing left is the words wrapping under the gravatars. How do you line up all your comments neatly and have the gravatars stick out on the left?
  • skippy
    Justin: my gravatars are lined up the way they are due to their use of the gravatar class, as declared in my stylesheet. I'm not a CSS guru, so I relied on Jennifer to properly integrate gravatars into my layout. A quick trick you can use is to put <br clear='all' /> right after the call to comment_text(), like this: <?php comment_text() ?> <br clear='all' />
  • Justin
    Alrighty, I've got the CSS layout done up nicely. Good stuff.
  • BeerLuver
    Ah dangit :( I updated this plugin to the 1.5 version you just put out... now my gravatars don't display the proper way I had them before. Before I set the gravatar size to 40 so it sized them down a bit... now that doesn't work and they show up out of alignment. Any clue as to why this occurred?
  • BeerLuver
    Nevermind, figured it out ;). I simply added a width statement to the CSS code and that worked perfectly. Example: .gravatar { float: right; padding: 3px; margin-right: 5px; margin-left: -50px; margin-bottom: 5px; width: 40px; border: 1px dashed #000; background: #fff; } .postgrav { float: right; padding: 3px; margin-right: 5px; margin-left: 5px; width: 40px; border: 1px dashed #000; background: #fff; } Shows up like this: http://www.mindwiped.com/gurlrider/?p=62 ... perfect heh.
  • J.M. Hardin
    I don't know what I was doing wrong, but every edit gave me the T_ELSE error. I'm using the Default (Kubrick) theme. I ended up having to copy everything from the example file between the "You can start editing here" and "if you delete this the sky will fall on your head" but I got it to work. Yea!
  • April 1st, 2005
  • April 2nd, 2005
  • Brendan
    Right, well after fighting with this for a good hour or so I have given up. Is there any reason why setting the size in the gravatar options doesn't work? I get stuck with huge 80px gravatars.. I'm trying to use 15px gravatars in line with my layout, but no joy..
  • skippy
    The "size" option in my plugin is only used when requesting an image from gravatar.com. The gravatar request format tells gravatar.com what size images you want, so when my plugin requests an uncached image from gravatar.com, it should receive the size you requested. If you left the options at their default values and took a peek at your blog, you will have cached images at the plugin's default size. Simply change the default size, delete the locally cached images, and view your blog again. My plugin does not enforce image sizes, so you'll want to make your default gravatar image at the appropriate size. One way to enforce gravatar sizes would be to do something like this, in your comments.php: <?php $foo = get_option('gravatar_options'); $gravatar_size = $foo['gravatar_size']; ?> Then, modify the gravatar img declaration to look something like this: <img src="<?php gravatar('$comment->comment_author_email'); ?>" size="<?php echo $gravatar_size; ?>" />
  • If Else
    Alternatively, it's probably a better idea to just use css to resize the gravatar images. BTW, thanks again Skippy for the brilliant plugin!
  • Adam
    If you left the options at their default values and took a peek at your blog, you will have cached images at the plugin’s default size.
    Wrong. If I manually append &size=32 to the $gravatar variable, the sizes work fine. Even with caching disabled, the size declared in $grav_options['gravatar_size'] does not do a thing. I will have a poke around the code a bit more and see if I can find out why.
  • Adam
    I found the bug. Line 350 of gravatars.php reads the following: if ($grav_option['gravatar_size'] != '') That should be: if ($grav_options['gravatar_size'] != '') Adam.
  • skippy
    Thanks, Adam! I'll update the archives immediately.
  • Davyd
    Hey Everyone I got it to work .. but for people without gravatars, it just shows "Get your own gravatar for comments by visiting gravatar.com" and the Alt text is "Visit (the comment's author name)" This is really weird, as I thought it shouldbe showing the default pic/gravatar (as set in the Options menu)....with the alt txt being: "Get your own gravatar for comments by visiting gravatar.com" Any ideas? Cheers D
  • Ross
    Thanks for the tips! It works fine!
  • duard - Carlos Aquino
    it´s very good :-D
  • April 6th, 2005
  • Ozh
    Rofl at beerluvr's headbanging avatar :))
  • heriyanto binduni
    hi, it was great but i found on line 23, add_options_page('Gravatars', 'Gravatars', 9, __FILE__, 'gravatar_manage');the __FILE__ make the option pluggin link error 404 on windows xp pro, apache 2, php 5.04. so, i just change it to simple 'gravatars.php' to make it work. same problem with line 25. also one point, could you just define one variable so it makes us easy to change the location of gravatar. right now i have to change all wp-content/gravatars if i want to put gravatar on different location. once again, thanks.
  • Father Luke
    Baby, it rawks. Skippy does it good. Okay, Father Luke
  • Jeff Swanson
    If someone doesn't have a Gravatar, is there a way to set a "Default" image to show in it's place...? If so, where do you place the code for it? My site address is: http://www.jeffswanson.com Thanks!
  • skippy
    Jeff: yes, you can absolutely define a default gravatar. In the Options admin menu, select Gravatars. The section labelled Default gravatar image allows you to specify either a local or remote image to use for all people without a gravatar. For example, anyone with an orange question mark next to their name in the list of comments above does not have a gravatar. The orange question mark is the defualt image I assign, which is located at /images/blank_gravatar.png.
  • david
    I'm getting the following error ... any suggestions? Warning: Unable to open 'http://www.gravatar.com/avatar.php?gravatar_id=1f41ce7b88907fcc4ed4ec751fe48241&rating=PG&size=40&default=http://david.fallingrock.net/wp-content/gravatars/blank_gravatar.png' for reading: No such file or directory in /home/david/fallingrock/david/trunk/wp-content/plugins/gravatars.php on line 465
  • Jeff Swanson
    "Options admin menu, select Gravatars" When I do that, I get a blank page. I log in, Select options, I then select gravatars, then blank page. I'm still in the wordpress interface, but a blank under gravatars. Is there a way to mod the gravatars.php file directly?
  • skippy
    Jeff: it sounds like you have not yet fixed bug 902. Fix that. If you still have problems, let me know.
  • Jeff Swanson
    How do you implement the patch? where does it go? thanks for all your help :-)
  • Father Luke
    Anyone ever seen this in the Gravatar section of the dashboard? Fatal error: Cannot redeclare gravatar_menu() (previously declared in /home/virtual/site197/fst/var/www/html/wp-content/plugins/gravatars.php:23) in /home/virtual/site197/fst/var/www/html/wp-content/plugins/gravatars.php on line 22 I'm using Wordpress 1.5-beta-1 2005-01-25 if it matters, and I have implemented the patch. Funky, man ! Really wild. kay, Father Luke
  • Jeff Swanson
    Ok, I got the page to caome up...now I get this at the top... WARNING! WARNING! WARNING! allow_url_fopen is DISABLED on this host. What do I do about this?
  • Jeff Swanson
    ok, I got the default gravatar to work...wow, my brian hurts. I can calulate the distance's between stars quicker then I can do this! What is that warning about though? WARNING! WARNING! WARNING! allow_url_fopen is DISABLED on this host.
  • Father Luke
    Hi Jeff. I don't know anything, but I noticed that if you put this: http://www.jeffswanson.com/wp-content/gravatars/blank_gravatar.png Into your browser it works. But there is the problem: How to get your blamk Gravatar to show up. There is a dash ---> /
  • Jeff Swanson
    that would be "brain" hurts... can't spell any longer...just seeing code!
  • Father Luke
    Yeah, I know. If you look at the properties for the default image at your site you will see that it is missing a dash. I borked the code witing the explanation here. I dunn'o why you are missing a dash where it matters. Skippy is someplace resting, man, no doubt from all of our screaming and knashing of teeth. Hey? You ever see the get a gravatar plug-in they hae out now? It's here: http://txfx.net/2005/03/11/wp-gravatar-signup/ It's rilly kewl, but I can't get it to work. Okay, Father Luke
  • skippy
    Jeff: allow_url_fopen is a setting for PHP that determines whether the filesystem operations (like copy, rename, etc) are allowed to operate on remote files (via URIs). On many hosts, this feature is enabled; but on some hosts (like yours), this feature is disabled. This is not something that can be changed at runtime, for security reasons. This gets set once, for the entire webserver. Having this option disabled at your host simply means that the parts of my script that copy the image from gravatar.com to your local cache will not work. The warning message (which may be a little dire, I guess) is my attempt to let you know that caching of gravatars is disabled. The plugin will still work, by fetching images directly from gravatar.com. You just won't be able to save local copies of them.
  • April 15th, 2005
  • InFnit
    How do I remove the "Get your own Gravatar for comments by visiting Gravatar.com" bit? Great btw, just the annoying ad ;)
  • Erin
    Hey, did we ever get a solution to Father Luke's problem?:
    Anyone ever seen this in the Gravatar section of the dashboard? Fatal error: Cannot redeclare gravatar_menu() (previously declared in /home/virtual/site197/fst/var/www/html/wp-content/plugins/gravatars.php:23) in /home/virtual/site197/fst/var/www/html/wp-content/plugins/gravatars.php on line 22 I’m using Wordpress 1.5-beta-1 2005-01-25 if it matters, and I have implemented the patch. Funky, man ! Really wild. kay, Father Luke
    Because that's the problem I'm having... I did what the read me said about bug #902 before getting this error, did I not do it right?
  • Erin
    Oops I forgot to close the blockquote x.x
  • April 17th, 2005
  • InFnit
    Ok got that fixed - dunno how :S I wanna modify this so it works for posts as well, I changed all the "comments" in the code that I inserted in the index.php to "post" like $comments to $post but it didnt work.
  • skippy
    Erin: The problem Father Luke had was caused by a beta version of WordPress 1.5. If you're using a beta version of 1.5, please upgrade. I have not tested my plugin against anything other than an official 1.5 release. InFnit: Tell me a little more about what you're trying to accomplish. Are you trying to display a gravatar for the post's author? Or are you trying to do something else? And a question for everyone: Given the growing number of comments in this thread, would a dedicated disussion forum be useful? I've been thinking of installing bbPress...
  • InFnit
    www.argetland.bobos.ca (Sorry bout teh cr4ppy h047 :P ) See my comments show the authors gravatar but when I view single posts or posts on the index it shows a blank gravatar: <code snipped by skippy> Please help :)
  • Andor
    What a funny thing... I'll try it
  • cat
    for some reason gravatars of people who aren't in my "cached" images aren't showing up. if i click NO for cache gravatar, they show up - but the one i have set as a default goes away - it just becomes a text ad for gravatars. that wasn't explained very well, was it? sorry. only right now, everyone who comments gets my Question mark Gravatar..i seem to have made them all go away. HELP! (currently i have "cache gravatar" enabled...)
  • April 19th, 2005
  • April 19th, 2005
  • kiesow
    hey, i just wanna tell you, that there's a bug with local gravatars in version 1.8 to fix you have to go to line 276 "foreach ($commenters as $commenter) {" and add before this a new line with "$gravatar_local = get_option('gravatar_local');"
  • skippy
    kiesow: you're right. That was an oversight on my part. Fixed. Also fixed is a problem with valid XHTML formatting of the gravatar img when not caching.
  • Elana
    Could someone please put up directions on how to install the patch 902? There are a couple of people who had problems, and I can't figure it out myself.
  • April 22nd, 2005
  • April 22nd, 2005
  • cat
    my host has disabled allow_url_fopen so the caching is disabled. is there a way around this???
  • skippy
    Cat: no, allow_url_fopen is controlled solely through php.ini. If your host has disabled this, there is no provision to override it. You can still use my gravatars plugin, but local caching of the images will be disabled.
  • Carina
    Super cool!
  • Bionic
    I have some trouble with your Plugin an the kubrick Theme. When i post a comment to my own post,i can't see my Gravatar neither the default one :-(
  • Bionic
    Strange, i can see your gravatar on my site - but not mine on yours?! Does gravatar.com need some time to aktivate my gravatar? I have just signed on today at gravatar.com. Greets and thx for testing ;-)
  • skippy
    Bionic: yes, there is a delay for gravatars to be processed and rated. This is all done manually, still: Tom personally reviews each submitted gravatar to assign its rating before approving it.
  • Bionic
    Ah OK, now i'm still waiting for my gravatar :-D Thanks for your reply skippy ;-)
  • cat
    Thanks, Skippy! I guess I can survive without the caching. I love this plugin so I'm keeping it activated.
  • tGriff
    Say, I am getting the same error as a previous commenter stated:
    Fatal error: Cannot redeclare gravatar_menu() (previously declared in /home/griffhome/www/www/wp-content/plugins/gravatars.php:23) in /home/griffhome/www/www/wp-content/plugins/gravatars.php on line 22 I get this error when I select "gravatar" in the options menu and also in the Users menu... I applied the patch as stated in the readme... The gravatar is inserting the "?" and my gravatar... and it slows down my pages considerable... Have you started the bbb yet? That could be good! Thanks! tGriff
  • tGriff
    using WP 1.5 stable release... :-)
  • skippy
    tGriff: I've only seen that error when someone is using a 1.5 beta release. Can you please confirm that you've installed the official 1.5 "strayhorn" release? If possible, delete all core WordPress files, and then put the 1.5 strayhorn files into place. As for speed: yes, my plugin can slow things down a wee bit. If you like, you can disable caching, insteading fetching all gravatars directly from gravatar.com -- that seems to improve speed for most poeople. I've not yet installed a bulletin board. You're the first person to mention it! Without a large interest, I'm terribly motivated to install it.
  • Crow
    So, do you need the gravatar.php plugin in addition to the gravatars.php plugin to make the gravatars plugin work? Thanks Crow
  • Glutnix
    Thanks Skippy! You did a really good job on this plugin! BTW, the default setting pointing to blank_gravatar.png is missing an initial / for some reason... I did install with one-click though :)
  • Glutnix
    Also, the comments.php code you provided doesn't use the default image size configured in settings :( it's hard-coded to 80x80
  • Glutnix
    Also the <gravatar foo@bar.com /> doesn't use the configured size. Would be nice to be able to apply a class or something to gravatars inserted this way. Also, the example <gravatar foo@bar.com> gravatar options page is missing the closing slash. Sorry to pick your plugin to pieces, but it's nearly there :D Keep it up :D
  • Glutnix
    Oops, just realised that post gravatars have class="postgrav" on them... cheers!
  • April 29th, 2005
  • skippy
    crow: you do not need both gravatar.php and gravatars.php. The current version of my plugin is named gravatars.php, and that is the only one you need to use. Glutnix: thanks for pointing out the errors. The one-click version is currently lagging in updates. I neglected to package a new one-click version for several of the most recent changes. I'll try to remedy that shortly.
  • April 29th, 2005
  • Crow
    Skippy, I've installed the plugin, and I think I did everything right. I have a custom theme, but it doesn't have a comments.php file, so I am assuming it uses the file in the default themes folder. I pasted your example code into that and have pasted your css from the read me into my css file. So far, the only thing that is showing up in my comments is this: Get your own gravatar for comments..etc. Any idea what I did wrong? Thanks.
  • Crow
    he he he--nevermind. I'll come back with a real question when I can open my eyes. Sheesh. Didn't even see the Options/Gravatars menu. Like this chunky mess: Fatal error: Cannot redeclare gravatar_menu() (previously declared in /home/crowspea/public_html/wp-content/plugins/gravatars.php:23) in /home/crowspea/public_html/wp-content/plugins/gravatars.php on line 22 I edited the 902 bug
  • Crow
    I'll just keep talking to myself. Fixed that last issue. Thank god I'm not in charge of anything dangerous.
  • Crow
    Okay, this time I mean it. My gravatar is showing up on my site (no one else there has signed up for a gravatar yet). I changed the default size parameter in Options/Gravatars to 40, but my gravatar is still displaying at full size. I saw someone else use css to force the size change. Is this the only way to do it? Also, how about a feature request? I have a folder of little gravatars I made locally in the same folder as my local gravatar. I wanted to randomly display them for users who don't have a gravatar. Any way to do that? Thanks. This plugin is very cool.
  • Glutnix
    Cheers for the drop-by on Webfroot, Skippy :) Another idea -- how about a different default gravatar for pings (trackbacks and pingbacks)?
  • clint
    cool stuff indeed skippy...only thing I'm wondering is using: going to be an open invitation to email spam?
  • clint
    heh using code on that last entry made it disappear.. doh... is using your email addy in the code going to be an open invitation to spam? actually i think i need to get some rest.. your tag is php right so it doesnt write to the source?
  • skippy
    Crow: My plugin doesn't actually enforce any size restrictions on gravatars. By specifying the default size, you are setting the size that will be requested from gravatar.com when a new gravatar is requested (and optionally cached). If your local gravatar is too large, you have two choices: manually set the size in the img code (or the CSS); or manually resize the image file to your preferred dimensions. As for random gravatars for people that have not yet signed up: you can do that using conditional logic in your template. That's not the kind of functionality that belongs in the plugin itself. There's several ways to acomplish this: feel free to email me if you'd like to discuss it. For now, I'll leave it as an exercise to the readers -- post the solution to your own blog and I'll link to it. =) Glutnix: It's actually pretty easy to add seperate gravatar images for pingbacks and trackbacks, and doing so requires no modifications to my plugin. This sort of thing should be done in your comments.php template, using conditional logic to check whether the comment is a comment, a pingback or a trackback. If one of the latter two, use whichever image you want. Again, feel free to email me if you'd like to discuss this; and please post your solution on your own blog so that I can link to it! clint: There's no real risk of email harvesting, because gravatar images are keyed off of the MD5 hash of your email address, and not the email address itself.
  • Crow
    Skippy, the plugin is working great. I'd love to try my hand at loading a random image, but have not had much luck figuring out where in the template to insert the random image.
  • father Luke
    Skippy. This is weird. I'm still futzing around with the plugin for Manji. On this page: http://fatherluke.com/?p=174 I took the e-mail addy out from one of the non-gravatared (gravatard?) comments, wallflower, second entry, and the default gravatar shows up where there wasn't a default with a non-registered addy before taking out the addy. How is this possible? Since I cannot get the admin panel working, may I adjust the php file so that the non registered folks get the default gravatar? Howdy Skippy ! Father Luke
  • skippy
    Father Luke: I'm not at all sure what's causing the problem you're experiencing. You're free to make any changes you feel are necessary to the plugin. If you make any improvements, please share them!
  • Crow
    Hey, I got random local gravatars to show up on my site. Here's a link: Scroll down to the bottom comment. Hit reload a few times. Here's what I did: comment_author_email); if ($blank_avatar == $check_avatar) { $show_avatar='/images/avatars/avatar' .rand(1,25) .'.jpg';} else { $show_avatar=$check_avatar;} It checks to see if the result from the gravatar function matches the default gravatar (if you changed it in the admin panel, change it here, too). If it doesn't match, it leaves it alone. If it DOES match, a random image is selected (I know I have 25 images in the directory). And then where the gravatar function used to be, substitute this: " Not terribly elegant, but then I'm not too fluent in PHP.
  • Crow
    Wow, that got severly munged. Here is is again I added this right after the check to see if the gravatar function exists: $show_avatar=''; $blank_avatar='/wp-content/gravatars/blank_gravatar.png'; $check_avatar=wp_gravatar($comment->comment_author_email); if ($blank_avatar == $check_avatar) { $show_avatar='/images/avatars/avatar' .rand(1,25) .'.jpg';} else { $show_avatar=$check_avatar;} ANd then, instead of calling the function in the img tag, I did this " And here's a link to see it. http://www.crowspeaker.com/2005/05/01/14/ Scroll down to the bottom comment. Hit reload a few times.
  • May 3rd, 2005
  • May 9th, 2005
  • Ajay D'Souza
    Hi, I installed the plugin. It works fine but I get this error:
    allow_url_fopen is DISABLED on this host.
    I brought it to the notice of my host who say that the allow_url_fopen is enabled. Verified with phpinfo() Read the post here Please help! Thanks :)
  • May 14th, 2005
  • May 14th, 2005
  • Chelle
    First, this rawks so hard. Love the interface with the admin, my eyes thank you. Second, I may have missed it, does the latest version of your plug in allow the admin to go in and give a local garvatar to users already signed up? Orr mebbe I should be asking, how does the local gravatar work, so I can better understand before I go playing around and break something :D And lastly this is for Crow: how did you call your code for the random image, it's not showing in your comment.
  • Julia
    Thanks for the good work!
  • Annabel Lee
    Hi ! ^^ I've got an error message in my gravatars admin saying : WARNING! WARNING! WARNING! allow_url_fopenis DISABLED on this host. Gravatar caching has been disabled. I've no idea what's wrong and what to do :-(
  • Annabel Lee
    oops ! I've not seen the previous post about this problem, sorry ^^
  • skippy
    Chelle: users can add their own gravatar image through the "Users" admin menu. Users with a userlevel greater than zero have a new sub-menu titled "Gravatar", and here they can manage their local gravatar. I don't have plans to make an administrator interface to override gravatars. If you want to give someone a different gravatar (whether they're a registered user or not), simply find their cached gravatar and replace it with the image you want to use.
  • Karl Bedingfield
    Hi there, I just uploaded the revised plugin and now I get this error: Fatal error: Cannot instantiate non-existent class: cachedfilereader in /home/editor/public_html/news/wp-includes/wp-l10n.php on line 72 Whats this? I am running 1.5.1.1 Thanks
  • Fredo
    Hi, would you mind updating the entry on wp-plugins.net? Thanks!
  • tinyau
    I have encountered the similiar error as Karl Bedingfield. I'm using 1.5.1.1 and when I clicked 'Gravatar' in Option of Admin Panel, the following error is shown. Fatal error: Class 'CachedFileReader' not found in /var/www/localhost/htdocs/wordpress/wp-includes/wp-l10n.php on line 72
  • chelle
    Thanks muchly for the run down. Side effect of having ultimate cosmic admin powerZ- you don't think for a minute there isn't something you can interfere with ;)
  • Gregory Wild-Smith
    tinyau - I got that - deleting the mo and po files fixed it.
  • Gregory Wild-Smith
    So you know - the size things still seems to be broken.. which is kind of annoying.
  • tinyau
    Thanks Gregory Wild-Smith, it's worked now.
  • May 28th, 2005
  • June 2nd, 2005
  • Sproke :0)
    Hey there. Thanks so much for this wicked plugin. I have encountered a problem though. Am using WP 1.5.1.2. Local gravatars are working great, but ones being processed from gravatar.com are not showing up. I have copied your directions excactly, (copying and pasting code) and used the same layout that you suggest to use for the css style sheet. Is it something to do with 1.5.1.2? Thanks again! Heidi :0)
  • Rehan
    Thanks for this plugin! It works great!
  • Unadulterated Arrogance
    Excellent plugin, Kudos to you my friend. I have just one request for you, if the commenter does not have a gravatar profile, the default one is used.. its nice but what if you have many commenters without a gravatar profile? the same default gravatar numerous times makes it odd... would it be possible to have many gravatars which would be chosen at random if the commenter does not have a gravatar profile? Jinu Johnson www.arrogantly.com
  • Nicki
    I'm also getting the Fatal error: Cannot instantiate non-existent class: cachedfilereader in /home/.wadeheater/astralp6/creative-logic.net/wp/wp-includes/wp-l10n.php on line 72 issue with my admin menu. I'm running wordpress 1.5.1.2 Line 72 of that particular file is $input = new CachedFileReader($mofile);
  • Shelby
    Wow, I'll try this at home. This may be a great improvement to what was initially released by Tom Werner. Sadly he is just providing a "plugin" for WP that barly deserves this name. Because I also did improvements on his basic code in the past I'll expect further branches of this cool feature. That probably will confuse WP-Admins and so may lead to not install any implementation at all.
  • Rob
    God, I must be an idiot or something. Can't get the Options page to show for the life of me. I get this: Fatal error: Cannot instantiate non-existent class: filereader in /home/olgas/public_html/wp-includes/wp-l10n.php on line 69
  • Rob
    I applied the 902 bug patch, assuming that the "-" signs meant that those lines were to be deleted and replaced with the "+" lines. And of course, the plus/minus signs were to be removed. I actually tried it both ways (leaving in the "-" lines on the menu-header.php. Neither worked. Something's broken with that wp-l10n.php file.
  • skippy
    Rob: I don't think you're an idiot, I think something fishy is going on with WP's localization, or with my attempt to localize my plugin. You're not the first person to report trouble, unfortunately. Others seem to have had success simply by deleting the gravatars.po file. Have you tried that?
  • skippy
    Rob: I'm beginning to suspect that it's a Windows-specific problem. You and at least one of the other people reporting problems are both on Windows hosts -- you using IIS and tinyau on Apache on Windows.
  • Rob
    Huh, sure enough! Had to delete both the gravatars-en_US.po and the gravatars-en_US.mo files though. Thanks for the tip!
  • Rob
    Oh yeah, that could be. To be honest, I wasn't sure what my host was set up with. At least it's working now. :-) Say, did my second question make sense about the correct procedure for the 902 patch?
  • skippy
    Rob: yes, your question made sense; and you did the right thing. The lines marked with "-" were to be replaced with the lines marked with "+"
  • Joe
    I love the plug-in. Thanks for the work done here. It's being used everywhere! I'm trying to implement it on my site before I really get my posts going, but I'm just having one problem: On the 1st comment of a post, the gravatar has the correct placement (the top lines up with the top of the comment area). However, the 2nd, 3rd, etc., etc. comments have the incorrect placement (the top is above the top of the comment area. Here's an example. I'd appreciate any help here. Oh, one more question...how long does it usually take for a gravatar to be approved by gravatar.com? I guess I could look that up on their site, huh?
  • Joe
    Okay...so, perseverance paid off. I've got it working now. I hadn't copied and pasted all of the code for the comments.php file. I hope I'll still be able to make it work once I've customized my site design (I'm using the wp Default theme now). Oh, and while I was on gravatar.com looking for the answer to how long does it usually take for a gravatar to be approved? (didn't find the answer btw), I happened upon the blog and saw this. Congrats, Skippy, on winning the contest (and the iPod Shuffle!).
  • Jack
    Great plugin, just want to confirm that deleting the .mo and .po files works for 1.5.1.2
  • valerie
    Hey there - Have you noticed any sporadic changing of sizes for any of the Gravatars versions? Suddenly started happening to me with 1.6 and also does with 2.1. I am running WP 1.5, I specify my Gravatars to be 40px but lately ones that aren't cached are coming in at 80px...
  • Joe
    Have you noticed any sporadic changing of sizes for any of the Gravatars versions? Suddenly started happening to me with 1.6 and also does with 2.1. I am running WP 1.5, I specify my Gravatars to be 40px but lately ones that aren’t cached are coming in at 80px…
    valerie - I've noticed that setting the 'Default gravatar size' in the Gravatar Options form does not actually control the display size of all gravatars (I think it only controls them if they are cached). You can control the size of gravatars in 2 ways. (1) Skippy gave the PHP way. Or (2) You can use the CSS way (I think this is simpler)... (a) In your style.css file, add width: 40px; to the .gravatar and .postgrav classes; and (2) In the wp-comments.php file, delete width='80' height='80' (If you don't do this step, the 80px size will override your width setting in the stylesheet.). If you use option #2 and ever want to change the display size of the gravatars later, you can do it by simply updating the width's in your style.css file. My style.css code looks like this: .gravatar { float:left; padding: 1px; margin-right: 5px; margin-left: -50px; margin-bottom: -10px; width: 30px; border: 1px solid #333; background: #fff; } .postgrav { float:left; padding: 1px; margin-right: 5px; margin-left: -50px; margin-bottom: -10px; width: 30px; border: 1px solid #333; background: #fff; }
  • Jonathan
    Cool plugin!
  • valerie
    Oh yes, thank you, Joe. For some reason I guess I thought I already had the CSS for it. I used td.thegravatar img for mine as that's how I have mine coded. Thanks :)
  • Dimitris
    I'm getting this :( please help asap Parse error: parse error, unexpected $ in /home/virtual/site249/fst/var/www/html/macephemera.dimmdesign.com/wp-content/themes/blix/comments.php on line 121 Cheers
  • Dimitris
    I'm getting the below error please help... Parse error: parse error, unexpected $ in /home/virtual/site249/fst/var/www/html/macephemera.dimmdesign.com/wp-content/themes/blix/comments.php on line 121 Cheers
  • skippy
    Dimitris: I won't be able to help without knowing how you've editing your comments.php file.
  • Dimitris
    I've found the error but looks how is showing the avatar now :( http://macephemera.dimmdesign.com/?p=8#comments (it's in greek but scroll down to the bottom to see the comment) cheers
  • Dimitris
    Also the page on the Admin>Options>Gravatar doesn't show up :(
  • skippy
    Dimitris: the display of the gravatar is controlled by the CSS you define. Not knowing how you want it to look, I'm unable to offer specific guidance. I don't know why the Options page won't show. I see that you're using WordPress 1.5.1.2, so you're not suffering Bug #902. Have you tried deleting the gravatars-en_US.mo and gravatars-en_US.po files from /wp-contnet/plugins ?
  • Gregory Wild-Smith
    I finally fixed the annoying size error in the plugin. It was to do with encoded ampersands - gravatar.com wasn't liking them in the url requested by the php. basically I changed the block of code that had lines like this in: if ($grav_options['gravatar_size'] != '') $gravatar .= "&amp;size=" . $grav_options['gravatar_size']; to this: if ($grav_options['gravatar_size'] != '') $gravatar .= "&size=" . $grav_options['gravatar_size']; then added a str_replace when its being passed directly to the page: if ('0' == $grav_options['gravatar_cache']) { // we're not using local cache, so give the gravatar.com URL $gravatar = str_replace("&", "&amp;", $gravatar); return $gravatar; }
  • skippy
    Gregory: nice work. I'll roll that into the official code, for inclusion with future releases. Thanks!
  • Danny
    you guys give any support on using it with "Threaded Comments"? I dont know where to implent and just did on "instinct" but broke everything. Anyone?
  • skippy
    Danny: I've never touched Threaded Comments, so I don't know how to best integrate Gravatars with them. If you figure it out, please share!
  • Shane
    I just decided to use Gravatars tonight, and so I found this plugin and went to work right away. Awesome job on it Skippy, there's lots of great options. However, I (like others) wanted to be able to use a random gravatar for people who don't have one, and so I took a look at the code and made all the changes necessary so that this is now a functional option on the Admin page. It's pretty easy to use, all you do is choose to enable it, then specify a basename, the number of random images and the extension, and away it goes. Works for both cached and non-cached options. It could use some more testing i'm sure, but it seems to work perfect for me (though i don't have any true gravatars to test it with, I've just been looking at the image src's it dumps out). I've made a UNIX diff of the changes from the version I downloaded tonight, and can give you the full working file too if that's easier. Seeing as I'm not 100% sure how to get you these files on the website, I've e-mailed them to you, if you don't get them for whatever reason, just e-mail me. Hope you (and others) find this useful!
  • conc
    can anyone help me here. my garavatar seems to work perfectly with mozilla firefox. but when i view it with internet explorer.. nothing appeared.. did i miss anything? Thanks..
  • conc
    fiiuhhh.. finally it working. I changed the value of the cache timing "How long (in seconds) to cache gravatars:...". to a smaller value. Is it a must to change the value? Thanks
  • Angela
    Great plugin!! Thanks so much!!
  • abstrakone
    You ever thing about having this displayed in the "Manage Comments" area? I think that would be very useful
  • June 20th, 2005
  • Grendel
    Hi Skippy, great plugin! :-) I'm using it at my site, but there seems to be some kind of loop that causes the comments to indent - but that's a FF/css issue (IE and Opera display it properly). If you take a look at http://www.iroke.de/wp/2005/06/17/hello-world/ you'll notice that there's also an additional gravatar field at the comment form. I was logged in as the admin in the admin section, but was logged out before in the blog. The comment posted at June 22nd, 2005 | 11:45 am produced an Admin comment without his gravatar... how come? Cookies? regards, Grendel
  • skippy
    Grendel: the gravatar image on your Admin comment at 11:45 am is the same image as every other Admin comment on that page.
  • Dimitris
    It's me again. The previous problem has been corrected simply because the theme that I'm using was already ready for this lovely plugin :) Although there is another problem now. I've upgraded to the latest version 2.3 of your plugin but if you go here http://macephemera.gr/?p=5#comments you'll see that none of the gravatars can be shown :( What do you think is the problem? Cheers Dimitris
  • skippy
    Dimitris: The source of that page has following: img src="http://macpehemera.gr/wp-content/gravatars/blank_gravatar.png" You have mistype the URI for your default gravatar. Note carefully the domain name.
  • June 26th, 2005
  • AJ
    nice plugin here skippy! a little question if you may, how can you 'disable' the default gravatar from appearing if the user has no gravatar account? i tried leaving the 'Default Gravatar Image' field blank but it messes everything. Even my own gravatar would be changed to "Get your own avatar..." Thanks a bunch.
  • Mystery Wolf
    okay, got my own user gravatar working, but my comments.php file is just too hard to tackle. Comments flow down like a staircase instead of being listed down in a straight line... really bizarre stuff. It's okay, I'll live without it :\
  • skippy
    AJ: to disable the default gravatar for people without gravatars, you'd need to edit your comments.php template file, and use conditional logic to suppress output when no gravatar is present. The function wp_gravatar_info() accepts as input an md5 sum of an email address, and will return information about the gravatar associated with that email. If no gravatar is defined, it will return a 404 status message. Using this, you ought to be able to do what you want. Mystery Wolf: try something like <div style="clear: both;"> after each comment, to avoid the stair-step effect.
  • Mystery Wolf
    Thanks Skippy, looks good now, but is there a way to put some 'breathing space' between the gravatars and the comments? I tried using a but it's not working. Maybe I'm putting the codes in the wrong places.
  • Mystery Wolf
    sorry, i used a code... i said i tried using a code...
  • Mystery Wolf
    ugh, sorry all that mess, keep forgetting that I can't type in php codes. Anyways, problem fixed... added margin to the .gravatar style sheet. Sorry, and thanks again!
  • Danny
    Hey its me again :P I'm wondering if there's a way to just put the users Gravatar somewhere on a page, like in the sidebar? I tried things with md5 and some samples in your README. Even tried modifying the comment version but that ended up with a default gravatar. cheers
  • skippy
    Danny: You can call the gravatar() function anywhere, as long as you pass it a valid email address: gravatar('skippy@skippy.net'); If you want to stick commenters' gravatars in the sidebar, though, you'll likely need to do a lot of CSS jiggery-pokery, all of which is beyond me.
  • Danny
    No its more like for the users that actually registered on my blog. SO they have like this avatar sticking in the sidebar with some shortcuts. Like you have by most forums with those welcome screens. im going back tweaking and playing. I prefer have it loaded from the cache created by this script. would be great cheers
  • July 1st, 2005
  • Mayuko
    Hi, I installed the plugin and almost made it except random images for default gravatar. I followed the instructions and set to "/wp-content/random_gravatars/" for the default images but they aren't shown on the site. When I set to "http://www.mysite.com/wp/wp-content/gravatars/nogravatar.gif", I can see it. I am not PHP expert and I don't know about the code. Could you help me to fix it? Thank you for the great plugin, I like it very much.
  • skippy
    Mayuko: thanks for the heads-up. I've found the problem, and believe I have fixed it. As you can see, I have random gravatars being displayed here, now. I'll get an updated release out shortly.
  • Mayuko
    Hi skippy, thank you for your quick reply and fixing the problem. I am looking forward to the updte release. Well, I have one more question. On my site, trackbacks and pingbacks are shown separately from comments with using another plugin. Is it still ok to use the code on your readme file for comments.php? I don't know the meaning but there is something about trackback and pingback in the code. elseif ( ('trackback' == $comment->comment_type) || ('pingback' == $comment->comment_type) ) I already have the code to separate them before it.
  • ikoko
    Yes.. i'm also got problems withf random default gravatar... please... really need the solution.. thanks...
  • skippy
    Mayuko: you shouldn't need to modify my example code. If the comments are already seperated, then the check in my example code will not harm anything. You can use gravatars for trackbacks and pingbacks just as you would for regular comments. Just remember to call them as gravatars($comment->comment_author_url);. Also note that gravatars() accepts a second parameter after the email or URL, which can be used to override the system-wide default. I did this so that you could use a specific gravatar image for all pingbacks and trackbacks, if you want.
  • Mayuko
    Hi Skippy, Thank you for your reply and updating the plugin. It shows random gravatars now. And for trackbacks and pingbacks, I also used the same code in your ReadMe file and it works great. Thank you very much for your great plugin again.
  • Matthew J. Stinson
    Great plugin, but I've run into a weird, apparently Firefox-only, CSS quirk when implementing it. In IE the comment list boxes (I'm using a Connections-based theme) look fine but in Firefox they do this little dance before settling on a weird irregular pattern, which can be seen on this thread: http://matthewstinson.net/2005/07/04/smooth-sailing/ I tried using clear: both, to no avail. Any ideas?
  • Matthew J. Stinson
    Slight addendum to my last post. On reload/refresh the dancing list item borders appear. The first time the post is loaded they look fine. It's weird. The problem seems to be how Firefox handles CSS as compared to IE.
  • skippy
    Matthew: sorry, I don't know how to help. CSS isn't my strong point. Incidentally, I think the display looks fine -- I see no irregular pattern.
  • Ajay D'Souza
    I am getting this error: Warning: is_file(): Stat failed for ...../wp-content/gravatars/95bc3e5fc853264108191bec33081874 (errno=13 - Permission denied) in ...../wp-content/plugins/gravatars.php on line 344 This warning appears several times
  • skippy
    Ajay: the directory /wp-content/ on your site appears to be empty. My plugin uses the /wp-content/gravatars/ directory for all its caching. If you have caching enabled, you need to have this directory available for writing by the webserver. And congratulations! Your's is the 1,000th comment on my blog! =)
  • July 7th, 2005
  • Daven
    Okay, I downloaded your plugin and configured it correctly. It's showing in my admin pannel. I add the text from your README file to the wp-comments.php file and it breaks. I am using the default template for 1.5.1.3: http://davensjournal.com/wordpress/wp-comments.php What keeps happening is that the blog reads through it and for some reason finds an "extra" } in there. I don't remove it since the code only breaks when the addition to it is in place, and it doesn't seem to matter where I put it. So I'm stuck. I'm officially throwing in the towel. I know NOTHING about PHP and if it comes to a choice between a broke blog and a blog that works but doesn't do what I want it to, guess which I'll choose?
  • angel
    Parse error: parse error, unexpected '}' in /home/yimin/public_html/angel/wordpress/wp-content/themes/mine/comments.php on line 125 :P did anyone figure out how to do this with threaded comments? i have no clue where to insert the php code since the comments.php is really confusing... anyone sucessfully done it with threaded comments? please let me know...thanks
  • skippy
    Daven: you need to add the code to /wp-content/themes/<your theme>/comments.php and not /wp-comments.php. angel: I've not yet heard from anyone using threaded comments with gravatars; though I know it's possible. You might try asking on the WordPress Support Forum.
  • Brett
    I recently found this plugin, I had been using another on for gravatars but i liked your contact form so much i thought i would give yours a try, it installed fine but none of the gravatars are shopwing up on the posts that have them, the only thing tha appears is the default graphic. My site is http://gatewayy.net any ideas would be great! Thanks in advance. :)
  • skippy
    Brett: I'll need to know a little more about how you've implemented the gravatars code. My is not a drop-in replacement for the plugin available at gravatars.com. Did you read and follow the installation instructions included with my plugin? Feel free to send me you theme's comments.php, and I'll take a look.
  • Brett
    Skippy I do not remember if the code on my comments page is from the gravatars main site but I would assume that is most likley the case. I did attempt to replace my existing gravars code with the parts listed in the readme but I must have goofed something along the way, I will email the comments page to you, i appreciate your quick responce. :)
  • Eiline
    cool, this gravatars :-)
  • July 10th, 2005
  • admin
    your site rockes
  • gamemonn
    your site rockes
  • Daven
    I'm now having problems with the random gravatars too. Don't know why. When I point the default setup to a specific image, it displays the icon, but when I leave it blank `/wordpress/wp-content/gravatars/random/` it will not display anything. It's not pulling the image.
  • July 12th, 2005
  • July 13th, 2005
  • tom kim
    I too am having trouble getting the default random directory feature to work. Like the previous commenter, it works fine when I specify a specific image, but doesn't pull random images if I just specify a local directory. Thanks for all the time you've put into this plugin.
  • skippy
    tom kim: I diagnosed a random gravatars problem with one user, and we finally narrowed it down to line 447:
    if (! is_dir(ABSPATH . $grav_options['gravatar_default'])) { return FALSE; }
    When told to serve a random gravatar, his system would always return a blank value. If you're absolutely sure that your random gravatars directory is properly defined, you might comment out the three lines above, by placing // at the beginning of each line.
  • July 16th, 2005
  • Jessica
    Hi Skippy! I'm using WP 1.5.1.3 and inserted the code for the Kubrick theme into the comments.php. I get no errors, but not gravatar too. ;-) My local default avatar is displayed although I tested some user that did register at gravatar with the given email address. Any idea what might be the problem?
  • Mystery Wolf
    hey there skippy, been using your gravatars for about a month now and everything's fine. However, just lately my default gravatar for visitors isn't showing, but my own gravatar is. I'm not using the random gravatar feature, I specifically pin-pointed to only one gravatar for visitors. It's been showing properly before this. What could be the problem? By the way I at the time of writing this I can see that your gravatars aren't showing either. Am I not the only one?
  • skippy
    At this time, it looks like www.gravatars.com is offline. That'll cause everyone not caching gravatars to have trouble.
  • July 18th, 2005
  • Alex
    Apparently the Gravatar domain expired. if you hack the plugin a bit, and use their IP (see 64.124.231.223) you will see, they are indeed still up. hopefully, this will only need to be a temporary fix.
  • July 20th, 2005
  • Mystery Wolf
    Yay gravatars is back!
  • July 25th, 2005
  • LobsterMan
    Hi, I'm not getting the default avatar to work, if the poster doesn't have a gravatar, it just leaves a bland image (in the source it looks like [img src=' '])
  • sokai
    @LobsterMan Try to change the "Default gravatar image: " in the Options-Menu to begin with a slash ("/"). @skippy Thanks for your very nice Plugin. It was the easiest way to install of all plugins I found.
  • LobsterMan
    thanks sokai, it worked. i assumed that if the default didn't have a leading slash, then i shouldn't add one. well, i guess i was wrong.
  • August 3rd, 2005
  • August 4th, 2005
  • Shelby
    Hi Skippy, it after I deleted the cached gravatars, it seems that this also deleted the default image and the localization files installed in the same directory as the cache goes.
  • Alex
    Hmm... i have gravatar caching on, they are caching properly.... but i get the impression that because of the permalinks, i am unable to see the cached gravatars on my site. is there anything i can do about this?
  • Alex
    Ack, never mind, i had the permissions set wrong. i also changed how my permalink structure works (which probably helped too...)
  • August 7th, 2005
  • Rob
    Skippy, thanks for the tip about integration with Kubrick. I'm using the Dark Maple theme which has an alternating style and your tip worked nicely. I seem to be having some sort of permalink problem too. Not sure what Alex did to fix it (his site seems to still exhibit the problem). For me, the default gravatar is not being used and the path to the PNG is all screwed up from the permalinks I'm using. Also, I can't make the default gravatar size any smaller from within the admin panel. Strange.
  • August 7th, 2005
  • Alex
    Okay, i was having trouble with my permalink structure until I changed it from /%author%/%year%-%monthnum%-%day%-%post_id% to /permalink/%author%/%year%-%monthnum%-%day%-%post_id% this seemed to help. dunno if it actually did or not. also, my default avatar wasn't showing up because I forgot to add a / to the begining of it. wp-content/gravatars/blank_gravatar.png is different from /wp-content/gravatars/blank_gravatar.png
  • August 8th, 2005
  • Rob
    Huh, weird. I've got that path correct, Alex, with the initial forward slash. Are you able to change the gravatar size?
  • kelvin
    That's a cool plugin, I am going to give it a try.
  • Alex
    After testing by setting the size to 40 in the option panel, and clearing the cache, the size was unaffected by the setting as far as i can tell.
  • August 9th, 2005
  • kelvin
    One question, how can I register my email address with the gravatar, like
    THank you.
  • Dennis
    Great Plugin! :D
  • August 15th, 2005
  • Greg
    Parse error: parse error, unexpected '}' in /home/mytimein/public_html/blog/wp-content/themes/default/comments-popup.php on line 116 I seem to be having the same issue that a few of the others seem to be having. Is there any particular place that the code that you need to add should be placed? I've tried moving it aound to different places and the error seems to follow it around. I'm using the default Kurick theme on Wordpress 1.5.2. Any help or suggestions would be greatly appreciated. Thanks
  • Berko
    I don't know if anyone is still trying to figure out how to include gravatars in posts, but here is a way to have the author's gravatar show up in every post. The can be modified to user_email; ?>. Just place that where you want your gravatar to appear on the posts (in the loop, of course). Then if you have more than one author, it should show the correct gravatar for the current posts author. PHP gurus please correct my code if necessary.
  • kioshi
    Anyway, more importantly (this we can deal later) I installed the plugin flawlessly in my system (love it btw) but in my friends´ I get the messages: Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site8/fst/var/www/html/WP/wp-content/plugins/gravatars.php:1302) in /home/virtual/site8/fst/var/www/html/WP/wp-admin/admin.php on line 10 Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site8/fst/var/www/html/WP/wp-content/plugins/gravatars.php:1302) in /home/virtual/site8/fst/var/www/html/WP/wp-admin/admin.php on line 11 Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site8/fst/var/www/html/WP/wp-content/plugins/gravatars.php:1302) in /home/virtual/site8/fst/var/www/html/WP/wp-admin/admin.php on line 12 Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site8/fst/var/www/html/WP/wp-content/plugins/gravatars.php:1302) in /home/virtual/site8/fst/var/www/html/WP/wp-admin/admin.php on line 13 When I activat the plugins and tthey are always on his admin panel when its activated, and they also appear after leaving a comment, though the plugin works fine, I mean, after commenting the error appears and you reload, the comment is there with the av, but his admin panel also gives out these errors all the time above the panel when the plugin is activated. And file permissions are all the same on mine and his. Do you know what it could be? Thank you so much.
  • Renata Romanazzi
    I'm having a strange, strange problem with the echo gravatar($comment->comment_author_email); function. It does not output NOTHING. If I change to echo gravatar(comment_author_email()); only the e-mail in plain text is displayed. Any ideas?
  • skippy
    Renata: comment_author_email() is a WordPress function which displays the author's email address directly to the browser. As such, using it inside the gravatar() function will not work. Do you see gravatars at your blog's Options -> Manage -> Gravatars admin panel? Can you assign yourself a custom gravatar at Users -> Profile?
  • Renata Romanazzi
    I "kind of" see the Gravatars admin panel. Only the link exists, but when I click it, nothing shows up.
  • skippy
    Renata: Are you using WordPress 1.5.2? It sounds like you're using an older version of WordPress which suffers from bug #902. Please upgrade at your earliest convenince.
  • molgar
    Hi, thanks for the plugin. I'm trying to make it work in my site, but can't get the gravatars to show after each comment content is drawn, like it does with the supplied code. How can I do it? Thanks
  • MaryJane
    I got the plugin working but it isnt using the set avatar i defined in user - gravatar setting for me. If i set it in options to show the default gravatar then everyone gets that image. But if i set it to random avatars then everyones changes but mine never shows the one i have set in my user panel. And theres nothing in my cache. What am i doing wrong?
  • Psykotik
    Well, I'm not very original :
    Fatal error: Cannot redeclare gravatar_menu() (previously declared in E:\Homepage\Psykotik\blog\wp-content\plugins\gravatars.php:24) in E:\Homepage\Psykotik\blog\wp-content\plugins\gravatars.php on line 29
    My gravatar plugin is the release 2.6. I've used wordpress 1.5 beta, 1.5.1.2, 1.5.1.3, and use for now 1.5.2. No way, getting always same errors. Can't use the admin panel for Gravatar, can't use the gravatar() code, it returns nothing at all. One thought : my webserver doesn't handle the permalinks. Do you use any of these kinds to get gravatar working ?
  • Ben Klinger
    Great plugin. but it is case sensetive, which causes problems.
  • Martin
    WARNING! WARNING! WARNING! allow_url_fopenis DISABLED on this host. Gravatar caching has been disabled. What can i do about this? Can it still work?
  • skippy
    Martin: yes, you can use gravatars. This warning simply means that your host has disabled allow_url_fopen. This is required for keeping a local cache of gravatar images. You can still use this plugin -- gravatar images will be pulled from gravatar.com instead.
  • Martin
    Ok thank you :)
  • Rob
    If I enable gravatar caching, I get the default gravatar. I also get this error where the gravatar from the Internet should be:
    /export/home/unspace/www/wp-content/plugins/gravatars.php on line 512 Warning: Unlink failed (No such file or directory) in /export/home/unspace/www/wp-content/plugins/gravatars.php on line 515 wp-content/gravatars/blank_gravatar.png' alt='' class='gravatar' width='80' height='80' /]
    (note: I replaced a greater-than sign with a close bracket, just to prevent problems with the HTML. If I don't permit caching, I get the Internet gravatars, but the local default goes away. Also, is there a way to view PHP with line numbers? Trying to find line 515 is a pain!
  • Psykotik
    Skippy, do you have any idea about what cause my problem ? As using wordpress 1.52, it can't be related to the bug #902 !
  • skippy
    Psykotik: no, I don't know off-hand what could be the problem. It's not a permalink issue, as permalinks deal with .htaccess and Apache's mod_rewrite module -- neither of which this plugin uses. Rob: a decent text editor should display the line number for you. UltraEdit for Windows does, though it's not free. You could use vim (it's what I use on GNU/Linux), or any number of other free editors.
  • Rob
    Thanks for the text editor idea. Any idea on what's going wrong? I looked through all the comments here, but I'm still pretty new to PHP. My PHP looks an awful lot like Pascal written by someone with a background in Fortran who learned programming in BASIC without an instructor. Thankfully, I don't program for a living.
  • skippy
    Rob: The error results from the plugin's attempt to delete a temporary file as a result of a failed download from gravatar.com. Immediately above the line
    unlink(ABSPATH . wp-content/gravatars/$md5.TMP");
    you could place
    if (file_exists(ABSPATH . "wp-content/gravatars/$md5.TMP"))
    which should suppress the error.
  • Rob
    Thanks. I found an editor -- that makes things much easier! I still get a partial error if I try to cache the gravatars: /export/home/robcarr2/www/wp-content/plugins/gravatars.php on line 512 /wp-content/gravatars/blank_gravatar.png' alt='' class='gravatar' width='80' height='80' /> If I don't try to cache, it works fine. It appears that there's something about trying to download from Gravatar.com that is causing the problem, right? Thanks!
  • Psykotik
    Thanks for your answer. I found wherefrom the problem came : I'm using php 5, which doesn't handle instruction in the same ways. I seriously doubt your are going to code again for php 5, but could you mention this incompatibility ? Tested (and approved) with php 4.4, and I got access the admin's options. Sadly, they aren't displayed when using php 5. Of course, if you feel in the way to code your plugin for php 5... I'll be the first to thank you :)
  • skippy
    Psykotik: thanks for the information! I've not yet touched PHP5, and I don't yet know when I will. If I release a new version of gravatars (which at this point looks unlikely), I'll be sure to mention that it is only for PHP4.
  • September 9th, 2005
  • Kit Jarrell
    Hi Skippy! First off, thanks for all the hard work. This plugin is great. I have a quick question. In my 3-column layout, the gravatars display above the comment. I'm trying to get them to show up alongside, the way your own comment page is. I actually pasted your entire gravatar section from the comments.php that you had up, so I have what you have - and yet it's still showing above the comments. Any suggestions as to what I may be doing wrong? Thanks much.
  • Newbiee
    Fist of all thanx for this plug-in. It works fine but the avatars don't stay right place on my blog an they aren't on the same line. For example please click here. How can i move them right of the page on the same line? I use Kubric Theme
  • skippy
    Kit and Newbiee: both of your problems have to do with the CSS you use to style your gravatars. Alas, I'm not a CSS expert, so I can't provide any specific guidance. I relied on Jenn, who implemented my theme, to properly integrate gravatars. Good luck!
  • Catherine
    OK, I have no idea what to do with the bug-patch - do I eat it?! x_x Any advice would be appreciated... (I also cant get the subscribe programme to work - it keeps looking for a file in my default-template folder, when I'm using the floral-template folder, which just results in a buttload of errors *cry*)
  • Catherine
    I still haven't installed the patch (because I haven't a clue how) but I managed to install the garavatar's blind. However, now I'm just getting a little 'x' (but hey, thats and improvement on before!) - how do I set up a default gravatar? Also, is there a way of adding a bit of padding so the text isn't touching the box round the gravatar? e.g. http://blog.well-of-dreams.com/?p=10#comments
  • skippy
    Catherine: the easiest way to fix bug #902 now is to upgrade to the latest stable version of WordPress (version 1.5.2, at the time of this writing). In addition to bug #902, there are also several important security and workflow issues resolved.
  • Catherine
    wow, I didn't realise upgrading was that easy - thanks Skippy :)
  • valerie
    Hey there - ever have any problems with pages not loading all the way when gravatar.com is down? Or having the page stop at the top of the comment for a user who doesn't have a Gravatar, same person, every time they leave a comment? Both of these are happening to me quite a bit lately and I'm not sure if it's just me or what. Is there a way to have the plugin check if the gravatar.com site is down and if it is, to bail out? Or is it supposed to be doing that already and mine's not working? Ahhh sorry, I know there are a lot of comments here...
  • skippy
    valerie: there's currently no such check. That's not a bad idea. I'll see what I can do.
  • valerie
    thanks :)
  • Bertil Gralvik
    Hi! I don't seem to be able to register with gravatar.com - no confirmation mail. Sometimes it's even hard/impossible to reach their server. Any ideas/rumors? Are they too popular for their capacity? Great idéas makes for a lot of work :-)
  • skippy
    I don't control gravatar.com, so there's really nothing I can do. Like every site on the internet, they too sometimes experience technical difficulties. Have you tried posting to the gravatar forums?
  • chelle
    Thanks for the wicked plugin! chelle
  • Nestor
    no funciona, que puede estar pasando. Gracias.
  • Artchick
    I just installed WordPress, and this is the first plugin I installed. I love the idea. I do have a question, maybe you can assist me - I would like my avatar to sit next to the comment, much like yours does. Currently, it sits sort of above and to the left. Any idea how I could fix this?
  • skippy
    Artchick: you'll need to place the gravatar image through CSS position. Unfortunately, this is not something with which I have much experience.
  • Rehan
    Hey Skippy, Great plugin. Just one question--how can I change the plugin so that the e-mail a user provides does not have to be case sensitive for the gravatar to be properly fetched? I know the strtolower needs to be used somewhere when getting the md5 hash but I'm not sure exactly what needs to be done. Thanks.
  • skippy
    This should do the trick: echo gravatar(str_tolower($comment->comment_author_email));
  • Rehan
    Skippy, Great. Thanks that did do the trick. But for others who also are having this problem just one correction: It should be: echo gravatar(strtolower($comment->comment_author_email)); instead of echo gravatar(str_tolower($comment->comment_author_email)); Thanks again.
  • skippy
    Thanks, Rehan, for the correction!
  • Rehan
    No problem. Thank you for making a great plugin. BTW, I put my e-mail address in with some capital letters when I posted in order to see if you somehow had a fix working on your site...if you put the same fix on yours, my gravatar should show up :-)
  • skippy
    The better solution is for me to force lowercase inside the gravatar() function, so that users don't need to do this! This will give me an excuse to release a new version, which will in turn allow me to close comments on this thread -- 250+ comments is too many!
  • Rehan
    Skippy, Just another question. I'm seeing that if a person does not have a URI when leaving a comment, the following happens which I'm not sure should: -- Their gravatar is not cached and does not show up in the list of cached gravatars on the Gravatar admin page. Another thing I've seen is that when hovering over the gravatar image, the title tag is ignored, meaning 'Visit [commenter's] site' doesn't show up. Here is a link to my comments.php. I'm not sure if I'm doing something wrong or not, but if you could help me out, I'd appreciate it a ton! Thank you! http://pastebin.com/375245
  • wewe
    Skippy, it is a great plugin. but i find a problem: if i used Permalink Structure such as /%year%/%monthnum%/%day%/%postname%/ the default gravatar could not show in comment. because the URL of default gravatar has be changed to http;//youdomain.com//%year%/%monthnum%/%day%/%postname%/wp-content/gravatars/blank_gravatar.png sorry for my poor english, i hope you can understand what i want say. thanks
  • Ana
    Great plugin... I'm just having a problem... maybe it doesn't have to do with the actual plugin itself or maybe I'm doing something wrong but no matter how many times I try to make my "gravatars" directory folder rewritable, it still tells me under the options/gravatars page that my directory is not rewritable so therefor it won't cache any gravatars... Any idea what I could be doing wrong? Any help would be appreciated. Thanks! Ana
  • Ana
    Oh... I fixed that problem... I had accidentally created the "gravatars" directory in the plugins folder... Now my question is, how come it still doesn't recognize everyone's own gravatar?
  • La Bella
    I installed this plugin on my site but it won't apply my "own" default gravatar. When I try to edit the comments.php like you instruct to, it changes my whole comments look. They way they are formatted. I want to keep the same look without this affecting it. Any idea how I can do this? Thanks!
  • skippy
    Ana: gravatar.com is known to experience technical difficulties. When this happens, gravatars don't work as you expect them to. Wait a little while, and see if things work as expected later. La Bella: comments are styled solely through CSS, which is not my strongpoint. You're on your own for styling your comments and gravatars in the way that you want.
  • Richard Hendrix
    Very cool plugin... Thanks for making it available... Maybe you could help with one thing... The gravatar looks fine in FireFox but terrible in MS IE. My comment area overlays the gavatar icon in IE. I'm testing it in the post "Flower at the bridge". If you want a peek. Any suggestions? richard
  • skippy
    Richard: The issue you're experiencing is almost certainly a difference in CSS support between MSIE and Firefox. Sorry, but I don't do CSS support.
  • Catherine
    Hi I installed your gravatar script a while back,and it works great. However, when you sign up and log in, you can supposedly add a local gravatar (?) HOWEVER you can only do this once promoted to level 1, at which point you can write to the blog too (which is undesirable). So, long query short - how can I make it so that newly registered blogmembers can upload an avatar, without giving them writing permissions?
  • skippy
    Catherine: edit gravatars.php. On line 27, change the 1 to a zero:
    add_submenu_page('profile.php', __('Gravatar Selection', 'gravatars'), __('Gravatar', 'gravatars'), 0, __FILE__, 'gravatar_profile');
  • La Bella
    Oh. Well thanks anyway. Great plugin though.
  • Catherine
    Thanks a lot Skippy! ((hug))
  • Lump
    Awesome! Great feature. Thanks, Skippy! :)
  • DaFFy
    Hi Skippy! Sorry to load another question on you but... ...if I have caching on the default grav works fine but I don't get anyone elses gravatars - i get this error "/home/virtual/site10/fst/var/www/html/wp-content/plugins/gravatars.php on line 512 wp-content/gravatars/default-gravatar.jpg' alt='a gravatar' class='gravatar' />" If caching is off other peoples grvatars appear fine but the default one disapears. Any suggestions? Thanks in advance :)
  • La Bella
    Ok Skippy... I think I figured it out for now. I just have one question... Now it recognizes my gravatar and everybodyelses. "Except" for those who do have a gravatar.com account. It's only showing my own gravatar and the default gravatar... so who ever has a gravatar.com account, shows a blank square. Can you tell me how I can fix this, because I've really tried with no luck. Thanks!
  • La Bella
    oh and meant to add that I also see lil' x's in boxes under cached gravatar section. I am running WordPress Admin Panel 1.5.1.3
  • La Bella
    Skippy... I'm back. Never mind, I fixed the problem. Cached avatars weren't displaying because my "avatars" directory was not giving it permission to. I changed the permission to 755 and it worked. I can see them all now. Thanks!
  • Lump
    I've a quick and interesting question... Some of my blog's users have the gravatar showing up on the left side with the avatar linked to the gravatar site. Others have it showing up correctly. I've yet to figure out why since the profiles don't seem to show a trend as to why some are that way and why some are not. Anyone care to take a look and see if I'm missing something? TrainTalk blog
  • TechGnome
    Dropping a line of the positive kind. I was able to successfully integrate it into my new theme. I did have a little bit of a problem setting it up, but it turns out I had the gravatars folder in the wrong spot (my fault). Once I got it moved to the right location, worked like a champ! -tg
  • AleB
    Just want to know how it looks like!
  • nik
    Does this plugin wirk with Brian's Threaded Comments? If so, how and where do I insert the code into the comment page? Its alot different from the the default comments... http://meidell.dk/archives/2004/09/04/nested-comments/
  • skippy
    nik: this plugin can work with Brian's Threaded Comments. I helped one user get it working, and then promptly forgot about what I did to accomplish that. BTC uses Javascript to get the comments nested in the correct order. If my memory serves, the trick is to apply the gravatar code inside the javascript function.
  • Gravatars
    Where can I choose the avatars?
  • Bourgeois
    love the site skippy lots of great info
  • onat
    Awesome plugin! I finally had the time to add this to my site. Good thing new signups are up again at Gravatar. I had been waiting for weeks.
  • Jeff
    Hi! I love the look of this plugin but I can’t get gravatars to show up on my comments pages. I keep getting theese errors on “Users -> Gravtars” Warning: copy(/home/marisa/public_html/blogg/wp-content/gravatars/07b9b88416bebba9513161e3e837bb85.TMP): failed to open stream: Permission denied in /home/marisa/public_html/blogg/wp-content/plugins/gravatars.php on line 512 Warning: unlink(/home/marisa/public_html/blogg/wp-content/gravatars/07b9b88416bebba9513161e3e837bb85.TMP): Permission denied in /home/marisa/public_html/blogg/wp-content/plugins/gravatars.php on line 515 And I get theese error on “Options -> Gravatars” Warning: is_file(): Stat failed for /home/marisa/public_html/blogg/wp-content/gravatars/46d09fc5f86be61959e8f72ef8c31c32 (errno=13 - Permission denied) in /home/marisa/public_html/blogg/wp-content/plugins/gravatars.php on line 344 Warning: is_file(): Stat failed for /home/marisa/public_html/blogg/wp-content/gravatars/b5326cdd5b31156692178eecd479fd3a (errno=13 - Permission denied) in /home/marisa/public_html/blogg/wp-content/plugins/gravatars.php on line 344 What can I do about this? Thanks in advance! (Sorry for the double post)
  • jazzle
    Great plugin, no problem installing or using it, but there is an error which shows on the options page:
    Warning: Invalid argument supplied for foreach() in /home/jazzle/public_html/blog/wp-content/plugins/gravatars.php on line 335
    which suggests the error is in the SQL
  • skippy
    jazzle: that error suggests that you don't have any cached gravatars. If you're caching gravatars, that error should go away as soon as someone comments, causing a gravatar to be cached.
  • skippy
    Jeff: the permission errors you list suggest that the gravatar cache directory is not writable by your webserver. Try making the permissions 666 on the gravatar directory.
  • Jeff
    Thnaks for the reply. That was my thought too, and the permissions on the gravatars directory is 766. And I still get theese permission errors! Thisreallt got me baffled... Do you have any other ideas?
  • skippy
    Jeff: some folks have reported success with 777 instead of 666.
  • Jeff
    Thanks, that worked!
  • November 2nd, 2005
  • Sabutay
       
  • Richard Hendrix
    skippy Is there any way to hard code the path into gravatars.php? In the WP "Options" > "General" my WordPress address (URI): is pointed to a directory in my main domain name (frhendrix.com/blog1. I use another domain name in the Blog address (URI) which is (blankmind.com). Because of this my local gravatar works but my personal one doesn't b/c it's pointed to the web address plus it adds the directory to the path like this: http://www.blankmindblog.com/blog1/wp-content/gravatars/## ########## . any help is appreciated richard
  • November 11th, 2005
  • Antonio
    why my avatar is blank and I have registered at Gravatar.com
  • November 16th, 2005
  • November 17th, 2005
  • Ken Savage
    Yoo Skippy or anyone else. Any suggestions for the styling on my comments pages for my blog: http://www.kensavage.com I used the styling css elements that was in the instructions above but it makes my comments section rather unreadable.
  • the SmockLady
    hello all. I've downloaded and installed the plugin, I've activated the plugin, I've set my options. I am new to this, but learning and loving learning. I am using a popupcomments in my theme and I am having trouble getting this to work with it. I had to do a bit of tweaking to get my popup comments to work and now I don't know the important things to include and where to include them to make the gravatars work. Anyoneable to give suggestions?
  • November 20th, 2005
  • Carlton Bale
    I'm having problems when permalinks are set to: /index.php/%post_id% Basically, no images will display at all with permalinks. If I disable the permalinks, everything works fine. I don't appear to have mod_rewrite on my server, so I have to use the format shown above with the index.php prefix. Do you have any hints on how to overcome this issue?
  • November 21st, 2005
  • Twisted
    Hell-o, I really would like to get this plugin working, but I'm not sure what I'm doing wrong. I added everything like it says in the instructions on here, made up my own gravatar and uploaded it, still won't show up. :( I have not recieved any errors, which I can't figure out what I'm doing wrong. I'm currently using the Headspace theme with Paged Comments plugin added along with the guestbook by GeeksMakeMeHot. I dunno if that's doing it or not. I had copied and pasted that whole comments file like it says here: http://www.skippy.net/download/plugins/gravatars/comments.txt The I used a submit option to the path of mine, which it shows up in the Control Panel of my gravatar, just won't show up in the comments part of site. The only thing I didn't do was signup at that gravatar.com site. Is this maybe my problem? Please let me know, thanks in advanced... Twisted http://vindictivebastard.net/test101/wordpress-forum-support-sucks-more-cock-then-a-cheap-whore-2.htm#comments P.S. That post was just a joke really lol...
  • November 24th, 2005
  • skippy
    Twisted: I see no indication that you have gravatars enabled at all. Nothing in the source of that page you linked shows gravatars. You don't need to sign up at gravatar.com so long as you have a locally defined gravatar at Users -> Gravatar.
  • Twisted
    Thanks for your quick reply. I think I know what's wrong, it appears I have to edit the comments-paged.php file as well or something. I'll try messing around with it then.. Twisted
  • Twisted
    Ok, I had edited the comments-paged.php file and it's showing up now, but how do I get it looking like she has here: http://geeksmakemehot.com/archives/2005/kubrick-guestbook/#more-500 She is using this same comments-paged plugin as well. Here is the link to my comments-paged.php.txt file: http://www.vindictivebastard.net/comments-paged.php.txt Thanks in advanced... Twisted
  • skippy
    Sorry, Twisted, I don't know how Jennifer got her gravatars styled that way. CSS is not my strong point. And I still see no indication of gravatars being used in the source of your comments, or your guestbook page.
  • John V
    I'm trying to use the comvatar plugin ad was wondering if there's a way to test JUST the gravatar plugin... or if the comvatar plugin affects it in ways that make that not possible. I'm also testing to see if my gravatar shows up :) I just got my rating (G), I dunno if it should be showing up yet, but I haven't seen it yet.
  • skippy
    John V: I have no idea if comvatar works with gravatars or not; I've never tried the comvatar plugin.
  • John V
    I see my gravatar here and I got a gravatar to load on my site by calling wp_gravatar in one of my templates, so I'm not worried about your code anymore. thanks
  • John V
    correction, by calling gravatar()
  • November 29th, 2005
  • RQ
    Don't you think the REST API is giving errors to often? For example, now, I get this, when I try to get my gravatar info:
    [an error occurred while processing this directive] The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. [an error occurred while processing this directive]
    Maybe there should be a fallback mechanism for such cases, like skipping the caching in this case? It sucks a bit, that gravatar.com is a proprietary service of one person. I guess it would work much better if there was a community behind...
  • December 1st, 2005
  • December 2nd, 2005
  • Dana
    Wordpress just needs to let the gravatars plugins go.None of them work right.
  • Kyle Garrett
    I've finally been able to incorporate the gravatars into my theme, but I have a problem still. The gravatars are always the default, blank one. I signed up for a gravatar the other day, with my email address, and it has been rated (G). SOO, it should be displaying when I call the function in my comments section (I use pretty much the same as in your example) echo "comment_type) { echo gravatar($comment->comment_author_email); } elseif ( ('trackback' == $comment->comment_type) || ('pingback' == $comment->comment_type) ) { echo gravatar($comment->comment_author_url); } echo "' alt='a gravatar' class='gravatar' />"; I hope you can help, thanks.
  • Kyle Garrett
    Oh, I used a different email address here, so that's why the gravatar is not being shown here.
  • Shawna
    I had no luck with this one either.Nothing shows up at all for me.
  • Shawna
    Funny, my gravatar show up on everyone's site but my own.Surely someone cares enough to offer some personal help :(
  • skippy
    Kyle: I don't see any evidence that gravatars are enabled at kylegarrett.com. Do you have a link to your installation, so that we can see what's happening? Shawna: can you provide a little more information, and a link to your blog, so that people can try to help?
  • Kyle Garrett
    Sorry, should've clarified. The gravatars are on my other website. Right here. And the code snippet I posted there got cut off, so that there isn't the reason.
  • xaqc
    Hello Skippy, I have a small problem with your plugin, mostly with gravatar caching. First, if I turn off the caching, everything works fine. If I turn on caching, I only have empty gravatar ... but it do not look like its a permission problem the following function always returns false : function wp_gravatar_info($md5 = '') { if ('' == $md5) { return false; } $r = array(); $foo = @file("http://www.gravatar.com/info/md5/$md5"); if (! $foo) { return false; } $foo
  • xaqc
    oops, EDIT last line : $foo is always empty
  • Kyle Garrett
    I turned off the cache (thanks for the idea, xaqc). And now they display, but not the default, blank one anymore.
  • valerie
    Hi - I'm sorry to bother you, I know you probably get really tired of the numerous support request but I've tried everything. My Gravatars have just suddenly stopped working on my site and I absolutely cannot figure it out. As far as I know, I've not installed any new plugins or anything that would make this happen. I've tried chmod the gravatars directory to 666, 755, and 777. When I noticed they stopped working, I cleared the cache as part of trying to get them to work and now nothing works and it appears that they're not even writing to my server even though it's 777. I've tried turning off caching and that's not worked. This is what my error log says the image file is: File does not exist: /home/makanani/public_html/archives/2005/12/07/1315/Warning: file(http://www.gravatar.com/info/md5/1d779e5096a1a2fc3c2ed30900952138): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/makanani/public_html/wp-content/plugins/gravatars.php on line 417Warning: array_shift(): The argument should be an array in /home/makanani/public_html/wp-content/plugins/gravatars.php on line 418Warning: array_shift(): The argument should be an array in /home/makanani/public_html/wp-content/plugins/gravatars.php on line 419Warning: array_pop(): The argument should be an array in /home/makanani/public_html/wp-content/plugins/gravatars.php on line 420Warning: Invalid argument supplied for foreach() in /home/makanani/public_html/wp-content/plugins/gravatars.php on line 421http://spoken-for.org/images/gravatarnone.gif It's like the PHP errors are being inserted into the img src and so not even my default Gravatar works when one cannot be found. Local Gravatars are not loading either. I know a little PHP but apparently not enough to figure out what's going on here. So I appreciate anything you can tell me that might point me in the right direction. Thanks.
  • skippy
    Valerie: it looks as though gravatar.com is having some hiccups (again). None of the info links are working, not even for Tom's gravatar. Gravatars themselves appear to still be served correctly. Caching will likely fail, because the cache process first checks the info on the supplied image.
  • Patacon
    Excelente Plugin !!! Gracias
  • azmie
    i disable the caching (since it was always blank all the time) and it took quite a long time to load up all the gravatars...and another thing, it displayed my previous gravatar image...what happened?
  • Chris
    Very Nice PlugIn! But got some poblems by using the TAG in Comments or Somewhere in the Page, it just dont work. Do i have to put the if (function_exists('gravatar')) funktion in every single site?
  • Chris
    I mean the <gravatar skippy@skippy.net /> Tag
  • Thomas
    Hi! I like your ext very much. I have one prob however: the use of yout stylesheet. I cant get it to move the gravatars anywhere! It dosent show any borders, nor does it move the gravatars. All my other stylesheet classes work, but just those seem to be weird... Any ideas?
  • skippy
    azmie: I do not control gravatar.com, so I have no control over any speed issues that might result from fetching gravatar images from there. Nor do I have any ideas why your previous gravatar image was displayed. These are problems outside of my plugin. Chris: the <gravatar foo /> tag only works in the body of the post, not in the comments. It's a good idea to wrap if (function_exists('gravatar')) around all the gravatar calls -- if you ever disable the plugin for any reason, your site will continue to function. Without those calls, your site will break with an error message that it cannot find the function "gravatar". Thomas: CSS and styling are not my strengths. I'm not able to provide any theme or template support.
  • December 10th, 2005
  • Robert
    Skippy, I've just upgraded to WP2.0RC and the gravatars plugin is causing me some problems. If I disable the cache, gravatars are correctly loaded from gravatar.com(.) If I enable the cache, everyone gets the default gravatar, even though looking at the Options panel appears to show a full set of cached gravatars. (Local gravatars always load correctly.) Any advice?
  • Chris
    Is there any posibillyty of using Gravatars ouzside Comments, maybe in the ?author Pofile? Tried something with the_author_email in the echo "comment_type) { echo gravatar($comment->comment_author_email); } elseif ( ('trackback' == $comment->comment_type) || ('pingback' == $comment->comment_type) ) { echo gravatar($comment->comment_author_email); } echo "' alt='' class='gravatar' width='50' height='50' />"; } part, but is doesent work! What do i have to replace? Do i have to write a new function in the gravator.php? THNX for your help ore any further information...
  • skippy
    Chris: you can use the gravatar(), and the wp_gravatar() on which it relies, anywhere you want. WordPress' the_author_email() displays the author's email automatically. I think you want to use get_the_author_email(), which will return the email for use with the gravatar() function.
  • Chris
    Yea, thnx now everything works fine! I Used: "; } ?> To implement the Authors Photo on the ?author=1 Page! THNX !!!
  • Chris
    Hmm, again the code: if (function_exists('gravatar')) { echo ""; } So everybody can see and participate!
  • Chris
    Hmm, Sorry, cannot poste the code...
  • skippy
    Robert: I'm only just now digging in to the code of the next version of WordPress. It doesn't surprise me that gravatars is broken. My first order of business is to update my subscribe2 plugin. After that, I'll try to make a revised gravatar plugin.
  • Philip
    i only get "Gravatar Icon" what have i done wrong?
  • skippy
    Phillip: without seeing what you've done, it's impossible for anyone to provide specific assistance. That said, I do not provide theme or template support. I'll help you determine whether the plugin is functioning correctly, but you're entirely on your own to integrate it to your site.
  • Philip
    A OK! i'll just play around. Cheers
  • Caroline
    I just installed the gravatars plugin, works ok but does not show my gravatar, just the default "?"... What am I doing wrong. Sorry for the newbie question! Kind regards and thanks, Caroline
  • skippy
    Caroline: I see your gravatar here. Did you just recently sign up for a gravatar image? It can take a short while for them to be approved for display. I don't see any posts with comments at souldoodles.com -- are you using this plugin at a different site?
  • Caroline
    Hi Skippy, I deleted all comments, most of the time I have comments off, but want to start using it now and use the gravatar images too. When I put in a response myself I see the default questionmark images that comes with the plugin, but not my own gravatar... Don't know what I am doing wrong... should I change something in the code? Sorry for the bad english, I hope you know what I mean...
  • Caroline
    There is an example here: http://www.souldoodles.com/?p=33#comments Hope that helps explaining the problem.
  • skippy
    Caroline: are you using the same email address on your site as you used here? You can enable the "gravatars in post" option, then make a new post and add <gravatar youremail />, obviously supplying your full email address. That should show your gravatar. Since your gravatar works here, there should really be nothing preventing it from working on your site, provided you're using the same email address.
  • Caroline
    I tried that too, and it still displays the ? in the post too!! I'm totally lost... going to delete the plugin, I'm too newbie to get it to work ;-( too bad!
  • Jessica
    Skippy - Why is your photo showing up as my avatar? I am stupefied by this; I have a directory of photos, I've tried everything -- even using a rotator.php as a local image. Nothing works. Check it out - www.jessicapezak.com
  • skippy
    Jessica: I've no idea why that's happening. Take a look, though, at the value you're supplying for the default image: http://www.jessicapezak.comwp-content/gravatars/random/rotator.php If you place the slash in between the .com and the wp-content your rotator seems to work correctly.
  • Jessica
    Hi Skippy, Actually, it's still not working -- it's working right now with a local gravatar (local set to rotator.php) but it doesn't alternate by borrowing images from the directory for each entry -- all entries have the same gravatar because I am using the local gravatar. This morning I accidentally deleted something in binary in my file, with a filename of a lot of letters and numbers. That is no longer in there -- is the gravatar file programmed to point to a default script from your site when this file is missing? I have no idea how to get that file back (I think it was the REST file). Any ideas? I am totally stumped.
  • Jessica
    Nevermind! IT seems to work now, but I'm still quite curious about what happened -- I haven't changed anything at all.
  • December 17th, 2005
  • Beta Candy
    Okay, this plugin is awesome! I've got it working on comments, but I have a couple of other questions. My blog has multiple authors, and I want each post to show its author's gravatar. Is there a piece of code I can stick into the index.php and post templates so it will automatically do that for each author on his/her posts? I'm still learning how to mess with templates safely , so the more specific info you can give me, the better. Second question: if my other authors want to use local gravatars, can they just set that up in their Users / Gravatars panel? This seems obvious, but I want to make sure before I tell people the wrong thing and we all override each other's avatars or something. I just don't want them to have to use Gravatar if they'd rather not. (If it'll help you to look at my site, it's the one I've signed in with here.)
  • skippy
    Beta Candy: you can place the gravatar() function anywhere you want, as long as you provide it with a valid email address or URI. So, to include your author's gravatars just before you show the_content() in the Loop, you would use something like this: gravatar(get_the_author_email()); Styling the gravatar correctly is up to you: I do not provide specific theme or CSS support. As for your second question, yes, your authors can define a local gravatar for themselves. They cannot upload an image through Users-<Gravatars, so they'll need to either point to a remote image somewhere, or transfer their gravatar image to your server in some other way.
  • BetaCandy
    Thanks, Skippy. I don't need CSS help, but I am pretty ignorant about code - sorry. I inserted the following: And it just made the path to my local avatar show up as text, like this: " /wp-content/gravatars/JGS_OutOfPlace.jpg" at the top of the post. I'm not sure how to make it show the image...?
  • skippy
    Beta Candy: sorry, try this: echo "<img src='"; echo gravatar(get_the_author_email()); echo " />";
  • BetaCandy
    Where do I put that? I tried it in various places within the code I already had (that was bringing up the text of the link), but ended up with parsing errors. Sorry - it's just that because even a bracket in the wrong place could mess this up, and I really don't understand the code that well, I'm confused. I was able to understand what you did in the comment template, when I copied and pasted your example there. Sort of.
  • skippy
    Beta Candy: the get_the_author() function only works in the Loop, so you'll need to place that snippet somewhere inside it. What parse errors were displayed? Do you have a link to the source of the file you're trying to edit?
  • BetaCandy
    Here's the template for my index pages: http://thehathorlegacy.info/example.txt I've been sticking the code after the div class="storycontent" line and before the php the_content(__('(more...) line. That's inside the loop, isn't it? I think the problem is that I'm not getting the code snippet exactly right, and that's totally my bad because I'm still very much learning PHP - sorry to be such a pain. :)
  • Adam Lea
    Great plugin! Thanks!
  • BetaCandy
    Just wanted to pop in here and thank you, Scott, for working with me in email until you found the solution. :)
  • December 30th, 2005
  • December 31st, 2005
  • January 4th, 2006
  • RayzrShrp
    Any word on if this works with k2? I installed it per the instructions but none of the gravatars show up. Just a text label saying gravatar icon. The older version of gravatar from the gravatar site works fine.
  • skippy
    RayzrShrp: I've not looked at K2 at all, so I have no idea what may or may not be necessary to get gravatars working with it.
  • blindman
    Great work Skippy!... worked straight out of the box with no errors! Thanx for the cool plug in.
  • January 9th, 2006
  • January 9th, 2006
  • January 10th, 2006
  • January 10th, 2006
  • Nate
    Hey Skippy, I was wondering if you could help me fix this error? Fatal error: Cannot redeclare gravatar() (previously declared in /var/www/html/nate/wp-content/plugins/gravatar.php:15) in /var/www/html/nate/wp-content/plugins/gravatars.php on line 646 I got it after installing this plugin... I think it's because I didn't disable the gravatar.php plugin before I enabled yours. But I don't know the URL Code to disable the plugins. And I can't find a table in my DB that relates to the plugins. -Nate
  • Nate
    Ok I got it, I was right. So I thought I'd just FTP and rename the gravatar.php file. I did and it deactivated. Site works... Yay! Thanks Skippy! -Nate
  • January 12th, 2006
  • Richard W
    Ive been working on this for hours now and all I get is blank squares and my CSS broken by the insert of the css for the gravatars. Im going nuts - this is exactly what Im looking for - I just cant get the damn thing to play nice with my existing css and the pics showing?! GGrrr - not ur fault tho Skip! Thanks for the great plugin, Im sure it will work for me some day soon! :-D Cheers, Richard
  • Richard W
    ok, upon staying up all night, I fixed 2 lines of css and the gravatar looks fan-bloody-tastic, but now I realised I have broken the comments(dot)php file somehow. So I have to go back and check it out - anyone here use this gravatar plugin in "Falling Leaves" theme and have it working, and can give me a heads up please?! Thanks! --Rich PS - WooHoo! My new gravatar works, this is the fist place I have used it... ...now all I need is a new head! *laugh*
  • Richard W
    Skippy! Ur a GENIUS - got it working and it looks fantastic mate - I knew you would come through for me! ;-) Yeah, ok, I did it all myself but you did all the hard work to start with! :-P Cheers mate! --Rich PS - Sorry for taking up so much comment space! :-O
  • January 16th, 2006
  • Fabian De Rango
    I can't get any of my gravatars to show up, my template is built on K2, which had your plugin support built in I added the plugin enabled it and you can see the problem on any post. Just go to my site here and click on a post with comments It just comes up with an alt of an image.
  • skippy
    Fabian: it looks like the the path you're using for users without gravatars is an incorrect relative path. Try placing a forward slash at the beginning of your gravatar path declaration, to ensure that the plugin uses http://fabiodrn.com/wp-content/gravatars/blank_gravatar.png instead of http://fabiodrn.com/blog/wp-content/gravatars/blank_gravatar.png
  • Fabian De Rango
    oh I see thanks allot :), Its good to see even with all the 400+ comments you can still keep up with the support, ps there is comment paging plugin you could use to trim down the size of the page and bandwidth.
  • Luis Murillo
    I get this error when an option is modified on one of the gravatar pages: Warning: Invalid argument supplied for foreach() in /home/lmurillo/codebeta.net/html/wp-content/plugins/gravatars.php on line 99 The line number tends to change, though
  • January 23rd, 2006
  • Richard W
    Ive just switched over to K2 as well - and all I get is the words "Gravatar Icon" and a link to the gravatar site... ...and its strange too - cos I had the gravatars working no probs in 3 other themes I was testing?! Ill keep working anyway... --Rich
  • Joe
    Hi, I can't seem to get it to work and was wondering were you'd put it in a theme since I have not been able to get it working... Thanks.
  • January 26th, 2006
  • January 26th, 2006
  • CountZero
    I have added full included support for this great plugin in my Binary Blue theme now - will be publicly available with version 0.9.4 upcoming soon.
  • January 28th, 2006
  • January 28th, 2006
  • January 29th, 2006
  • Sapfir
    Well. I shall try it. It is my first post.
  • Greg
    I downloaded the script, applied the patch... but have run into problems and would really appreciate some help. First... the script seems to be running fine. I can access it from both the Options tab and Users tab. I've also specified what image to use as the default successfully. However, it doesn't seem to show the gravatar at any time when I post. Secondly... how do I define different avatars for the different users on my site? Idealy, I'd like them all to have their own icons. Lastly... is this plugin only for comments? Or will it display for different posts? I hope I phrased everything correctly (I'm new to this, and just starting my site up) Thank you so much.
  • Greg
    One more thing to add to that last post... Just a minute ago I was recieiving an error thru the options menu: Warning: Invalid argument supplied for foreach() in /home/chompcho/public_html/blog/wp-content/plugins/gravatars.php on line 335 This seems to be the same problem that Jazzle was having before, but it seems to of just fixed itself. However, the gravatars still aren't showing up on the site itself. Thanks again.
  • Greg
    Grrr. For some reason the message is back: Warning: Invalid argument supplied for foreach() in /home/chompcho/public_html/blog/wp-content/plugins/gravatars.php on line 335 This message is displayed under: OPTIONS>GRAVATARS directly above where it says: Local Gravatars
  • January 31st, 2006
  • January 31st, 2006
  • Joe
    Any One ? Thanks...
  • January 31st, 2006
  • skippy
    Greg:the foreach error is a result of trying to loop over an invalid number of items. It should be (mostly) harmless, and certainly shouldn't cause problems for your public site. Joe: if the example comments.php linked in the post above doesn't help you, I suggest asking at the WordPress support forums for more specific guidance.
  • stefigno
    Hi, i'm stefigno from Italy (sorry i don't speak english very weel :-( ) . you says:"make sure this directory is writable by your web server!" . What kind of value that i set in my directory /gravatars ? what a number ? 777 ? my wp-admin panel says : WARNING! WARNING! WARNING! /home/mhd-01/www.procef.net/htdocs/wp-content/gravatars is not writable. Gravatar caching will be disabled until this directory is made writable. this is my first point of stop. i hope that i install in good mode this great and beauty plugin! I hope! Thank you for all! good work. stefigno.
  • skippy
    stefigno: you can make your gravatar directory mode 666 in order to make it world writable.
  • February 2nd, 2006
  • Greg
    Skippy, I'm sorry... but I don't really know what that means. Invalid number of items?
  • Peter Bland
    Works good, like an avatar should. Nice
  • February 5th, 2006
  • N. Mallory
    I have this pluggin running on three blogs, but on the one in my URL, when I click on the options->Gravatars, I get the following error: Fatal error: Cannot instantiate non-existent class: cachedfilereader in /home/exit-232/public_html/nothingtastesasgood/wordpress/wp-includes/wp-l10n.php on line 67 I've tried deactiving and activating as well as deleting and reinstalling but this error just continues.
  • skippy
    N. Mallory: delete the gravatars.po (and .mo and .pot, if present) file(s) from your plugin directory.
  • AJ
    wp-content/gravatars is not writable. Gravatar caching will be disabled until this directory is made writable. I have made this folde writable on the server ..but i still get this message.. ?? HELP hehehe
  • AJ
    OK !!! whhhooooohooo got it to work , but don't laff, I put it in the wrong directory. lol omg duh!
  • N. Mallory
    Thanks. Much better. :D
  • me[l]
    Hi Skippy! First: my english is worst as can be! *sorryforthat* I've searched now the whole thread for the problem I have. And I know now I'm not the only one. ;) But it seems I'm the only one, that can not fix the problem. On my site only my gravatar is shown. I think that is so, cause I have saved it local. But all other gravatars were not shown. And I know that they exist. And I can not find the problem that causes that. Perhaps anyone can help me?!? Thanks a lot for trying!!! me[l] from germany :)
  • tulek
    Works nice for me! Great Plugin!
  • me[l]
    OK, I don't really know why, but it's working now! Great!!! :)
  • Arun
    Hello, I am using Sca4ered Theme for K2 with WP2. I have activated the gavatar plugin and I have my own gavatar image on gavatar : http://gravatar.com/avatar.php?gravatar_id=5418761c3f524f8bf9a889da0e2b9b2e I have followed all the instructions and I simply cannot see my gavatar appear on my ‘comments’. I have made sure that I have uploaded the gavatar locally too just to try it, and again it wont work. Under the Admin > Options > gavatars menu : Cache gravatars: = Yes Allow local gravatars? = yes Replace in posts? = Yes Default gravatar image: http://gravatar.com/avatar.php?gravatar_id=5418761c3f524f8bf9a889da0e2b9b2e Please help thanks
  • anna.
    Skippy, this works GREAT, and I totally love this. I used it on a multi-user blog for individual profile pages, worked completely out of the box except for one tiny thing (probably something on my end, but I'm stumped!) After someone uploads a local gravatar, I can't seem to be able to delete them individually. Submitting a blank path also fails to remove the local gravatar. Any idea what could be causing this? (I admit to messing with the code, but I swear I put it all back the way it was :) I was trying to get a way to upload stuff directly off the pc working. If I do I'll send it to you!)
  • anna.
    oh ps. i'm still running WP1.5.2 (I know I know 2.0 rocks I'm getting around to it!)
  • Bertil Gralvik
    Skippy: I'm just on my way to test your Gravatar plugin, which I have liked to look at for a long time. I'm a RTFM kind of guy ( sometimes ), so I discovered something confusing. In the README it says:
    "3. Extract the files into the root of your WordPress directory."
    This sounds a bit unorthodox, so checking this post, it says under Installation:
    "Place the gravatars.php file into your wp-content/plugins directory
    which is less surprising.
  • Bertil Gralvik
    Hmmm... I'm back. Following your instructions above, I installed the gravatar.php and activated it. I get the Optins/Gravatars menu, but the page is blanc. I'm using the WP 2.01. I disabled all other plugins - still the same. Any clue?
  • skippy
    Bertil: a blank page usually means there's a PHP error. Can you check your web server error log for the error?
  • Bertil Gralvik
    Skippy: Thanks for your advice! I don't have control over the server ( or log ). This blank page is only for you Gravatar options page, so I'd think it has something to do with your Gravatar plugin not quite in tune with WP 2.01. I might be wrong of coourse :)
  • Bertil Gralvik
    Sorry! - forgot the spell checker ( again )
  • Arun
    Hello, PLEASE HELP ! I have managed to install my gravatar plugin to my WP2.0.1 site on my site : www.doyougetme.net/live The thing is now ALL the comments show up with my gravatar (even for people who do you ahve gravatar images). Under the gravatars options I have set the 'Default' to my one : http://gravatar.com/avatar.php?gravatar_id=5418761c3f524f8bf9a889da0e2b9b2e but if i remove this URL then i cant have ANY gravatar showing up at all. How can set it up so that only the respective gravatar show up to the correct email address and not mine to everyone. Cache gravatars: = Yes Allow local gravatars? = yes Replace in posts? = Yes PLEASE HELP
  • Shery
    Ill try these...
  • Nat Marie
    I'm sure that this is a nifty plugin, but it's not showing up for me whatsoever. http://unorthodox-of-me.org Click on any of the comment links there. The space is there for it, but no default, no local, no nothing...:/
  • Nat Marie
    Oh, I got it now. I was editing the wrong comments.php. I use the default theme scheme, and I was editing classic. Doh?
  • Jason
    Is there another way besides allow_url_fopen to cache Gravatars? I can't get around that problem on my server.
  • Bertil Gralvik
    Hi Skippy! Two things about the Gravatar plugin ( what else :) 1. I get back to the question of where to upload the gravatars.php. I think you should change the gravatars.README, PART ONE point 3, that says "Extract the files into the root of your WordPress directory". I guess if you do, it won't work. 2. I got the bland admin page because I copied all files iin the distribution to my plugins directory. After deleting the .mo and .po language files, the admin page showed up fine. For newbies I think you should mention that the .mo file should go into the /wp-includes/languages ( See Codex on this matter ).
  • Bertil Gralvik
    Hrmm.. this time the spell checker didn't work.
  • February 20th, 2006
  • Bertil Gralvik
    Hi! Beautiful! I got it to work, although not with the cache. It also seems that I cannot use the default image if I place it in the cache. From another directory it works just fine. I bow to thee ;)
  • February 20th, 2006
  • February 20th, 2006
  • Shrikey
    Nice plugin, great features... caching, especially. Except I can't get it to work on my own custom theme. I don't know why. Everyone's gravatar goes to the default. In the end, I've decided to hard-code my own gravatar func into my theme, rather than troubleshooting every line of code I have. So, even though I won't be using it, I'd like to offer my thanks, since I'm likely to add your caching feature to my own code.
  • Cody
    Just wanted to say thanks for this plugin, works like a charm.
  • February 22nd, 2006
  • Adam Caz
    Hey Skippy, Great Plugin man.. I have a simple question.. All my users are level 0 and I don't want to have to promote them all to allow them to upload their own avatars.. Is their somewhere I can allow Level 0 users to do this without promoting?
  • Shrikey
    A quick update on my last comment... I made it work (I forget what was wrong, but it was my mistake), and I made it play nice with my own built-in gravatar function. Thanks again, this plugin is a WordPress must-have for me.
  • February 26th, 2006
  • February 26th, 2006
  • smdani
    It works like a charm! Thanks Skippy. When you travel to Spain remember you've a friend! You're invited!
  • Raffaell
    hi skippy, i tried to fill and define the path correctly, but i still have some problem with path, what should i do ? i place my wp installation in www.myraffaell.com/blog and if i define the path /wp-content/gravatars/random/ the random gravatar wouldnt appear then if i put the path like /blog/wp-content/gravatars/random/ still not help
  • February 28th, 2006
  • March 1st, 2006
  • Harshblogger
    Hey Skippy, wanted to point out a bun in the latest version. I was running it a one server with the cache operating just fine. However when I moved to the new server the cache did not work because of allow_url_fopen being deactivated. That was fine I can do without the cache but the problem was that the cache was already set to run. I had to manually go into the db and set gravatar_cache to 0.
  • IDigg
    I am attempting to install this great plugin and I am failing. I have a built in gravatar function with my Tiga 0.6 theme and I can't seem to make it play nice. Also, under users--->gravatar, the default gravatar image is broken. Can you give any assistance or does anyone else know a fix?
  • March 5th, 2006
  • March 7th, 2006
  • March 7th, 2006
  • PlanetPhillip
    Hi, Great plugin, very useful. Thank you. After a few teething problems I got the random gravatar to work. However I would like to make a suggestion. Currently if the same person make more than one comment each gravatar is different. IS there a way to ensure that the commentor has the same one and it's not used as part of the remain random selection. Of course the next refresh the image can be different as long as it's the same for that view. Gee, it sounds a lot simpler in my head than when I type it. Hope you understand. Lastly one would need more gravatars than commenters for this to work. TIA
  • March 7th, 2006
  • March 11th, 2006
  • mego
    nice plugin. thx ! little idea - one option for non-registered users - text area for gravatar adress (different from gravatar.com). maybe, nobody would be interested in this.. too much work for lasy visitors ;-)
  • shahin
    nice
  • March 15th, 2006
  • Harry
    Problem: The default gravatar shows up, but the ones pulled from Gravatar.com do not. They are being cached and properly referenced in the HTML. If I download a cached version to my computer I can view it. But they're not showing up in the blog comments. This is WP 2.1 alpha1.
  • Paul Pehrson
    Skippy, you're my favorite plugin author. Thanks for another great plugin. I can't wait to get my gravatar approved so I can see it working!!! :)
  • JD
    Skippy what an excellent plugin thanks! One question. Where in the comments.php do I edit to rearrange the location of the Comment By and Date line fields? If you take a look here: http://www.sportech.info/2006/03/17/new-blog-feature/#comments I'd like to move the date and commented by to the right of the gravatar. Is this doable? Thanks in advance for your help and excellent plugin!
  • March 18th, 2006
  • March 22nd, 2006
  • TNChick
    Public kudos to you - lovely plugin. Everything is workin' perfectly. No errors and got the default image, too! Thanks for everything!
  • shahin
    thanks for plugin
  • alexjustdoit
    Well how do you activate the gravatars.php?
  • March 25th, 2006
  • Douten
    Neat plugin, thanks!
  • pawlik
    Thanks for good job.
  • Neighbrs
    Hi Skippy! I liked your plugin very much. Played with it and even got it to work. I was very happy. Then I tried another plugin called "gravatar sign up" but it didn't give the results I wanted so I decided to disable that again and now everything has vanished. I get the following text: Fatal error: Cannot redeclare gravatar() (previously declared in /home/mvbknl/public_html/blog/wp-content/plugins/gravatar.php:15) in /home/mvbknl/public_html/blog/wp-content/plugins/gravatars.php on line 646 I cannot even get in my admin pannel. Do you have any idea how to solve this? Thanks.
  • skippy
    Neighbrs: delete one or the other of the files mentioned in the error report. Then you'll be able to access your admin section. Disable the gravatar signup plugin. Then, if you deleted my plugin, re-upload it.
  • Neighbrs
    Thank you very much Skippy! I was a bit scared there for a second ;-) Is it best to start all over again, or just delete and upload all the files again? In other words; you have an idea what the cause was, is there a conflict with that other plugin as far as you know? Thanks again!
  • Stuart Colville
    Have you thought about checking for allow_url_fopen and if it's not available use CURL to grab the images for caching?
  • Yuping
    it's work fine with wp2.0.2??
  • dan milward
    I installed it per the instructions but none of the gravatars show up. Just a text label saying gravatar icon. I am using word press 2.0.2 with K2 as my theme - i've looked in all my logs and i'm getting nothing :P
  • March 30th, 2006
  • March 31st, 2006
  • April 15th, 2006
  • April 16th, 2006
  • April 18th, 2006
  • April 23rd, 2006
  • April 24th, 2006
  • April 26th, 2006
  • April 27th, 2006
  • April 29th, 2006
  • May 3rd, 2006
  • May 3rd, 2006
  • May 5th, 2006
  • May 6th, 2006
  • May 13th, 2006
  • May 25th, 2006
  • May 28th, 2006
  • June 3rd, 2006
  • June 3rd, 2006
  • June 5th, 2006
  • June 8th, 2006
  • June 13th, 2006
  • June 22nd, 2006
  • June 22nd, 2006
  • June 22nd, 2006
  • June 27th, 2006
  • June 28th, 2006
  • June 29th, 2006
  • June 30th, 2006
  • July 2nd, 2006
  • July 2nd, 2006
  • July 4th, 2006
  • July 9th, 2006
  • July 14th, 2006
  • July 19th, 2006
  • July 20th, 2006
  • July 23rd, 2006
  • July 27th, 2006
  • August 31st, 2006
  • September 5th, 2006
  • September 27th, 2006
  • January 19th, 2007
  • September 24th, 2007

About | Policies | skippy.net

Warning: PDOStatement::execute() [pdostatement.execute]: SQLSTATE[HY000]: General error: 145 Table './skippy_skippy/h_sessions' is marked as crashed and should be repaired in system/classes/databaseconnection.php line 269
Warning: PDOStatement::execute() [pdostatement.execute]: SQLSTATE[HY000]: General error: 145 Table './skippy_skippy/h_sessions' is marked as crashed and should be repaired in system/classes/databaseconnection.php line 269