The blogging community has gone nuts since they lost "their" small avatars, due to some serious upgrading at Gravatars. Gravatars have for a long time had problems with slow or even too many connections and as of this writing the site is completely down (well, there is a notice on their site, but that's it).
MyBlogLog has started to offer some services that besides being a community also works as a great replacement for Gravatars. Napolux have already made a small plugin, which adds MyBlogLog's avatars next to comments, but unfortunately there are some minor, but serious flaws in that plugin – especially the fact that peoples emails are being exposed. That is a big no-no in the blogging community. Nevertheless then Napolux has promised to fix that in a later version.
I have in the meanwhile worked out a quick and dirty replacement for the plugin. Besides adding avatars next to comments, then it also adds an avatar to the post itself. I have honored Napolux's work and kept the syntax and function call the same, so it's fast to switch back when the new version is released.
To use this plugin just download it, activate it and add the following line where you want it:
< ?php if(function_exists("MyAvatars")) MyAvatars();?>
Ingen relaterede blogindlæg.
Tags: blog,hjemmeside,software
Categories: blog
4 Comments »
4 Responses to “Avatars are back :)”
10. January 2007 23:16:50
The only problem with this is that the server downloads the images each time. If you cache it then it's not as much of a problem, but then the images won't change immediately either.
10. January 2007 23:24:01
Yeah, I am aware of that fact
It's the same with some of the earlier Gravatar plugins.
I do however have an idea of a simply cache-method, but it does of course require some additional coding… I'll try to look into it though.
12. January 2007 01:19:14
After several hours of work I have a version which uses a local file cache where it stores the avatars.
I have also changed the hardcoded values (avatar sizes both for posts and comments, styles, classes, locations among other things) to values that can easily be changed via the options menu.
The only thing I still need to do before releasing it, is to clean up the code and that is something I am too tired to do right now
I will get it done tomorrow though.
12. January 2007 17:01:16
I know what you mean.. I worked up a script that'll tell me how big a page is (including the kbs of the images, scripts, etc) but its very chunky code =p
Care to comment?
Subscribe to comments?