Gravatars
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.
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 :(
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.
OK.. thanks for the reply. Although, I have no clue HOW to apply the patch that's attached there o.O heh weird.
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 :-)
Nm... answered while I was typing... Darn I'm slow :-)
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?
Here is my complete comments.php file, which should serve as an example.
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
Good catch, BeerLuver. I'm using the time of day plugin to provide fuzzy timestamps.
Glad you got it working!
[...] ngan plugin yang dibuat oleh bapak yang satu Ini. Dimana Plugin dan tutorialnya ada di url Ini. Saya sudah mencoba, tapi tidak mengerti dengan tutorialnya. Hasilnya, plugin tsb tidak bek [...]
[...] ngan plugin yang dibuat oleh bapak yang satu Ini. Dimana Plugin dan tutorialnya ada di url Ini. Saya sudah mencoba, tapi tidak mengerti dengan tutorialnya. Hasilnya, plugin tsb tidak bek [...]
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. :)
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! ;)
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.
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.
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.
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.
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.
Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/wp-content/plugins/gravatars.php on line 247
Fatal error: Call to undefined function: time_of_day() in /srv/www/htdocs/wp-content/themes/red-train/comments.php on line 19
Parse error: parse error, unexpected T_ELSE in /srv/www/htdocs/wp-content/themes/red-train/comments.php on line 37
fun fun fun.
Just like to say a big thank-you for writing this plugin. It works great :D
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.
Implementing Gravatar Plugin by Skyppy
Thx Skyp, your gravatar plugin work great on my WP 1.5 with default template, but i'm using Dunstan Orchard - Easy CSS drop shadows instead of your css. it's great combination. You are the guy!...
Oh cool, I will have to try this out!!
*gets excited*
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. :(
Justin,
Here's an example of how to use gravatars with Kubrick's comments.php. Style to taste.
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?
Justin: my gravatars are lined up the way they are due to their use of the
gravatarclass, 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 tocomment_text(), like this:<?php comment_text() ?>
<br clear='all' />
Alrighty, I've got the CSS layout done up nicely. Good stuff.
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?
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.
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 01st 2005 Filed to Shorts by Phu Gravatars are now enabled courtesy of Skippy’s excellent plugin. The current styling and placement is temporary and will be chan [...]
Grav-a-cache-a-tars
I’ve implemented Skippy’s Gravatars plugin. Net result? All Gravatars are now cached (for 7 days) to improve performance and make use of the Gravatar REST API....
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..
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
imgdeclaration to look something like this:<img src="<?php gravatar('$comment->comment_author_email'); ?>" size="<?php echo $gravatar_size; ?>" />Alternatively, it's probably a better idea to just use css to resize the gravatar images. BTW, thanks again Skippy for the brilliant plugin!
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.
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.
Thanks, Adam! I'll update the archives immediately.
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
Thanks for the tips! It works fine!
it´s very good :-D
[...] getting it working on that site let me to the new version of [...]
Rofl at beerluvr's headbanging avatar :))
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/gravatarsif i want to put gravatar on different location.once again, thanks.
Baby, it rawks.
Skippy does it good.
Okay,
Father Luke
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!
Jeff: yes, you can absolutely define a default gravatar. In the
Optionsadmin menu, selectGravatars. The section labelledDefault gravatar imageallows 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.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
"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?
Jeff: it sounds like you have not yet fixed bug 902. Fix that. If you still have problems, let me know.
How do you implement the patch? where does it go? thanks for all your help :-)
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
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?
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.
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 ---> /
that would be "brain" hurts... can't spell any longer...just seeing code!
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
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 Plugins Sudah diinstall: FancyToolstips Gravatars Y!Q Lookup Posted in Blogging | Leave a Reply [...]
How do I remove the "Get your own Gravatar for comments by visiting Gravatar.com" bit?
Great btw, just the annoying ad ;)
Hey, did we ever get a solution to Father Luke's problem?:
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?
Oops I forgot to close the blockquote x.x
[...] blog nicer with the cool popup tooltips, but other than that, not really useful. (5/10) Gravatars, nice but not really useful. Show gravatar on comment. (6/10) Yahoo/MSN Style Smileys [...]
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.
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...
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 :)
What a funny thing... I'll try it
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...)
[...] ow i’m running the following plugins: Auto Moderate Comments Flickr Gallery 0.7 Gravatars MF Favorites - Thanks Michele! SO Recent Activity - This plugin is actually a rewri [...]
[...] lisation and expression feature. I came across the idea on some guys website, who had them enabled and wrote a wordpress plugin for them. I’ve just realised I’ve uses his o [...]
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');"
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.
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.
[...] odify the settings on several popular plug-ins, I’ve added a new plug-in to my site, Gravatars Plug-in. This plug-in allows people who comment in my entries on site to use avatars [...]
[...] odify the settings on several popular plug-ins, I’ve added a new plug-in to my site, Gravatars Plug-in. This plug-in allows people who comment in my entries on site to use avatars [...]
my host has disabled allow_url_fopen so the caching is disabled. is there a way around this???
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.
Super cool!
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 :-(
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 ;-)
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.
Ah OK, now i'm still waiting for my gravatar :-D
Thanks for your reply skippy ;-)
Thanks, Skippy! I guess I can survive without the caching. I love this plugin so I'm keeping it activated.
Say, I am getting the same error as a previous commenter stated:
using WP 1.5 stable release... :-)
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.
So, do you need the gravatar.php plugin in addition to the gravatars.php plugin to make the gravatars plugin work?
Thanks
Crow
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 :)
Also, the comments.php code you provided doesn't use the default image size configured in settings :( it's hard-coded to 80x80
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
Oops, just realised that post gravatars have
class="postgrav"on them... cheers![...] wait to see more of your faces For those with WordPress, I’m using Skippy’s Gravatars Plugin. It’s really good, but there’s a few little bugs that could do wit [...]
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.
[...] are a list of plugins installed on blog.detlog.org (as of today). Live Comment Preview Gravatars Post Levels Subscribe To Comments WP Paginate Bad Behavior And I guess this isn [...]
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.
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
I'll just keep talking to myself. Fixed that last issue. Thank god I'm not in charge of anything dangerous.
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.
Cheers for the drop-by on Webfroot, Skippy :)
Another idea -- how about a different default gravatar for pings (trackbacks and pingbacks)?
cool stuff indeed skippy...only thing I'm wondering is using:
going to be an open invitation to email spam?
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?
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
imgcode (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.phptemplate, 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.
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.
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
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!
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.
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.
[...] gravatar web site. These come to you thanks to folks at Gravatar and to the author of the Gravatars plugin for WordPress Those of you who have a gravatar should see them show up in the [...]
[...] far: WP-amazon MiniPosts Plugin for WordPress WordPress 1.5 User Online Bad Behavior Gravatars Recent Comments Themes Switcher Contact Form Wordpress 1.5 Stats [...]
Hi,
I installed the plugin. It works fine but I get this error:
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 :)
[...] su questo blog. Da oggi ne ho ‘potenziato’ le funzionalita’, grazie al plugin di Skippy che, se pure necessiti ancora di qualche messa a punto per meglio integrarsi co [...]
[...] su questo blog. Da oggi ne ho ‘potenziato’ le funzionalita’, grazie al plugin di Skippy che, se pure necessiti ancora di qualche messa a punto per meglio integrarsi co [...]
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.
Thanks for the good work!
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 :-(
oops !
I've not seen the previous post about this problem, sorry ^^
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.
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
Hi, would you mind updating the entry on wp-plugins.net? Thanks!
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
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 ;)
tinyau - I got that - deleting the mo and po files fixed it.
So you know - the size things still seems to be broken.. which is kind of annoying.
Thanks Gregory Wild-Smith, it's worked now.
[...] der Web Site Update on 2005/05/28 at 15:28:36 I have abandoned Favatars in favor of Gravatars. You can see them in action when you make a comment. [...]
[...] e Day[ALPHA] Browser Sniff Category Image(s) Paged Comment Editing Enhanced Post List Gravatars Headline Images - not implemented yet because I’m [...]
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)
Thanks for this plugin! It works great!
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
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 72issue with my admin menu. I'm running wordpress 1.5.1.2Line 72 of that particular file is
$input = new CachedFileReader($mofile);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.
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
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.
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.pofile. Have you tried that?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.
Huh, sure enough! Had to delete both the gravatars-en_US.po and the gravatars-en_US.mo files though.
Thanks for the tip!
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?
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 "+"
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?
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!).
Great plugin, just want to confirm that deleting the .mo and .po files works for 1.5.1.2
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...
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.cssfile, addwidth: 40px;to the.gravatarand.postgravclasses; and(2) In the
wp-comments.phpfile, deletewidth='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 yourstyle.cssfile.My
style.csscode 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; }Cool plugin!
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 :)
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
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
Dimitris: I won't be able to help without knowing how you've editing your comments.php file.
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
Also the page on the Admin>Options>Gravatar doesn't show up :(
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.moandgravatars-en_US.pofiles from/wp-contnet/plugins?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 .= "&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("&", "&", $gravatar); return $gravatar; }Gregory: nice work. I'll roll that into the official code, for inclusion with future releases. Thanks!
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?
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!
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!
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..
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
Great plugin!! Thanks so much!!
You ever thing about having this displayed in the "Manage Comments" area? I think that would be very useful
[...]
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
Grendel: the gravatar image on your Admin comment at 11:45 am is the same image as every other Admin comment on that page.
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
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.
[...] a tambah sendirik get_sidebar() jerk pat file tu.. tapi buat masa skang tak sempat lagi. Plugin Gravatar plak sekarang dan upgrade version kepada 2.3. Kelebihan versi baru ni.. Selain b [...]
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.
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 :\
AJ: to disable the default gravatar for people without gravatars, you'd need to edit your
comments.phptemplate file, and use conditional logic to suppress output when no gravatar is present. The functionwp_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.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.
sorry, i used a code... i said i tried using a
code...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!
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
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.
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
[...] なぜかIEでNo Gravatarの画像表示がうまくいってなかったので、もう1つのGravatarプラグインGravatarsを入れてみました。このプラグインはアドミンエリアで色々設定できます。 ダウンロードしたら、解凍してそのままWordPressのルートフォルダへアップロード。wp-content内にgravatarsというフォルダができるので、それをFTPソフト等を使って”777″に設定します。デフォルトのGravatar(Gravatarを設定してない人用に表示されるもの)はここに入れておきます。注意するのは、Gravatarの画像の大きさはアドミンエリアで設定できますが、このデフォルトGravatarの設定はできないので、サイトに表示したい大きさのGravatar画像を用意して下さい。 既に別のGravatarプラグインを使っている場合は、先にこれを無効にしてから新しくアップロードしたGravatarsプラグインを有効化して下さい。二つの違いは語尾の”s”です。 プラグインを有効にしたら、comments.phpを書き換えます。 <?php foreach ($comments as $comment) : if (function_exists(’gravatar’)) { if ('’ != get_comment_author_url()) { echo “<a href=’$comment->comment_author_url’ title=’Visit $comment->comment_author’>”; } else { echo “<a href=’http://www.gravatar.com’ title=’Create your own gravatar at gravatar.com!’>”; } echo “<img src=’”; if ('’ == $comment->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’ /></a>”; } ?> 私の場合は今まで <div class="gravatar"> から始まっていたGravatarを呼び出すコードの部分を <? if (function_exists('gravatar')) { if ('’ != get_comment_author_url()) { echo “<a href=’$comment->comment_author_url’ title=’Visit $comment->comment_author’>”; } else { echo “<a href=’http://www.gravatar.com’ title=’Create your own gravatar at gravatar.com!’>”; } echo “<img src=’”; if ('’ == $comment->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’ /></a>”; } ?> に入れ替えました。 <div class="gravatar"> はもう必要なくて、今まで通りスタイルは.gravatarクラスでつけられるので今回スタイルシートは変更していません。 Gravatarの設定(大きさを変更したり、デフォルトGravatarの変更)は、アドミンエリアのオプションのGravatarsタブメニューからできます。Permalinkを設定している場合、デフォルトGravatarを設定するには、URLをきちんとかかないと駄目のようでした。(デフォルトでは”wp-content”から始まってますが、http://www.yourdomain.com/wordpress/wp-content・・・”というようにしないと駄目でした) デフォルトGravatarをランダムに変更もできます。その場合はwp-contentのgravatarsフォルダに、例えばrandomという名前でフォルダを作ってそこへ画像を入れます。あとはそのフォルダをデフォルト画像設定にすればいいだけです(その場合,最初と最後は”/”で終わること。例)/wp-content/gravatars/random/) <gravatar email@yourdomain.com /> を書けば、記事の好きなところにgravatarを挿入できます。 こんな風に。 アドミンエリアのユーザメニューのGravatarメニューから、そのサイトで使いたいGravatarの設定もできるみたいです。フォーラムとかでそこで使うアバターを設定するみたいな感じなのかな?うちのサイトは私1人だけしか投稿してませんが、複数で投稿していたらそれぞれがログインしてからこれを設定したらGravatarで設定しなくても良いってことなのかな? 他にもRead Meファイルには色々書かれています。難しいのでおいおい試していこうと思います。 [...]
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.
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.
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.Yes.. i'm also got problems withf random default gravatar...
please... really need the solution..
thanks...
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.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.
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?
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.
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.
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 344This warning appears several times
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! =)
[...] aus der schieren menge der wordpress plugins die es so gibt habe ich nun auch noch das gravatars plugin installiert. das sorgt dafür, dass alle die sich einloggen in ihrem user menu einen unterpunkt gravatar haben wo sie ein 80x80 pixel großes bild verlinken können. das steht dann immer neben ihren posts oder kann auch mit oder sowas eingefügt werden. toll, oder? [...]
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?
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
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.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. :)
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.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. :)
cool, this gravatars :-)
[...] A year ago when I started this Wordpress Blog I fooled around with a new service called Gravatars (Globally recognized avatars) but the provided WP plugin was very basic and missed all of the elegance known when installing other WP plugins. So I modified the original basic plugin to make things for others a little easier and published it (the post is almost comletely in german). Almost a year ago things have changed much and my initial plugin has been outdated because of a new, much better plugin also called “Gravatars” provided by Skippy. [...]
your site rockes
your site rockes
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.
[...] I’m using a few plugins mainly gravatar so that any commenters with a gravatar account will show up in the comments section. [...]
[...] I’m using a few plugins mainly gravatar so that any commenters with a gravatar account will show up in the comments section. [...]
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.
tom kim: I diagnosed a random gravatars problem with one user, and we finally narrowed it down to line 447:
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.[...] Como a real razão do problema não me passou pela cabeça, fui logo olhar para o código, ver o que se passava, e não dei com nenhum gato. Fui ver se havia alguma actualização ao plugin, por alguma alteração à API: nada. Só mais tarde, já nem me lembro porquê, é que me lembrei de dar um salto ao site oficial dos gravatars (gravatar.com): down. [...]
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?
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?
At this time, it looks like www.gravatars.com is offline. That'll cause everyone not caching gravatars to have trouble.
[...] So, I first made the CSS changes required for displaying gravatars on my site. I had the plugin installed and running for weeks, but hadn’t gotten off my lazy rearend and added the appropriate function calls to make the darn thing display. So far, so good. Made the CSS and PHP changes, tried to test. [...]
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.
[...] Muitos de nós, bloggers modernos, que temos suporte para os Gravatars nos nosos comentários, nos deparámos com o problema que foi, para o plugin que utilizamos, o facto de o domínio "gravatar.com" ter expirado. Duas soluções mais faladas: [...]
Yay gravatars is back!
[...] Anyway, I installed two new Gravatar plugins. The first is a replacement for the one that I was using earlier. This one caches the Gravatars here on my server and allows people who are registered here on my forums to set a custom Gravatar for use only here. This though you probably don’t care much about. [...]
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=' '])
@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.
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.
[...] So the deal here is that we want to show some staff photos for a blog at work, but the machine we’re hosting on has no inbound port 80 traffic. So, no “going out to get a gravatar”. The gravatar has to be local. Has To be local. Trying out Skippy’s gravatar plugin seems to do a lot, but.. I’m not quite familiar enough with how it works yet to know how to get it to work on a inbound-port-80-blocked machine. I’ve set up a gravatar for myself, and I’ve set up the plugin to cache mine locally. So whenever it gets approved, things should become more clear to me on how this works. [...]
[...] Gravatars: Put those icon pictures next to comments [...]
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.
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?
Ack, never mind, i had the permissions set wrong. i also changed how my permalink structure works (which probably helped too...)
[...] i added gravatars… [...]
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.
[...] I know about some other plugins doing much the same thing. Are there differences in comparison to your plugin? Indeed there are. I am not reinventing the wheel. Currently I know about four plugins somehow related to avatars. Only two of them are directly related to avatars on user comments. These are the Gravatars plugin by Skippy and the Favatars plugin by Jeff Minard & Co. My plugin combines both functionalities and adds some pretty neat features. [...]
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
[...] I know about some other plugins doing much the same thing. Are there differences in comparison to your plugin? Indeed there are. I am not reinventing the wheel. The Comvatars plugin combines the functionality of the Gravatars plugin by Skippy selecting avatar images from a central service on the internet and the Favatars plugin by Jeff Minard & Co taking favicons of URLs as avatar images. Additionally unlike the Gravatars and Favatars plugin, the Comvatars plugin is doing its job right after activation in the Wordpress admin panel. [...]
Huh, weird. I've got that path correct, Alex, with the initial forward slash.
Are you able to change the gravatar size?
That's a cool plugin, I am going to give it a try.
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.
[...] I am playing around with gravatar…and still a bit lost… anyway, you can get the plugin from Skippy. He has a brief information on installation on his blog. gravatar foo@bar.com RSS feed for comments on this post. TrackBack URI [...]
One question, how can I register my email address with the gravatar, like
Great Plugin! :D
[...] you’ll need to have this wp gravatar plugin installed. [...]
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
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 touser_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.
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.
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?
Renata:
comment_author_email()is a WordPress function which displays the author's email address directly to the browser. As such, using it inside thegravatar()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?
I "kind of" see the Gravatars admin panel. Only the link exists, but when I click it, nothing shows up.
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.
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
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?
Well, I'm not very original :
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 ?
Great plugin.
but it is case sensetive, which causes problems.
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?
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.
Ok thank you :)
If I enable gravatar caching, I get the default gravatar. I also get this error where the gravatar from the Internet should be:
(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!
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 !
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.
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.
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
you could place
which should suppress the error.
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!
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 :)
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.
[...] Gravatars http://www.skippy.net/blog/2005/03/24/gravatars/ [...]
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.
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
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!
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*)
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
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.
wow, I didn't realise upgrading was that easy - thanks Skippy :)
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...
valerie: there's currently no such check. That's not a bad idea. I'll see what I can do.
thanks :)
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 :-)
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?
Thanks for the wicked plugin!
chelle
no funciona, que puede estar pasando.
Gracias.
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?
Artchick: you'll need to place the gravatar image through CSS position. Unfortunately, this is not something with which I have much experience.
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.
This should do the trick:
echo gravatar(str_tolower($comment->comment_author_email));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.
Thanks, Rehan, for the correction!
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 :-)
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!
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
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
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
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?
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!
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.
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
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.
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?
Catherine: edit gravatars.php. On line 27, change the 1 to a zero:
Oh. Well thanks anyway. Great plugin though.
Thanks a lot Skippy! ((hug))
Awesome!
Great feature. Thanks, Skippy! :)
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 :)
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!
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
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!
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
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
Just want to know how it looks like!
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/
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.
Where can I choose the avatars?
love the site skippy lots of great info
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.
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 515And 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 344What can I do about this?
Thanks in advance!
(Sorry for the double post)
Great plugin, no problem installing or using it, but there is an error which shows on the options page:
which suggests the error is in the SQL
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.
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.
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?
Jeff: some folks have reported success with 777 instead of 666.
Thanks, that worked!
[...] I’m using the Gravatars plugin by Skippy. [...]
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
[...] Get these f’ing gravatars working’ Look here [...]
why my avatar is blank and I have registered at Gravatar.com
[...] So here is some hint: 1. this is a group blog, that is to say that every MEA scumbag can write whatever on this page. 2. Accessing the user panel is piece of cake: just click on the link “site admin” on the side bar and put the User ID and Password that ..::IlPadrino::.. gave you. These fields are caps sensitive. 3. There is no room enough in the web gallery to put all the pictures from the MEA “movements”…yet the gallery is there. For the moment u might want to consider an alternative way to show pictures on this web blog: use ImageShack’s image hosting services. It is a free of charge, no buggin’ bunchy panties service that host your pictures and returns a series of “code strings” u can insert in your posts to have the picture (or a thumbnail of it) displayed. Register to this service by usin’ your email here: register. The previous posts show examples of the use of this service…ergo, for your own sake use thumbnailed pictures and don’t put directelly the big image in your post (or the blog’s will mess trying to justify the margins and stuff…). 4. Avatars: weird term that basically indicates a small square image like the one appearing at the beginning of this post. By using an avatar you can include your picture in every post u write as it was a signature (consider it as the MSN Messneger picture…). The Gravatar (global recognised avatar) service has been activated on this blog. All u have to do, in order to use your own avatar, is click here and register your personal gravatar. Once u’ve done that u can simply include a string like this in your posts: [gravatar me@myprovider.net /] (where, instead of these [] symbols, u’ll be using these ). Your avatar will now show in your posts. More info available here. 5. [...]
[...] yeeah! I finally got a gravatar plugin working!! giggling on the floor!! http://www.skippy.net/blog/2005/03/24/gravatars/ [...]
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.
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?
[...] I’ve given up on the spell checker plug-in because it requires PHP Safe Mode. I’m having difficulty getting Gravatars to work due to my permalinks setup. [...]
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?
[...] Gravatars [...]
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...
[...] - Gravatars: Per que surti la imatge de qui estigui donat d’alta a gravatar. [...]
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.
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
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
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.
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.
John V: I have no idea if comvatar works with gravatars or not; I've never tried the comvatar plugin.
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
correction, by calling gravatar()
[...] Driver
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:
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...
[...] I just installed a Gravatars plugin which will allow you to show a Gravatar next to your name when you make a comment, in order for this to work you obviously need a Gravatar. The easiest way to do this is to go here and sign up using the same email address that you used to sign up here. Then all you need to do is upload and image to their server and once it’s been approved it should show up next to your comments back here. [...]
[...] Gravatars [...]
Wordpress just needs to let the gravatars plugins go.None of them work right.
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.
Oh, I used a different email address here, so that's why the gravatar is not being shown here.
I had no luck with this one either.Nothing shows up at all for me.
Funny, my gravatar show up on everyone's site but my own.Surely someone cares enough to offer some personal help :(
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?
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.
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
oops,
EDIT last line :
$foo is always empty
I turned off the cache (thanks for the idea, xaqc). And now they display, but not the default, blank one anymore.
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.
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.
Excelente Plugin !!!
Gracias
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?
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?
I mean the <gravatar skippy@skippy.net /> Tag
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?
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.
[...] After a couple of weeks of messing around, i think i’m nearly happy with the look of the blog The benevolence theme is looking good, and the plugins are working - at last I struggled with gravatars, but after messing with the CSS and PHP stuff i simply could not get Skippy’s plugin to work So, after a lot of messing around, posting on both the theme designer’s site and the wordpress support forum, I got no replies My good friend Stretch suggested i try the official Gravatar plugin from gravatar.com again, as he also had problems with Skippy’s plugin on his blog [...]
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?
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...
Chris: you can use the
gravatar(), and thewp_gravatar()on which it relies, anywhere you want.WordPress'
the_author_email()displays the author's email automatically. I think you want to useget_the_author_email(), which will return the email for use with thegravatar()function.Yea, thnx now everything works fine! I Used:
"; } ?>To implement the Authors Photo on the ?author=1 Page!
THNX !!!
Hmm, again the code:
if (function_exists('gravatar')) { echo ""; }So everybody can see and participate!
Hmm, Sorry, cannot poste the code...
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.
i only get "Gravatar Icon"
what have i done wrong?
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.
A OK!
i'll just play around.
Cheers
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
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?
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...
There is an example here: http://www.souldoodles.com/?p=33#comments
Hope that helps explaining the problem.
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.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!
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
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.phpIf you place the slash in between the
.comand thewp-contentyour rotator seems to work correctly.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.
Nevermind! IT seems to work now, but I'm still quite curious about what happened -- I haven't changed anything at all.
[...] A- C A Different Monthly Archive Script (http://www.oneofthosedays.org.uk/projects/plugin-archives) Adhesive (http://redalt.com/wiki/Adhesive) v3.0 Akismet (http://akismet.com/) 1.1 (Duh!) Akismet Spam Count (http://cavemonkey50.com/code/akismet-spam-count/) Angsuman’s Referrer Bouncer (http://blog.taragana.com/index.php/archive/word-press-1-5-plugin-referer-bouncer) Auto Links (http://www.headzoo.com/) Autohyperlink (http://journalphoenix.com/40/autohyperlink) Bad Behavior / Bad Behaviour (http://www.ioerror.us/software/bad-behavior/) Bad Behavior Stats (http://www.ajaydsouza.com/wordpress/plugins/bad-behavior-stats-plugin/) BlogLiner (http://www.slightlyremarkable.com/2005/05/introducing-blogliner) 0.2 Blogs Of The Day (http://blogsoftheday.com/) All Versions I assume. Brian’s Latest Comments (http://meidell.dk/archives/2005/03/21/brians-latest-comments-15/) 1.5.5 and 1.5.8 CA-StarDate (http://www.funponsel.com/blog/archives/2005/05/02/ca-stardate/) Cricket Moods (http://dev.wp-plugins.org/wiki/CricketMoods) CG-Amazon (http://www.chait.net/index.php?p=238/) CG-FeedRead (http://www.chait.net/index.php?p=238/) CG-Inline (http://www.chait.net/index.php?p=238/) CG-QuickPHP (http://www.chait.net/index.php?p=310/) Countdown (http://redalt.com/downloads/) Counterize (http://andersdrengen.dk/projects/counterize) 0.31 (Create wp_images directory in root) D - F del.icio.us - Bookmark this! (http://www.arnebrachhold.de/2005/06/05/delicious-bookmark-this-wordpress-plugin) 1.0 del.icio.us Cached (http://www.w-a-s-a-b-i.com/archives/2004/10/15/delisious-cached/) 1.4 Download Manager (http://guff.szub.net/download-manager/) R1.beta2 Dunstan’s Time Since (http://binarybonsai.com/wordpress/time-since/) 1.1 Editor Search (http://www.theoneandtheonly.com/wordpress-editor-search/) 1.3 Extended Live Archives (http://www.sonsofskadi.net/index.php/extended-live-archive/) 0.10 Beta-r5 Favatars (http://dev.wp-plugins.org/wiki/favatars) 2 flickrRSS (http://eightface.com/code/wp-flickrrss/) 2.3 Fold Page List (http://http://www.webspaceworks.com/resources/cat/wp-plugins/30/) 1.0.1 G - K Get Recent Comments (http://blog.jodies.de/archiv/2004/11/13/recent-comments/) Google Analyticator (http://cavemonkey50.com/code/google-analyticator/) 1.3+ Google Sitemaps (http://www.arnebrachhold.de/2005/06/05/google-sitemaps-generator-v2-final) 2.7.1 Gravatar (http://www.gravatar.com/implement.php#section_2_2) 1.1 Gravatars (http://www.skippy.net/blog/2005/03/24/gravatars/) 2.6 Headline Images (http://www.coldforged.org/image-headlines-plugin-for-wordpress-15/) Hello Dolly (http://wordpress.org/#) 1.5 (Duh!) Hirji Date (http://www.usayd.com/pluginshacks/hijri-date/) InScript (http://www.urbangiraffe.com/plugins/inscript/) 1.7 intouch (http://adahas.com/work/intouch/) 1.1 Intypo (http://mymykry.links-ab.de/kategorie/intypo/) Jalenack’s Wordspew (http://blog.jalenack.com/ajax/) 1.16 L - O Lazyest Gallery (http://lazyest.keytwo.net/) Tested 0.7.1 and 0.8 Links Page (http://www.asymptomatic.net/wp-hacks/) List Subpages (http://robm.me.uk/projects/plugins/wordpress/list-subpages/) LiveCalendar (http://www.jonabad.com/livecalendar/) Tested 1.8 and 1.8.5 Miniblog (http://mediumbagel.org/?page_id=16) MtDewVirus’ Most Commented (http://mtdewvirus.com/code/wordpress-plugins/) 1.02 MyNetflix (http://www.jimmyoliver.net/mynetflix-plugin/) Nice Categories (http://txfx.net/2004/07/22/wordpress-conversational-categories/) 1.5.1 No Ping Wait (http://somethingunpredictable.com/wp-no-ping-wait/) Now Reading (http://robm.me.uk/projects/plugins/wordpress/now-reading/) Obfuscate E-Mail (http://www.coffee2code.com/wp-plugins/#obfuscateemail) Optimal Title (http://elasticdog.com/2004/09/optimal-title/) P - S PJW Wordpress Version Check (http://blog.ftwr.co.uk/wordpress/wp-version-check) Popup Image Gallery (http://www.yellowswordfish.com/index.php?pagename=popup-image-gallery-plugin) 2.2 Post Teaser (http://dev.wp-plugins.org/wiki/PostTeaser) Qdig-WP (http://randomfrequency.net/wordpress/qdig/) 0.5 Quick Post (http://cjbehm.dyndns.org/wingingit/quick-post/) Random Header (http://www.martinet.nl/wp-site/random-header-plugin) Random Posts (http://www.w-a-s-a-b-i.com/archives/2004/05/27/wordpress-random-posts-plugin/) 1.1 McMike’s Random Quote (http://www.mcmike.nl/?page_id=40) Random Talk (http://http://mangasverdes.es/codigo-wp/random-talk) 1.0 MtDewVirus’ Recent Posts (http://mtdewvirus.com/code/wordpress-plugins/) 1.07 Redirect to Page (http://cavemonkey50.com/code/redirect-to-page/) Related Posts (http://www.w-a-s-a-b-i.com/archives/2004/05/26/wordpress-related-entries-plugin/) 1.3.3 (Had to update the database manually, but this is possibly due to a custom database prefix) Scrobbler (http://leflo.de/projekte/scrobbler/) 1.3 Scrobbles (http://robm.me.uk/projects/plugins/wordpress/scrobbles/) SearchHistory (http://andersdrengen.dk/projects/searchhistory) 0.17 Search Everything (http://dancameron.org/searcheverything/) 0.01 Search Pages (http://randomfrequency.net/wordpress/search-pages/) 0.1 Shire Reckoning (http://www.allyngibson.net/?p=335) 0.5 Sideblog (http://katesgasis.com/2005/10/24/sideblog/) SimpleSearch (http://beaucollins.com/notes/2005/11/19/simplesearch-a-simple-full-text-solution/) 1.0 SimpleTags (http://www.broobles.com/scripts/simpletags/) 1.1 (See #1618 (http://trac.wordpress.org/ticket/1618) — need to edit wp-admin/admin-header.php to allow tagging within posts) Smart Count (http://wp.marcosmedia.com.ar/plugins/smart-count/) Spam Karma 2 - Reloaded (http://unknowngenius.com/blog/wordpress/spam-karma) (Tested 2.1 Beta 1 and seems to work fine except for comment_count updates) comment_count updates are fixed by using this SK2 plugin - http://lair.fierydragon.org/2005/11/sk2-wp2compatibility/) StatCounter for WordPress (http://citizenk.wordpress.com/wp-plugins/statcounter-for-wordpress/) 1.0 Structured Blogging (http://www.structuredblogging.org/) Subscribe To Comments (http://txfx.net/code/wordpress/subscribe-to-comments/) 2.0.2 (May need to have his text strings redefined in options panel, but otherwise works fine) Ryan Boren’s Theme Switcher (http://boren.nu/archives/2004/10/13/theme-switcher-plugin/) (partially works : it disables the “Current theme option” admin link) T - V Textile 1 (http://www.huddledmasses.org/) Trackping Separator (http://notes.mk-notes.com/tsp) Ultimate Tag Warrior (http://www.neato.co.nz/ultimate-tag-warrior/) 2.8.7 (Applied this patch (http://www.neato.co.nz/forum/read.php?4,114,115#msg-115) to solve ” ” problem) Note : release 2.8.8 solves this problem no more patch needed Ultimate Tag Warrior (http://www.neato.co.nz/ultimate-tag-warrior/) 1.3 Legacy Ultimate Tag Warrior: Tag Archive (http://www.neato.co.nz/ultimate-tag-warrior/) 1.0 W - Z Weighted Categories (http://www.hitormiss.org/projects/weighted-categories) 1.2 Witty Text (http://www.w-a-s-a-b-i.com/archives/2004/05/27/wordpress-random-witty-text-plugin/) Weather.com Plugin (http://www.didcoe.id.au/?post_id=19) 1.5 WeatherIcon (http://www.viper007bond.com/wordpress-plugins/weathericon/) 2.3 WebSTAT Tracker (http://cavemonkey50.com/code/webstat-tracker/) WordPress Database Backup (http://www.skippy.net/blog/category/wordpress/plugins/wp-db-backup/) 1.7 WordPress Mobile Edition (http://www.alexking.org/index.php?content=software/wordpress/content.php#wp_120) WP Admin Bar 2 (http://mattread.com/archives/2005/03/wp-admin-bar-20/) WP-Amazon (http://manalang.com/wp-amazon/) WP-Cron (http://www.skippy.net/blog/category/wordpress/plugins/wp-cron/) 1.4 WP-Dash (http://somethingunpredictable.com/wp-dash) (Recent Posts widget causes database errors) WP-Dash World Time (http://www.viper007bond.com/wordpress-plugins/world-time-for-wp-dash) WP Flickr Post Bar (http://tantannoodles.com/toolkit/wp-flickr-post-bar/) 0.3 (does not work with the WYSIWYG on) -> Possible solution? (http://wordpress.org/support/topic/50093) WP Grins (http://www.alexking.org/index.php?content=software/wordpress/content.php#wp_120) (need to change path around line 34 to /wp-includes/images/smilies/ from the default of /wp-images/smilies/, otherwise fine) wp-icq-status (http://blog.tassoman.com/78,wp-icq-status) WP SpamAssassin (http://www.ioerror.us/software/wp-spamassassin/) WPG2 (http://wpg2.ozgreg.com/index.php/Main_Page) WordPress/Gallery2 integration - tinyMCE (the rich text editor) filters wpg2 tag [...]
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.)
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.
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...?
Beta Candy: sorry, try this:
echo "<img src='"; echo gravatar(get_the_author_email()); echo " />";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.
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?
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. :)
Great plugin! Thanks!
Just wanted to pop in here and thank you, Scott, for working with me in email until you found the solution. :)
[...] Speaking of commenting, you may notice little boxes next to the comments. Those are for Gravatars, which are a way to have some consistent identity across blogs and sites and anything that uses them. Those images coordinate with the email addresses used on comments (once again, note that I do not do anything with your email address, and will never sell it or give it out without your permission). I’ve made mine semi-random, but that’s the sort of thing that I can do between my mad coding skillz and skippy’s. [...]
[...] Comvatars,它把Gravatars plugin和Favatars plugin这两个留言头像系统结合到了一起以便于使用,当然你安装它的同时另两个插件也是要的。 comment 留言 头像 [...]
[...] I have installed Skippy’s Gravatar plugin- which works great, but I needed to play with my CSS because it wasn’t displaying correctly. The gravatar was hidden beneath the comment box. [...]
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.
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.
Great work Skippy!... worked straight out of the box with no errors! Thanx for the cool plug in.
[...] WordPressプラグイン Code Viewer Exec-PHP Get Recent Comments Gravatars Related Posts Smart Archives WP-ContactForm Recent Post Entriesと、Technoratiタグはオリジナル作成 [...]
[...] Comvatars,它把Gravatars plugin和Favatars plugin这两个留言头像系统结合到了一起以便于使用,当然你安装它的同时另两个插件也是要的。 [...]
[...] Gravatars [...]
[...] Well… as you can all see by now I’ve gone through a (for me) major redesign of this weblog. And as I’m still not very capable of handling advanced XHTML and CSS myself (dispite reading Jeffrey Zeldman and Eric Meyer books…), I choose the easy way out and went for a WordPress-theme named “K2“. Since this beta-theme is getting more stable and useful, I’ve decided to roll it out here. So far I had to uninstall or disable some plugins that I was using in the previous (Kubrick-)theme, like the del.icio.us- and Skippy’s gravatars-plugin. Also not all previously used plugins (like weathericon, browsniff and IP2country) are enabled (yet), and I’m not quite sure if I’m going to… However, some new plugins are included, like Extended Live Archives that gives you an AJAXified way of digging into the archives of a blog. Give it a try by clicking on the archives-tab on top of this page! There are some issues with the default K2-stylesheet, so I’ve fallen back on the one included in the plugin. The little green bubbles and words are Technorati-tags. [...]
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
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
[...] In den Kommentaren werden nun auch Gravatars angezeigt. [...]
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
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*
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
[...] Gravatars [...]
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.
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.pnginstead of
http://fabiodrn.com/blog/wp-content/gravatars/blank_gravatar.pngoh 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.
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
[...] I also tried getting the Gravatar plugin to work, but this fails, as the Post Editor seems to screw up the tags, putting in a close tag. And self-closing the tag fails. [...]
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
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.
[...] Ich habe gerade das Gravatar-Plugin f
[...] Piccola modifica al tema che ora supporta nativamente l’ottimo plugin Gravatars di Scott Merrill. Così da oggi i commenti mostreranno il gravatar, se disponibile, dell’autore del commento. [...]
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.
[...] added full Gravatars support [...]
[...] Provide visual cues - by adding a mini icon (what’s know as a Gravatar or Favatar or Comvatar, depending on how the icon is obtained) which is always the same for a commentor, one is able to scan comments more quickly. You can see whether only a few people are leaving a tonne of comments back and forth (especially ones which argue regularly) or whether the post is attracting a wide variety of commenters. See the Gravatar, Favatar and Comvatar plugins for Wordpress. [...]
[...] skippy dot net » Gravatars Gravatar is a WordPress plugin that inserts the user’s gravatar image into comments. (tags: gravatar wordpress plugins) [...]
Well. I shall try it. It is my first post.
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.
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.
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
[...] Man registrerer simpelthen sin emailadresse og uploader en avatar. når man så bruger sin emailadresse på diverse websider (som har implementeret gravatar-funktionaliteten) så vises ens gravatar ud for ens kommentar eller forumindlæg eller hvad det nu måtte være. Jeg har selvfølgelig også selv fået implementeret gravatar-funktionaliteten her på siden ved hjælp af et plugin til WordPress. Det drejer sig om Gravatars af Scott Merrill. F.eks. ser min gravatar ud som vist her til højre. (Jeg er klar over at den i øjeblikket bare viser et spørgsmålstegn, men det skyldes at en avatar der uploades til gravatar.com først skal godkendes!) Så hvis du vil have vist dit billede ud for din kommentar her på siden, så sørg for at registrere en gravatar [...]
[...] Bom .. ore 6.44 del mattino stacco ora vado a ninna almeno 4 orette .. ho messo su anche il plugin di Gravatar molto semplice da inserire ve lo consiglio :
Any One ? Thanks...
[...] skippy gravatars ist am schönsten,denn hier sehe ich alle Bilder zusammengefasst im Adminbereich. Sollte sich jemand später dazu entschliessen, ein Gravatar Bild zu erstellen, so sehe ich es im Cache Ordner. Genial. [...]
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.
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.
stefigno: you can make your gravatar directory mode 666 in order to make it world writable.
[...] GravatarsThis is a nice plugin that enhances your blog with gravatars support, these little avatar pictures you can see here onsite next to the comments. It has an implemented caching mechanism, so once a gravatar is loaded at your blog it won’t be needed to access the gravatar server again for this user. A nice gimmick, officially supported by Binary Blue [...]
Skippy, I'm sorry... but I don't really know what that means. Invalid number of items?
Works good, like an avatar should.
Nice
[...] It took a little work to get Gravatars to work with Brian’s Threaded Comments. Both seem like pretty decent plugins. Okay, I’ll assume you’ve got Brian’s Threaded already installed. It requires a near total replacement of your comments.php page, so it makes sense to start there. Now you need to figure out: [...]
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.
N. Mallory: delete the gravatars.po (and .mo and .pot, if present) file(s) from your plugin directory.
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
OK !!! whhhooooohooo got it to work , but don't laff, I put it in the wrong directory. lol omg duh!
Thanks. Much better. :D
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 :)
Works nice for me! Great Plugin!
OK, I don't really know why, but it's working now!
Great!!! :)
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
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!)
oh ps. i'm still running WP1.5.2 (I know I know 2.0 rocks I'm getting around to it!)
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:
This sounds a bit unorthodox, so checking this post, it says under Installation:
which is less surprising.
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?
Bertil: a blank page usually means there's a PHP error. Can you check your web server error log for the error?
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 :)
Sorry! - forgot the spell checker ( again )
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
Ill try these...
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...:/
Oh, I got it now. I was editing the wrong comments.php. I use the default theme scheme, and I was editing classic. Doh?
Is there another way besides allow_url_fopen to cache Gravatars? I can't get around that problem on my server.
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 ).
Hrmm.. this time the spell checker didn't work.
[...] After long hesitation, as I upgraded my theme, I have finally come to the ponit of installing Skippys Gravatars plugin. This WordPress plugin makes it an easy task to add a more persomal touch to the comments of your blog. Every commenter gets his or her personal global avatar next to the comment. It makes the readers feel a little more like a society and make the retunign commenter feel welcome and at home. Let’s say it gives the comments area a more life like and less dry area. The images lighten up the place no doubt. [...]
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 ;)
[...] - Bad Behavior Well known plugin to prevent spam and keep your blog clean. - Adsense-Deluxe Easily add adsense to your post or anywhere inside your blog. - Comment Live Preview See live preview of your comments before you post your comment. Erm..not live enough though.. - Quote Comment Enable anyone to reply to anyone else’s comment to the posts. Useful.. Erm., But untill now I haven’t use it yet… - Cricket Moods Insert moods in your posts. Fun.. - Custom smileys Customize smileys at your blog. Insert them to your post or comment. Upload and specify your own shortcuts for them., Very easy to manage. God D*mn good. Suspek r u…er..Lazy N Useless… - Gravatar & Gravatar Signup Thay are for Gravatar user to display their gravatar at their comments. Very cool., See my gravatar, OMGWTF?!! If you dnot have gravatar, instant signup at the comment area. - Headline Images Turn your post title into graphic-text magically., You can use your own font too.. - PHP Exec For advanced user to run PHP script into their posts. - SimpleTags Put technorati’s tag with ease. Just put tag in between [tags][/ tags] tag.. e.g. [tags]tags, tag, tags, [/ tags]……. - IP 2 Nation Detects where your visitor from and view or display their origin or IP. You can even use this what so called awesome tiny flags pack. You can see tiny flag under the gravatar at post comments at my blog. kewl huh.. [...]
Gravatars now at jpeek.net...
We’ve all seen the use of avatars used in forums all over the place. It’s a neat way to distinguishing yourself from others. Gravatar, which stands for Globally Recognized Avatar, is a free service where you can sign up and upload an avata...
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.
Just wanted to say thanks for this plugin, works like a charm.
[...] Gravatars. Put a face to faceless comments. [...]
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?
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.
[...] Comvatars reuneşte Gravatars şi Favatars şi în plus, chiar dacă nu ai un avatar dintre astea două, îţi alege el din galeria proprie. La mai mult de 10 comentarii iţi poţi alege singur avatar. Oricum ăsta mi-a luat cel mai mult timp să-l pun la punct… datorită faptului că WP Gravatar Plug-in (sau Gravatar) nu e acelaşi lucru cu Gravatars. Eu am învăţat asta “the hard way”. Am luat Comvatars şi l-am modificat pentru Gravatar, apoi am dedus că nu era aşa degeaba , deci am căutat Gravatars şi a mers din prima… două ore . [...]
[...] Sebenarnya banyak yg mau di ceritakan tetapi kayaknya gue mau bicara masalah gravatar terlebih dahulu. Beberapa hari yg lalu Anjar menyarankan gue untuk membuat blog gue ini compatibel dengan Gravatar (gue curiga dia nyuruh agar ada pic dia kalau dia bikin comment di blog ini). Sesudah memakai plugin Gravatar buat word press dan mengedit comment .php dan .css di themes, Walla jadi dech blog gue ini compatibel dengan Gravatar. Disite plugin di atas lengkap cara agar bisa mengunakan plungin ini. Kalau tertarik silahkan mengunjungi link diatas. [...]
It works like a charm!
Thanks Skippy.
When you travel to Spain remember you've a friend! You're invited!
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
[...] Es gibt mittlerweile einige Plugins um in WordPress-Kommentaren Gravatare (Globally Recognized Avatar) anzeigen zu lassen, das bekannteste dürfte wohl das von Skippy sein. Ich bin generell kein Freund von Plugin-Orgien, da es meist in einer “mit Kanonen auf Spatzen”-Aktion endet. Deshalb suche ich zuerst immer nach einer kompakten Lösung, die man in die Template-Dateien einbauen kann. Die WordPressentwickler haben eine großartige API entwickelt und sehr umfangreiche Möglichkeiten, ein Theme seinen Wünschen entsprechend anzupassen. In den allermeisten Fällen reicht dies aus um der Webseite ein neues Feature hinzuzufügen. Und spätestens wenn man sich die Installationsanleitung und die Größe der Dateien aus Skippys Gravatar-Plugin anschaut, fragt man sich, warum für das Anzeigen einer kleinen, userabhängigen Grafik solch ein »Aufwand« notwendig ist. Also schnappte ich mir das PHP-Code-Snippet zur allgemeinen Implementierung von Gravataren und paßte es an die WordPress-spezifischen Gegebenheiten an. Grundsätzlich erfolgt der Aufruf eines Gravatars wie folgt: [...]
[...] Integrated support for Gravatars [...]
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.
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?
[...] One of the most popular ways to identify users on forums is by avatars. The Gravatars plugin brings that same personalization to WordPress comments. By using the power of the Gravatar service, the Gravatars plugin is able to display an avatar next to users’ comments. Many of your visitors probably already have a Gravatar, so why not make your visitors’ comments a little more personal by letting them display it. [...]
[...] Akismet 系统自带 Extended Live Archives0.10beta-r16,archive输出插件,一般我是用来查找以前写过的东西。 Blogtimes with Icons就是首页上的日志统计,以图片格式输出,作者好像把网站关了。 首字下沉效果看这篇日志的第一个字就知道了,有些模板需要自己设置首字的css方可使用。 Democracy1.2,一个投票插件。 Gravatars2.6,头像插件,需要到gravatar.com申请一个自己的头像。 Headline Images2.8,标题以图片输出,需要GD支持。 WP-PageNavi2.01,首页分页的插件。 Random Posts for Chinese,随机日志。 Randomize0.2,随机输出文字,图片的插件,效果在首页右上角。 iG:Syntax Hiliter3.5,代码美化插件。 SimpleTags1.2,Technorati Tags输出插件,因为和iG:Syntax Hiliter冲突,所以没有装最新版本。 Twilight AutoSave1.0,适用于1.5版本,不过2.0有时也能用,作者已不准备给插件升级了。 WP-UserOnline2.02,在线人数统计,可统计到会员,访客和bots。 IP 2 Nation1.1,留言者地区显示插件。 Click Counter1.01,地址点击统计。 WordPress Database Backup 系统自带 [...]
[...] Gravatars Support the “globally recognized avatars” by Gravatar [...]
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
dospuntocero...
Mi segunda plantilla publica para Wordpress...
[...] And so, sure enough, Rehan opens his mouth, but dumb doesn’t come out. It took me a second to decide that I wasn’t being tricked, but lo and behold he had a reasonable idea. (Actually, I shouldn’t say that - there was one other quite reasonable idea - except that in my whole day of being a Word Press user I already knew about three plugins that did that, and I ended up having to give them the links. Man, are these people up to date.) Apparently there’s a problem with caching gravatars, which are globally unique avatars, something so faggy that only a blogger could want it. (I’m trying to pretend I don’t want one; it’ll probably be that dinosaur with the coke cans that Chris made for my wiki, but I’m not gonna admit to it right now.) Apparently the most common gravatar plugin has an issue where it polls the server before it attempts to draw the existing cached one, which results in a lag which would make DWANGO blush. [...]
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 ;-)
nice
[...] Gravatars - puts the commenter’s “Gravatar” image next to their comment [...]
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.
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!!! :)
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!
[...] For Wordpress users who want to implement the gravatars on there site you can find it at skippy dot net [...]
[...] The gravatar gives you a feeling of being one and the same person in different places on the web. And is a simple answers on the problem of the (feeling of a) fragmented identity. A critical point could be the extern hosting of the gravatar images (as you can see on this gravater plugin blog) [...]
Public kudos to you - lovely plugin. Everything is workin' perfectly. No errors and got the default image, too! Thanks for everything!
thanks for plugin
Well how do you activate the gravatars.php?
[...] Nothing is fecking working in here: no Gravatars , Lazyest Gallery and/or Brian’s Threaded Comments so I don’t know what else to do. I can sit and cry, well, I’m already doing that anyway , or pay somebody to see what the hell is going on here, as I’m about to throw the towel, which would me make me feel like a moron though happy [...]
Neat plugin, thanks!
Thanks for good job.
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.
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.
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!
Have you thought about checking for allow_url_fopen and if it's not available use CURL to grab the images for caching?
it's work fine with wp2.0.2??
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
[...] While surfing some of the plugs which I haven’t subscribed to but have linked to, I found a posting on the Subscribe to Comments plugin. I promptly installed it. I still haven’t gotten OpenID to work and it has complicated the installation of my Gravatars plugin and now this plugin. [...]
[...] I have implemented, with some difficulty, gravatars by way of three steps. First you’ll have to get yourself a gravatar-picture. Secondly sign yourself up at Gravatar.com from Tom Werner. Thirdly a way to let your own gravatar, and those from other visitors on your site, show up. Tom Werner offers a simple and effective little script. But as always there are more advanced plugins available. First gravatar plugin to mention is the one from Skippy. It is a plugin with lots of possibilities through an admin panel. Secondly the one from Mark Jaquith. This one is quite a bit different. It allows you to extend your comments page with a direct sign-up feature. [...]
[...] Gravatars - plugin zapewniający poprawną obsługę tzw. „gravatarów” w blogowych komentarzach. Są to kwadratowe obrazki o maksymalnej wielkości 80×80 pikseli pojawiające się przy wpisie danego użytkownika. Ich idea oparta jest na unikalności adresów e-mail, które w Wordpressie wpisujemy przy każdym dodawanym komentarzu, a które nie są na stronie publikowane. Kod PHP analizuje adresy e-mail przypisane do komentarzy i porównuje je z adresami znajdującymi się w bazie gravatarów. Jeśli wykryje, że dany adres e-mail ma przypisany gravatar, obrazek ten pojawia się przy komentarzu. Wniosek: komentując wpis na dowolnym blogu mającym obsługę gravatarów wystarczy podać swój adres e-mail, a system sam rozpozna i przypnie nasz obrazek obok komentarza. Ja sam czekam właśnie na akceptację mojego obrazka w bazie gravatarów gravatar.com i liczę, że w ciągu kilku dni wszystko będzie już chodzić bezproblemowo. [...]
[...] One of the most popular ways to identify users on forums is by avatars. The Gravatars plugin brings that same personalization to WordPress comments. By using the power of the Gravatar service, the Gravatars plugin is able to display an avatar next to users’ comments. Many of your visitors probably already have a Gravatar, so why not make your visitors’ comments a little more personal by letting them display it. [...]
[...] Gravatars [...]
[...] Dem informierten Blogger wird wohl zuerst auffallen, dass ich auf die Wordpress-Schiene aufgesprungen bin und zwar nicht, weil mir Serendipity nicht gefallen hat - ich halte es immer noch fuer das einfachere System -, sondern weil ich mir gerne auch einmal andere Blogware anschauen wollte und mich die Features (Lightbox Java Plugin, UltimateTagWarrior, Ajax Unterstuetzung in den Kommentaren) einfach beeindruckt haben. Bei Wordpress muessen viele Plugins noch per Hand im Quellcode eingefuegt werden, Serendipity nimmt einem das mittels des Spartacus getauften Systems ab und ist somit einfacher zugaenglich. Das ist aber genau das, was mir derzeit fehlt: Ich muss mich einfach mehr mit Quellcode beschaeftigen und da kommt diese Frickelarbeit grade recht. Zum Einsatz kommt nun also ein aktuelles Wordpress 2.0.2 mit der K2 Modifikation und einer ganzen Reihe von Plugins. Um Images und Photos anzuzeigen greife ich auf alt=”Lightbox”>Lightbox zurueck, mittels UltimateTagWarrior werden Tags fuer einzelne Beitraege angelegt, vor Spam schuetzt mich in Zukunft Spam Karma 2 und mittels FAlbum integriere ich meine in Zukunft hoffentlich wachsenden Flickr Sets. Gravatars sind ebenso mit an Bord, wie Jans Onlinecounter und das Skype Plugin, damit man mich im Zweifelsfall auch mal anrufen kann. [...]
[...] Thanks to Skippy at Skippy.net for the gravatar plugin. [...]
[...] Gravatars (eindelijk) [...]
[...] I want my site to be an attraction and no one is going to come if its too simple. So here is the blog — totally interactive and bound to offer many treats. I’ve already added the Gravatar plugin to enable user avatars. My portfolio is open for viewing and of course my open source sites available for download. [...]
[...] Ich hab diverse Stunden damit verbracht eine Lösung zu finden, wie man die beiden Kommentar-Plugins Gravatars und Offcial Comments korrekt in der comments.php ausgeben kann, bis ich dann mit mal minimalen PHP-Kenntnisse spielen lassen habe. [...]
[...] Also support Gravatars. You have also download and install this plugin your self. [...]
[...] Ah, bym zapomniał. Podczas zabawy z wordpressowym pluginem do Gravatarów zapisałem sobie pod ręką, że napotkałem na pewnego buga, o którym na stronie pluginu nie znalazłem wzmianki. Gravatary z początku nie chciały mi poprawnie chodzić, więc po niedługiej analizie kodu PHP doszedłem, w czym leży problem. Nalęży w pliku z szablonem komentarzy comments.php zmienić: [...]
[...] Gravatars - puts the commenter’s “Gravatar” image next to their comment [...]
[...] Gravatars Web Incluye un Global Recognized Avatar, es decir, una imagen personalizada, en cada comentario. A los usuarios que tienen un gravatar registrado aquí, les aparecerá automáticamente, a los que no les aparece una imagen genérica. Incluye la posibilidad de que los usuarios registrados puedan subir su propia imagen sólo para esta web. Los gravatars se usan cada vez más en weblogs y foros, así que merece la pena modificar un par de archivos para incluirlos en el tuyo. [...]
[...] 本站暫時重新開放回應功能,持續觀察中。 另外因為更新了wordpress的版本,順便裝了Gravatar的Plugin..並用了自訂的圖案,所以以後大家回應時,只要輸入你申請Gravatar的Email就可以秀出你的Gravatar…若沒有申請,本站也繪隨機產生一個圖形。 [...]
[...] Provide visual cues - by adding a mini icon (what’s know as a Gravatar or Favatar or Comvatar, depending on how the icon is obtained) which is always the same for a commentor, one is able to scan comments more quickly. You can see whether only a few people are leaving a tonne of comments back and forth (especially ones which argue regularly) or whether the post is attracting a wide variety of commenters. See the Gravatar, Favatar and Comvatar plugins for Wordpress. [...]
[...] I recently installed a great plugin called Comvatars that combines avatars on my comment box. It also can work hand in hand with the existing favatars 2 by Jeff Minard and Co. and Gravatars 2.6 plugin by Skippy. [...]
[...] 3. Gravatars [...]
[...] 3. Gravatars [...]
[...] Unter WordPress gibt es das Plugin Gravatars (Skippy), welches mittlerweile verbessert und als Gravatars2 (ZenPax) veröffentlicht wurde. Das Gravatars-Plugin von Skippy hatte ich längere Zeit im Einsatz, aber dann deaktiviert, da das Caching wohl nicht sauber läuft. Teilweise hatte ich damit massive Performance-Probleme, Beiträge mit mehr als 10 Kommentare brauchten etliche Sekunden, bis sie geladen waren. Daher hatte ich gehofft, dass Gravatars2 (ZenPax) diese Probleme löst. Allerdings flogen mir beim Testen nach der Aktivierung in der WP-Administration nach dem Klick auf die Plugin-Option “Refresh” mehrere MySQL-Fehlermeldungen um die Ohren. Auch nicht vertrauenserweckend. [...]
[...] Gravatars [...]
[...] One of the most popular ways to identify users on forums is by avatars. The Gravatars plugin brings that same personalization to WordPress comments. By using the power of the Gravatar service, the Gravatars plugin is able to display an avatar next to users’ comments. Many of your visitors probably already have a Gravatar, so why not make your visitors’ comments a little more personal by letting them display it. [...]
[...] Lag offensichtlich an den Gravatar-Einbindung. Woran genau, ob nun Caching, Rückfragen bei Gravatar.com, am CSS und seinen Verschachtelungen oder am Plugin-Code? Keine Ahnung, schaue ich mir vielleicht nach dem Semester mal in Ruhe an. [...]
[...] Eu também aderi ao Gravatar, instalei o plugin do Gravatars no blog. O Gravatar é um site que oferece o seguinte serviço: Você cria uma conta com seu e-mail (é bem simples é só o e-mail e senha) e adiciona um avatar (figura que te representa). O pessoal do Gravatar vai verificar se a sua figura não tem nenhum problema (direitos autorais, imagens pornográficas, etc.) e após isso libera a sua conta. Só isso. [...]
[...] skippy gravatar นายคนนี้ชื่อสกิปปี้ เจ้าของสกิปปี้อวตา หุๆๆ [...]
[...] Primero partire por los plugins que utilizo, para los que no lo saben Wordpress es un programa muy bueno, pero que con la intencion de ser funcional busca no tener muchas cosas instaladas de manera que puedas adaptarlo a tus necesidades: Akismet: un gran plugin que te ayudara a mantener los spam en linea y sin molestia, lo unico es que necesitaras una Key de wordpress, pero que te servira mucho, muy recomendable. Brian’s Latest Comments: Sirve para que se vean los ultimos comentarios que se han realizado en el Blog, a mi me gusta porque le da importancia a las opiniones e incentiva a los que comentan. Flickrrrs: Este plugin te permitira poner tus fotos de Flickr en tu blog, es simple y bastante manejable. Gravatars: el primero que instale, sirve para que los tienen asociado un gravatar puedan verse en el sitio, de manera de personalizar las imagenes que aparecen en los comentarios, una buena forma de darle imagen a los comentarios. Podpress: el plugin que permite realizar los podcast, incluso permite que puedas aparecer en Itunes, asi que una gran ayuda para el soporte de audio. PXS Mail Form: Este plugin permite crear una pagina de contacto, simple y facil, asi sin dar tu mail los interesados pueden comunicarse contigo. Word press Backup: El plugin que permite crear archivos que respaldan todo el contenido de tu blog, algo que siempre debes realizar, y aqui la pagina que explica como usar ese archivo (gracias a esto salve mas de una vez este blog). Sidebar widgets: Un plugin que permite jugar con el sidebar (la barrita que va al lado), se les puede agregar muchas cosas y me gusta mucho porque te permite jugar con los contenidos que tienes a la vista. You Tube: Wordpress tiene algunos problemas con pasar videos, pero este plugin permite que puedas poner videos de Youtube, aunque tienes que hacer algunos detalles que salen muy bien explicados en la pagina, asi que gracias a esto puedes ver los videos que aparecen en el blog. [...]
[...] 2) Gravtars Este plugin permite mostrar el avatar de cada usuario en los comentarios, dentro de un post o dentro de una pagina. Es altamente configurable, las opciones de configuracion pueden ser color de fondo, si se quiere un marco alrededor de la imagen, posicion, tamaño por default y tamaño en los comentarios. Un ejemplo de este puede ser visto en los comentarios y en esta misma pagina. [...]
[...] Tired by 2-column default themes for WordPress, I’m looking for a 3-column one. Luckily I found TypoXP, designed by Sunaryo Hadi. Almost no-graphics, except there’s a lot of icons. Great for blogger who write mostly in text. I used 1.0.3 version, and modified sidebar to fit my content. For comment plugin, I didn’t try Recent Comment Plugin v.3x but using another one instead. In addition, I changed some CSS styles. For this theme, Gravatars 2.6 is also supportted. I’m very enjoying my new theme. Simple is best. [...]
[...] If your email address has a registered Gravatar, the Gravatars plugin will display that. [...]
[...] anyone who posted on my blog, will gived default gravatar if they dont have gravatars. i take gravatar plugin from http://www.skippy.net/blog/2005/03/24/gravatars/ . and i registered my gravatar @ http://www.gravatar.com . [...]
[...] And yes, of course there’s more than one Wordpress plugin for gravatars. There’s one that seems to have been the gold standard but is not working now and has been updated (or branched if you prefer) with this version which has been recently overhauled and among other things which tries to be nice to the gravatar server by caching local copies. The gravatar site itself provides this extremely simple one which simply retrieves the image directly from its servers. (It works fine in WP 2.0.) [...]
[...] Dodalem do WP wtyczke zapewniajaca support dla Gravatarow. Zachecam wszystkich do rejestracji w serwisie w Gravatar.com [...]
[...] Huray!! I fixed it. Before this I use Skippy’s gravatars, and it didn’t support the paged comment plugins. So I have to find other gravatars plugins and now my gravatars worked perfectly. I’m so happy. [...]
[...] Gravatars - Add gravatar support to WP. Administrative interface to control default gravatar options. [...]
[...] Gravatars, nice but not really useful. Show gravatar on comment. (6/10) [...]
[...] Gravatars v2.6 [...]
[...] Gravatars (2.6 - letöltés) - Egy helyes kis plugin, mely a kommentező email címéhez rendel egy pici képet (avatart). A regisztrálásról már írtam, tehát aki akar magának ilyet, az itt olvassa el az útmutatót. [...]
[...] I also want to add gravatars to the comments. I haven’t gotten around to trying to add the code. I’ve used gravatars in previous designs of this blog. [...]
[...] I installed this nice little Gravatar’s plugin, and added avatars to comments, posts, and the author pages (here’s mine, for example). You (yes, all two of you.. maybe three) can get you own avatar by signing up at Gravatar.com, using the same email address you use for your gonad.org account, or manually specifying an image on your profile page. As of right now, you can’t directly upload an image as your avatar, but that’s for another day’s tinkering. (If you’re clever, you could use the post editor upload function to upload an image to be used as your avatar, I suppose..) I’ve been inspired by the “Top WordPress Plugins” list, so I’ll be adding more fun plugins soon. [...]
[...] Gravatars: se volete abbellire l'area commenti questo è il plug-in giusto. Permette infatti di far inserire avatar a chi lascia un commento ai nostri post; [...]
[...] skippy dot net » Gravatars (tags: wordpress gravatar plugin) [...]
[...] Ive added some thingys to the site: tagging, snap preview, gravatars on the comments and Im sharing my starred RSS feeds from google reader with ya all. [...]
...i bence her üyeyi sadece nicki ile değil avatarı ilede hatırlamak lazım.
eklenti kurulum için bu siteye göz atabilirsiniz ...