
I was skimming Simon Willison’s blog (I know his uncle) when I came across this cool idea for automatic avatar generation. Well to tell the truth, I took one look at the title “Visual Security: 9-block IP Identification” and deleted the link from my RSS reader but the next day a link based on that idea came up for generating a unique monster avatar for each user that did catch my interest. After all if it’s got monsters, it has got to be interesting.
Anyway it turns out that Don Park decided to use a commenter’s IP address to generate a random (but persistent for each user) geometric image to associate with each user. This means that without needing external images or sites, each user can have a unique picture associated with them. Even better if several sites were to use the same algorithm for generating the image, the image would stay associated with the user across sites without any cross site communication. Andreas Gohr ran with this idea and decided to generate monsters instead of geometric images and use email addresses instead of IP addresses. So that brings the story here, since these two real programmers had already done all the hard thinking and programming, I thought I would make a quick and dirty Wordpress plugin to incorporate MonsterIDs easily into other blogs. So here is WP_MonsterID. It’s my first real Wordpress plugin so it may not be pretty but it seems to be working OK here (see monsters in the comments below). Edit: If monsters aren’t your thing, I have another plugin using just Don Park’s geometric shapes.
Features
- Monsters
- Dynamically generated avatars for each commenter
- Consistent on any blog
- Gravatar support
- Theme edits no longer necessary
Current Version:
Installation instructions:
Unzip monsterid.zip. Upload wp_monsterid.php and the monsterid folder. Make sure the monsterid folder is writable. That should be it. Monsters should now appear beside your commenters’ names.
You can add CSS for img.monsterid in your theme’s style.css to adjust the appearance of the images or adjust the size in the MonsterID control panel (your old monsters won’t be deleted until you clear the cache). You can also turn on Gravatar support and clear the MonsterID image cache in the Control Panel.
Tai has translated the installation instructions to Japanese, 5lineas translated them to Spanish, and Dennys has installation tips in Chinese (although these are a bit out of date as of Version 1.0).
Change Log:
- v2.12 05-18-2008:
- Fixed missing WP 2.5+ builtin avatars
- v2.11 05-17-2008:
- Fixed recent comment widget double monsters on single pages
- Added support for WP 2.5+ builtin avatars
- v2.1 03-04-2008:
- Improved default CSS for MonsterID Recent Comments Widget
- Added custom CSS editing for widget and MonsterID’s
- Optimized artistic monsters to only loop through the square region containing the part
- v2.04 2-14-2008:
- Removed smaller MonsterID option
- Added Recent Comments (with MonsterID) widget (since default Recent Comment Widget doesn’t provide commenter email)
- v2.02 2-13-2008:
- Removed monsterid from admin menus when using smaller MonsterIDs
- v2.01 2-12-2008:
- Add size to img attributes to avoid resizing page as loaded
- Added option for smaller MonsterIDs on non-post page (like the Recent Comment Widget on the home page)
- v2.0 2-05-2008:
- Added artistic monsters (thanks to the great artwork of Lemm)
- Artistic monsters are a bit tough on the server so limited generation time to a max of 5 seconds (unless the user is an admin)
- Changed to object-oriented monsterid although not completely OOP
- Added options for greyscale artistic monsters or old fashioned monsters
- v1.02 1-03-2008:
- Fixed sizing bug (thanks to Daniel)
- Added size attribute to icons so page doesn’t resize as loaded
- Removed a couple minor bugs
- v1.01 12-21-2007:
- Fixed automatic placement in unwanted places (again thanks to Shamus)
- Switching download link to Wordpress Extends
- Fixed version numbers in plugin file
- v1.0 12-19-2007:
- Added option to use show gravatars if they exist and fallback to MonsterID
- Theme edits no longer necessary (doesn’t hurt if you already did edit it) (This and the previous thanks to Shamus’s nice Wavatar plugin)
- Cleaned up Options page and error checking
- Caught possible infinite loop if user selects really dark or light body colors
- v0.61 12-12-2007:
- Changed to wiki pseudocode version of Mersenne Twister
- Changed bitshifting to mysql queries since many php versions only have 31 bit integers while Mersenne requires 32
- Sort part lists to keep things consistent on different servers
- v0.6 12-11-2007:
- Changed to pure PHP version of Mersenne Twister to allow consistent random numbers across servers
- v0.511-14-2007:
- Added reminder to clear cache after setting options
- Added option to switch to white outlines for dark backgrounds
- Added a few minor parts
- v0.42 8-17-2007:
- Fixed unintended white background on one pair of legs
- v0.41 8-1-2007:
- Fixed lower limit in
monster_mt_array_rand - Readded
back.pngto parts
- Fixed lower limit in
- v0.4 7-30-2007:
- MonsterID’s should now be consistent across servers (by changing
randtomt_rand) - Now checks the lightness of body color to make sure monsters aren’t too dark
- Added some more new monster parts and changed the size slightly on a few older ones
- Minor bug and WP standards fixes
- MonsterID’s should now be consistent across servers (by changing
- v0.3 1-25-2007:
- Added option to make background transparent. Just set the background color to 0 0 0 for Red, Green and Blue. Note that IE6 does not like transparent png and will turn the background grey.
- Changed
get_bloginfo('url')toget_settings('siteurl')to avoid problems when Options > General > Blog address (URI) is not default - Added a few new monster parts and increased the size slightly on a couple of older ones
- Fixed incorrect link in plugin information
- Increased length of email hash substring used to generate monster. Should increase possible combinations into the billions.
- v0.2 1-23-2007:
- Important note: Changed base function from
build_monstertomonsterid_build_monsterfor Wordpress function standards (I don’t suppose there’s any other plugins building monsters out there but better safe). - Incorporated Adrean’s new extra monster parts and random body coloring and a few parts of my own.
- Added a random background coloring and the option to set the coloring in the MonsterID menu.
- Added a test section to the MonsterID menu.
- Monster building automatically finds monster parts now so the users can add custom monster parts or delete parts they don’t like.
- Added option to output only image url to monsterid_build_monster:
monsterid_build_monster($comment->comment_author_email,$comment->comment_author,false)
- Important note: Changed base function from
- v0.11 1-21-2007:
- Got off to a pretty inauspicious start with a faulty wordpress page, a couple of immediate small bugs and a faulty file name.
- v0.1 1-21-2007:
- First version.
For Advanced Users
If you want more control of where MonsterID’s appear, disable the Automatically Add option and find the comments.php of your current theme (it should be in the folder wp-content/themes/[currentThemeName]/). Open it up and look for something similar to foreach ($comments as $comment). Inside this loop there should be code that displays the comment author’s name or metadata like <p class="comment-author"> or <p class="comment-metadata">. Just before all this enter:<?php if (function_exists("monsterid_build_monster")) {echo monsterid_build_monster($comment->comment_author_email,$comment->comment_author); } ?>
If you would prefer to base the monsters on the commentor’s IP address instead of the commentor’s email just replace $comment->comment_author_email in the above with $comment->comment_author_IP.
Customization:
If you want to customize the monster parts used in your version of WP_MonsterID just go to the wp-contents/monsterid/parts/ folder and delete any parts you don’t like. If you’d like to add your own parts, there is a Gimp file included in that folder containing a layer for each current part which should make constructing new parts easy. Save the new parts following the same conventions bodypartname_initial(s)#.png (e.g. arms_S1.png). If you come up with any good ones, feel free to send them to me and I’ll include them in the package.
ScottS-M | 21-Jan-07 at 1:23 pm | Permalink
Just a test to make sure I’m not full of crap.
Scott | 21-Jan-07 at 1:25 pm | Permalink
Still me but with a different email.
ScottS-M | 21-Jan-07 at 1:26 pm | Permalink
Me again with my standard email.
My apologies if anyone was getting a 404 from this page earlier. Wordpress decided to make the post private. Not the most useful feature even when it works right. I’d have to say that if you want something kept private, it’s probably not the best idea to post it to the internet.
Andreas Gohr | 22-Jan-07 at 4:03 am | Permalink
Hey Scott, you might want to upgrade your plugin to the most recent release which adds dynamic color, too.
ScottS-M | 22-Jan-07 at 7:55 am | Permalink
Great. I’ll do that. Thanks for improving it.
David Collantes | 22-Jan-07 at 1:21 pm | Permalink
The download link is giving 404. Fix please? I want it! :)
ScottS-M | 22-Jan-07 at 1:42 pm | Permalink
Oops sorry about that. The filename got messed up. Just not my lucky day I guess. Should be working now.
David Collantes | 22-Jan-07 at 1:50 pm | Permalink
Many thanks. Will implement, right after I implement my own OpenID server :)
Cheers!
Ibrahim Cesar | 22-Jan-07 at 2:33 pm | Permalink
Just don’t work in my weblog….
ScottS-M | 22-Jan-07 at 2:46 pm | Permalink
Shoot. I only have access to this server so I haven’t been able to test it on a lot of configurations. How far did you get before it failed? Does MonsterID come up in the Options Admin menu? Does your server have the PHP image library (it’s necessary)? Is your server on a Linux/Unix machine? I’m not sure if a windows machine would work with the file paths although I think PHP is smart and handles file paths on both ok. Or it could just be something silly I did. Let me know and I’ll try to fix it as soon as possible.
Caio Romão | 22-Jan-07 at 8:17 pm | Permalink
Worked perfectly on my home server (linux, offline). Just created a new fuction to return only the image path so I could integrate to gravatar.
Also, there’s a silly mistake that doesn’t affect the code: the usage tooltip in options page is wrong :)
ScottS-M | 22-Jan-07 at 10:08 pm | Permalink
Thanks for catching the tool tip, I’ll be putting up a new version with more images and random body color (thanks to Andreas) later tonight. I’ll put in an image path only option to the function too.
Don Park | 23-Jan-07 at 12:45 am | Permalink
-1 point for deleting a link to my blog.
+99 points for bringing the joy of MonsterID to Wordpress users.
Great job, Scott. :-)
Don Park | 23-Jan-07 at 12:46 am | Permalink
Er, how come I have the same MonsterID as Caio?
ScottS-M | 23-Jan-07 at 2:27 am | Permalink
@Don Park: Thanks for visiting and thanks for the smart IP/email to image idea. Sorry about deleting the link, I should know better than to judge a book. Glad I finally did read it. I updated my plugin to v.2 before checking the comments so I didn’t get a chance to see if you were exactly the same as Caio. Maybe luck? They’re different now anyway.
Sheldon Kotyk | 23-Jan-07 at 2:33 pm | Permalink
Nice work, I’m going to have to install this one.
CP | 23-Jan-07 at 8:27 pm | Permalink
Sorry for the spam, but I just have to see my monster. Kudos to you all for the 9-block and monster ideas!
DaveG | 23-Jan-07 at 10:05 pm | Permalink
I love it, great job!
PuRiRuRi | 24-Jan-07 at 3:32 am | Permalink
I only want to see my monster
Diego | 24-Jan-07 at 4:47 am | Permalink
Interesting idea… :)
ansita | 24-Jan-07 at 7:44 am | Permalink
i also want to see my monster
Dougal Campbell | 24-Jan-07 at 1:49 pm | Permalink
Heh, I like it! Another del.icio.us bookmark added…
fruityoaty | 24-Jan-07 at 2:06 pm | Permalink
Ah, just another tester. This looks nifty, but how many monster images are available for assigning?
ScottS-M | 24-Jan-07 at 2:42 pm | Permalink
I’ve been meaning to figure that out myself. The current part totals are: 17 eyes, 8 hairs, 12 mouths, 15 bodies, 10 legs. That is 244,800 possible combinations. In addition, the body color can range between 20-235 for red, green, and blue. If we count that as 20 distinguishable values for red, green, and blue that adds 8000 possible colors and brings the unique monster count to 2 billion. The only problem is that the algorithm is only using the first 6 digits of the md5 hash of the email which only provides 16 million possible combinations. So I guess the answer is 16 million monsters currently and in the next release I’ll use a few more digits of the hash and increase it to a billion or so.
Anizio Silva | 24-Jan-07 at 3:20 pm | Permalink
Anyone who knows anything of history knows that great social changes are impossible without feminine upheaval. Social progress can be measured exactly by the social position of the fair sex, the ugly ones included.
Karl Marx
Just a test :)
Don Park | 24-Jan-07 at 3:30 pm | Permalink
Donate more monster body parts people and we’ll soon have more monsters than there are people in this galaxy!
:-)
Jeff Allen | 24-Jan-07 at 3:44 pm | Permalink
Now this is a cool idea. I will have to give it a try on my site!
Jeff Allen | 24-Jan-07 at 4:09 pm | Permalink
BTW is there a way to make the monster image a link to their website (when they have one)?
mekal | 24-Jan-07 at 4:32 pm | Permalink
nice)))
ben | 24-Jan-07 at 4:51 pm | Permalink
What a cool idea! Thanks.
Damon | 24-Jan-07 at 7:10 pm | Permalink
Mine was pulling the wrong site url for some reason and I had to replace get_bloginfo(’url’) on line 214 with get_settings(’siteurl’) to get it to work.
ScottS-M | 24-Jan-07 at 8:27 pm | Permalink
Oh good catch. That could be a problem if someone set their Options > General > Blog address (URI) to something besides the default. I’ll change that in the next version.
harley | 24-Jan-07 at 8:44 pm | Permalink
This thing really took off. Consider integrating the background color to match the background of the post? Unless you think 16 million people will comment soon, then leave it so I can tell who’s who.
Jeff A | 25-Jan-07 at 2:27 am | Permalink
My previous comments did not show up, how odd. Anyway I was wondering how I might set it up so that the monster pictures are links to the comment authors website.
ScottS-M | 25-Jan-07 at 3:56 am | Permalink
@Jeff
Hmm, Akismet seems to have caught your second comment but not your first or third. Strange. I despammed it now. Sorry about that.
As for a link to the author’s website, that’s a good idea. Might as well use the picture’s space.
You could add a link by adding a bit more to the monsterid_build_monster call in your comments.php file:
<?php if (function_exists("monsterid_build_monster")) {$output=monsterid_build_monster($comment->comment_author_IP,$comment->comment_author); if (!empty($comment->comment_author_url) & 'http://' != $comment->comment_author_url) $output='<a href="'.$comment->comment_author_url.'"rel="external nofollow">'.$output."</a>";echo $output;} ?>It’s a bit long since you have to check if the url is blank. Let me know if you have any trouble
ScottS-M | 25-Jan-07 at 12:51 pm | Permalink
I just released version 0.3.
@Harley
v0.3 includes the option to set background to transparent. But IE6 can’t handle transparent png’s and displays the background as grey.
Sorry about the changing icons. I clear the MonsterID cache so I can make sure I’m not sending out a buggy plugin. If you’re happy with your icons, do not clear the MonsterID cache after upgrading and they should remain as the old versions.
Paul | 25-Jan-07 at 2:34 pm | Permalink
Just upgraded to WP 2.1 and my monsters are gone! This is just about the coolest plugin I’ve got running, so it’s a bad thing :(
Paul | 25-Jan-07 at 2:40 pm | Permalink
Ak, moron - something about the upgrade I did reset the theme :( All working now!
Marty | 25-Jan-07 at 3:33 pm | Permalink
I just want to see what it comes up with for me.
tnarik | 26-Jan-07 at 3:36 am | Permalink
cool!
Jeff A | 27-Jan-07 at 2:59 am | Permalink
@ScottS-M
That worked like a charm, thanks. I am really enjoying this as a great replacement for gravatars which are only cool if everyone has them!
laihiu | 27-Jan-07 at 5:37 am | Permalink
now how do i look? :P
laihiu | 27-Jan-07 at 6:00 am | Permalink
hi ScottS-M:
i’m using wordpress 1.5.2 and i’ve got an error on the plugins list page:
Warning: file(/home/XXXXXXXX/public_html/XXXXXX/blog/wp-content/plugins/monsterid/wp_monsterid.php): failed to open stream: Permission denied in /home/XXXX/public_html/XXXXXXX/blog/wp-admin/admin-functions.php on line 962
Warning: implode(): Bad arguments. in /home/XXXXX/public_html/XXXXX/blog/wp-admin/admin-functions.php on line 962
really want this plugin badly =(
please advise!
Edited to remove specific file paths.
laihiu | 27-Jan-07 at 6:19 am | Permalink
sorry for the spam…but the problem’s fixed after i’ve changed the permissions to 777 (it was previously 666).
it now works like magic! =)
thanks for the cool plugin!!
and would you kindly remove my previous comment which shows my blog’s home directories? much thanks :)
Ames | 27-Jan-07 at 12:34 pm | Permalink
Cute
Vipin | 27-Jan-07 at 1:17 pm | Permalink
kewl
digiviz | 27-Jan-07 at 1:18 pm | Permalink
This is interesting
Shane | 27-Jan-07 at 2:28 pm | Permalink
Very cool idea!
Scott Jon Siegel | 29-Jan-07 at 7:27 pm | Permalink
I enjoy this spinoff of the Identicon concept.
dood | 29-Jan-07 at 9:51 pm | Permalink
testing
Stuart Robertson | 29-Jan-07 at 11:10 pm | Permalink
Great plugin! Thanks.
Matt | 30-Jan-07 at 11:03 pm | Permalink
Cool plugin, might have to add it to my site.
sravi | 01-Feb-07 at 11:08 am | Permalink
cool!
gliv | 03-Feb-07 at 12:12 pm | Permalink
odden | 04-Feb-07 at 6:35 pm | Permalink
How funny!
odden | 04-Feb-07 at 6:36 pm | Permalink
is it independent from your e-mail?
odden | 04-Feb-07 at 6:36 pm | Permalink
wow!
odden | 04-Feb-07 at 6:37 pm | Permalink
i like this one…
magistus | 04-Feb-07 at 6:38 pm | Permalink
this is great!
Lynn | 04-Feb-07 at 10:22 pm | Permalink
wow, this is pretty cool
testing | 04-Feb-07 at 10:23 pm | Permalink
neat
Vincent | 05-Feb-07 at 5:29 pm | Permalink
Thanks a lot for the plugin, I’m using it with joy !
Porges | 06-Feb-07 at 2:24 am | Permalink
lol
Elliot | 06-Feb-07 at 3:38 pm | Permalink
What does this email look like?
Shawn | 06-Feb-07 at 6:36 pm | Permalink
Just checkin out my monster!
Tino | 07-Feb-07 at 8:29 am | Permalink
Jetzt möchte ich aber auch sehen, wie mein Monster aussieht! :-)
Caitlin | 07-Feb-07 at 4:28 pm | Permalink
testing :)
Steinar | 08-Feb-07 at 6:57 am | Permalink
Great plugin, thanks!
Paolo Gabrielli | 08-Feb-07 at 12:17 pm | Permalink
This plugin it’s *REALLY* cool guys. Thinkin of using it…
Thanks!
MInTheGap | 08-Feb-07 at 12:53 pm | Permalink
Have to comment to see my monster too! :)
AnimalMutha | 09-Feb-07 at 6:38 am | Permalink
Grrrrraaaaarrrgggghhhhh
reading_is_dangerous | 10-Feb-07 at 5:42 pm | Permalink
wonderful idea-
how could I put it on my blogspot.com?
oh-
ScottS-M | 10-Feb-07 at 6:33 pm | Permalink
@reading
Hmm, I don’t know much about blogspot. From a quick google, I didn’t see any plugin system or ways to access php so my inexpert opnion is probably not but let me know if I missed something.
Gal | 11-Feb-07 at 2:58 am | Permalink
This is SO cool! I’d definitely put it in my blog.
Ibrahim Cesar | 12-Feb-07 at 11:03 am | Permalink
You can help me?
When I put in my blog, happen this:
Warning: opendir(/home/—-/public_html/wp-content/plugins/monsterid/parts/) [function.opendir]: failed to open dir: No such file or directory in /home/—-/public_html/wp-content/plugins/wp_monsterid.php on line 27
Ibrahim Cesar | 12-Feb-07 at 11:06 am | Permalink
Opss….Everything fine!
thanks! thanks! thanks!
reading_is_dangerous | 15-Feb-07 at 9:18 pm | Permalink
@ScottS-M:
thank you anyway. I came back, and saw that you saw. :)
long live the semi-random monsters!
rid
steve | 15-Feb-07 at 11:13 pm | Permalink
I just had to see what my monster looked like! :-)
Cumango | 15-Feb-07 at 11:59 pm | Permalink
Awesome plugin.
But I can only put it on my site if my monster is “good looking”.
Jurgen | 16-Feb-07 at 5:12 pm | Permalink
just want to see my monster
fiero | 19-Feb-07 at 3:30 pm | Permalink
I want to see my monster too :)
GetronX | 19-Feb-07 at 9:21 pm | Permalink
Nice idea dude.
Lestat | 20-Feb-07 at 1:07 am | Permalink
I want to see my monster too
Taliesin | 20-Feb-07 at 5:02 am | Permalink
Funny!!
E.T. | 20-Feb-07 at 5:50 am | Permalink
phone… home…
JL | 20-Feb-07 at 7:31 am | Permalink
Interesting…
Rato_Louco | 20-Feb-07 at 9:41 am | Permalink
kria um monster pre mim
Bill D'Alessandro | 20-Feb-07 at 2:58 pm | Permalink
Just testing to see my monster. What a cool plugin!
Folco Boffin | 20-Feb-07 at 4:56 pm | Permalink
Just curious as to what my monster looks like… Also, how many digits of the md5 hash does this currently use?
ScottS-M | 20-Feb-07 at 5:10 pm | Permalink
@Folco
It uses 10 digits of the md5 hash now. That should allow 1 trillion possible hashes. This means that the number of monsters are now limited by the number of parts and colors which should be about 2 billion (or more if you want to count each step in the RGB colors).
ismael | 21-Feb-07 at 7:20 am | Permalink
wow
Fukurou | 21-Feb-07 at 9:34 am | Permalink
A test
Fukurou | 21-Feb-07 at 9:35 am | Permalink
test for viewing some implementation posibility
Hyoga | 21-Feb-07 at 12:25 pm | Permalink
Buaa!!
Vincent | 22-Feb-07 at 10:10 am | Permalink
Made a couple of minor modifications to the plugin for my website :
1. Line 215 : I wanted to show a caption for the image, changed to :
title=”‘.$altImgText.’\’s monster” alt=”‘.$altImgText.’\’s monster”
2. Line 126 : I did not want the monster to change if the user entered his mail address with just some case difference. So I pass the lower-case mail address to the monster function. It becomes :
monsterid_build_monster(
strtolower($comment->comment_author_email),
$comment->comment_author);
Thanks a lot for your plugin !
ScottS-M | 22-Feb-07 at 11:01 am | Permalink
@Vincent
That’s a good idea with the title attribute. For some reason, Firefox doesn’t display titles on my computer so I forget about them.
Making the email address case insensitive is a good idea. I debated it but I had been thinking if someone didn’t like their monster they could change their case slightly to get a new one. But now that I think about it, the user probably isn’t going to know that so I guess I’ll just add that to the function in the next version.
Thanks for the input.
magicpointeshoe | 22-Feb-07 at 8:10 pm | Permalink
I’m going to ask the painfully obvious. Where should I upload the folder and php file too? In all other plugins I’ve installed everything has gone to the plugins folder.
.:(/@ur@):. | 22-Feb-07 at 8:13 pm | Permalink
Ala ke warrada d muñekajo!!!
komo aki no me entiende nadie puedo decir lo ke me salga xD
Weno no dgo nada au xD
ScottS-M | 23-Feb-07 at 12:08 am | Permalink
@magicpointeshoe
Oops I managed to mess up the directory structure in the zip file at some point. It should be fixed now.
So now unzip monsterid.zip. Put both the
monsteridfolder andwp_monsterid.phpfile in yourwp-content/plugins/folder. So you should havewp-content/plugins/wp_monsterid.phpandwp-content/plugins/monsterid/. (You probably knew all that and it was just the screwy zip file messing you up but better safe…)Let me know if you have (or I cause) any more trouble.
magicpointeshoe | 23-Feb-07 at 3:51 am | Permalink
I finally figured it out. What led me to that solution was trying to figure out where to put the code on the comments page. For some reason which I didn’t realize until I went to get dirty as you put it, the Freshy theme has a whole lot of coding for some avatar web doohicky. It took a lot of cut and pasting here and there to figure out how to line these monsters up properly.
This is rather nifty!
ScottS-M | 23-Feb-07 at 8:20 am | Permalink
@magicpointeshoe
Looks like I answered the wrong question for you. Glad to see you figured it out in spite of me. It is a bit of a pain having to edit the theme file. I tried to find a more automatic way but I couldn’t and the big plugins like gravatar seem to require theme editing too so I guess we’re stuck editing.
tikitakfire | 25-Feb-07 at 5:29 am | Permalink
hola!
Donna | 25-Feb-07 at 8:44 pm | Permalink
OooOOOOoo I like this. :)
tizz | 25-Feb-07 at 9:25 pm | Permalink
just checkin out my monster!!
luv | 26-Feb-07 at 7:22 am | Permalink
great for my site!
monica | 27-Feb-07 at 9:57 pm | Permalink
I love it!
fizia | 09-Mar-07 at 10:16 pm | Permalink
i had to see what will pop up:))
Alex | 18-Mar-07 at 12:46 pm | Permalink
Wooooo!!!
great idea. Funny! Makes everyone to comment :)
dixie | 18-Mar-07 at 2:07 pm | Permalink
i would like to use this in conjunction with what used to be “dan’s avatar thingy” - i’m having trouble figuring out how to make the display conditional on not having the other one…is that harder than it sounds?
ScottS-M | 18-Mar-07 at 4:37 pm | Permalink
@dixie
To integrate this plugin with dan’s avatar thingy shouldn’t be too hard if dan’s returns true when it finds an image…
I took a look and it looks like his cmd_show_avatar does not return the information we need. But (I think) you could hack it by adding
return true;after theecho $user_pic_found;on line 89 and again after theecho '<img ... />';on line 94 and addingreturn false;before the third}on line 97 of cmdavatar.php. Once you do that you should be able to use dan’s avatar thingy and wp_monsterid together with something like:<?php if (function_exists('cmd_show_avatar') & function_exists('monsterid_build_monster')){ if (!cmd_show_avatar()){echo monsterid_build_monster($comment->comment_author_email,$comment->comment_author);}} ?>I haven’t actually tested that so it may have a typo or two but hopefully it’ll at least give you an idea. Let me know how it goes or if I could help further.
dixie | 20-Mar-07 at 1:34 pm | Permalink
thanks for your info. i will take a look at it and see if i can’t make them play together.
Joel | 22-Mar-07 at 1:33 am | Permalink
Just had to see what my monster looked like…..
maz | 26-Mar-07 at 9:20 am | Permalink
coool…i like it
Bethany | 31-Mar-07 at 8:43 am | Permalink
These are so cool!
I want to use them as a substitute for Gravatars2, if the commenter doesn’t have a gravatar, but how can I make the monsterID show up only if the person doesn’t have their own gravatar to use?
Bethany | 31-Mar-07 at 10:25 am | Permalink
Er, gravatars in general. I don’t particularly care which plugin I use for that. Right now I’m using Gravatars2, but if it’s easier to make MonsterID work with another gravatar plugin, that would be just fine, too.
ScottS-M | 31-Mar-07 at 1:28 pm | Permalink
@Bethany
It looks like it will work with Gravatars2 pretty nicely. If you go to the comments.php file of your theme and find where you currently have something like:
<?php if (function_exists('gravatar')) { gravatar_image_link(); } ?>you can replace it with:
<?php if (function_exists('gravatar')){$gravatar_link = gravatar_image_link('', '', '', '', 'Gravatar', '', '', false);if (function_exists("monsterid_build_monster") & strpos($gravatar_link, 'Create your own Gravatar')){
echo monsterid_build_monster($comment->comment_author_IP, $comment->comment_author);
}else{echo $gravatar_link;}} ?>
It’s a bit longer but that should display the gravatar if it exists and otherwise display the monsterid.
Let me know if you have any trouble with it.
Bethany | 31-Mar-07 at 2:23 pm | Permalink
It works perfectly! Thank you. It would have taken me forever to get that right!
Ondaderthad | 31-Mar-07 at 11:43 pm | Permalink
me wanna see monster.
jamie martin | 05-Apr-07 at 1:54 pm | Permalink
grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr i’m a angry monster
Andrea Micheloni | 06-Apr-07 at 10:36 am | Permalink
Test
Anne-Emilie | 06-Apr-07 at 12:23 pm | Permalink
Good,
I think I’m going to try it on my blog.
Thanks for the job
Carlos Magaña | 10-Apr-07 at 2:45 am | Permalink
Wow, I like it, monsters are so cute
Ashish C. | 10-Apr-07 at 9:35 am | Permalink
I tried to do it on my blog… needs GD library … which means I need to talk to my host. But still very awesome plugin that solves the craving of migrated wp.com users who want an avatar…
möp | 12-Apr-07 at 6:55 am | Permalink
Could you guys tell me how to integrate this plugin gravatar into my freshy theme. There’s much more gravatarcode at the comments.php of the freshy-theme than normally. So I cant get it work. I see Magicpointeshoe has pointed the same question? Hope you guys can help me.
alex | 13-Apr-07 at 1:04 pm | Permalink
hi nice site.
ScottS-M | 13-Apr-07 at 2:53 pm | Permalink
@mop
I took a quick look at the freshy theme. It looks like you should be able to put:
<?php if (function_exists("monsterid_build_monster")) {echo monsterid_build_monster($comment->comment_author_email,$comment->comment_author); } ?>in around line 64 after:
echo "' alt='' class='gravatar' width='".$gravatar_size."' height='".$gravatar_size."' /></a>";} ?>
and before:
<?php comment_author_link() ?></strong> <small>(<?php comment_time('H:i:s'); ?>)</small>…Let me know if you have any trouble.
Tamlyn Rhodes | 14-May-07 at 10:56 am | Permalink
Smart! (I just want to see what *my* monster looks like ;-)
arthurson | 27-May-07 at 6:14 am | Permalink
testing
arthurson | 27-May-07 at 6:16 am | Permalink
testing again
arthurson | 27-May-07 at 7:04 am | Permalink
i have the problem of using this plugins ,as i t always render the same icon for all message, it is wp2.2, so i have to use MyAvatars again. and just let you know my case for reference.
ScottS-M | 27-May-07 at 9:20 am | Permalink
@arthurson
That was good motivation to get around to upgrading. Thanks. Let’s see if there is a problem in 2.2?
Scott | 27-May-07 at 9:21 am | Permalink
Still me. Different email. Is it the same?
ScottS-M | 27-May-07 at 9:50 am | Permalink
@arthurson
I’m not having a problem in WP2.2. If you’re getting the same monster on every email it sounds like
monsterid_build_monster($comment->comment_author_email, $comment->comment_author);might have something wrong with$comment->comment_author_email. A typo there would causemonsterid_build_monsterto think everyone’s email was “”. Not sure why upgrading would mess that up but I’d check that first. If that’s not it, feel free to post the code near the MonsterId part (inside<code></code>tags) and I’ll take a look.Malaysia | 30-May-07 at 10:06 am | Permalink
Am i suppose to see a monster on my profile after i posted ? test.
Anyway, nice idea and site, had a tough time figuring what the hell it is
ScottS-M | 30-May-07 at 8:49 pm | Permalink
@Malaysia
This is a plugin to generate the little monsters you see next to the comments here. If you do install and activate the plugin you should see some configuration options and a monster in the WP Admin > Options > MonsterID page. If the monster doesn’t come up then there’s probably something missing on your server. Most likely the GD graphics library. If it does work then you just need to edit your theme a little bit as detailed above and all your commenters will have their own unique monster. Let me know if I can help with anything.
Malaysia | 01-Jun-07 at 3:03 pm | Permalink
does my monster change everytime or it is always the same.
ScottS-M | 03-Jun-07 at 12:02 am | Permalink
@Malaysia
It should stay the same if you use the same email address for your comment (alternatively if you were setting it up on your site you could use the commenter’s IP address).
icestorm | 08-Jun-07 at 8:56 am | Permalink
this is a test
littleoslo | 15-Jun-07 at 10:24 am | Permalink
just wanna see how would i look like here, thx
Ekus | 17-Jun-07 at 4:56 am | Permalink
:)
Johann | 26-Jun-07 at 8:42 pm | Permalink
Randomness iz TEH cool.
Joe | 30-Jun-07 at 7:15 am | Permalink
Don’t email, just want to see mine (email is wrong)
ScottS-M | 30-Jun-07 at 9:11 am | Permalink
@Joe
I don’t email any one unless they ask me to. Personally I don’t really care if people leave their email or not although with MonsterID or Identicon it is a handy way to keep people from pretending they are you unless they know what email you used.
Kunal | 03-Jul-07 at 6:22 pm | Permalink
Awesome stuff mate, terrific.