Avatar Plugin patched for Identicon/Ycon
Posted: Sun Jan 27, 2008 11:55 pm
As this is my first post I have to thank everyone in this community for S9Y! Especially the clean hook principle is brilliant... I don't want to go the route of patching core files just for language changes ever again (Wordpress...).
For my weblog, I have patched the avatar plugin to support so-called Identicons (which is also the basis for MonsterID, but I like the abstract icons better), more specifically a PHP implementation called "Ycon" by Ben Hendel-Doying.
Example Avatar:

I am not sure about the policy of S9Y regarding patches. I especially don't want to ruin the great centralized update service. There are only a few things I've patched to add Ycon support (locally generated; basically copy/paste of MonsterID calls).
Modifications:
- a new switch case for 'identicon' in two places
- inserted fetchYcon() function right below fetchMonster()
- ycon directory with ycon library
You can download a patched version 1.39 of the plugin here: http://www.wiredwings.com/download/sere ... atched.zip
I did not modify the maximum number of slots and I don't think it is necessary as either MonsterID or Identicon will always work. I wasn't sure how to handle the version number, so I haven't changed anything there either; that way, auto-updates will probably overwrite the customizations. Can anyone tell me how to do it in a clean way? Rename the plugin, change version numbers?
Of course I'd be happy to contribute this to the official plugin.
For my weblog, I have patched the avatar plugin to support so-called Identicons (which is also the basis for MonsterID, but I like the abstract icons better), more specifically a PHP implementation called "Ycon" by Ben Hendel-Doying.
Example Avatar:

I am not sure about the policy of S9Y regarding patches. I especially don't want to ruin the great centralized update service. There are only a few things I've patched to add Ycon support (locally generated; basically copy/paste of MonsterID calls).
Modifications:
- a new switch case for 'identicon' in two places
- inserted fetchYcon() function right below fetchMonster()
- ycon directory with ycon library
You can download a patched version 1.39 of the plugin here: http://www.wiredwings.com/download/sere ... atched.zip
I did not modify the maximum number of slots and I don't think it is necessary as either MonsterID or Identicon will always work. I wasn't sure how to handle the version number, so I haven't changed anything there either; that way, auto-updates will probably overwrite the customizations. Can anyone tell me how to do it in a clean way? Rename the plugin, change version numbers?
Of course I'd be happy to contribute this to the official plugin.