I like the idea of Gravatars, and they are easy to implement in PHP, but I cannot execute straight PHP code, only Smarty Templates (under Blogsome).
I’d like to be able to write a Gravatar plugin in Smarty Code, but I don’t know how to MD5 encrypt just in Smarty. I thought the following would work, but it doesn’t seem to:
{php}echo md5("email@address.net");{/php}
In fact, I can’t seem to get any code to execute using the {php} {/php} tags.
{php}echo "Hello, World";{/php}
Possibly the execution of php in Smarty is disabled. I’d check your host. Or even better would be to look for a plugin for WP instead of trying to hack it into the templates.
6 hours, 59 minutes after the fact.
Yeah, Blogsome aren’t real sharp about putting Plugins in - I’ve asked for Gravatar ages ago.
12 hours, 34 minutes after the fact.
I’ve discovered a JavaScript that will generated MD5 hashes, so expect this feature to work any day now…
13 hours, 24 minutes after the fact.
if you want the gravatar, you can follow this step:
1. login to your account
2. choose manage menu, and select the files link.
3. Add this code to comment page.
remember, you have to add the code between
{foreach from=$comments key=key item=comment}
…
…
…
{/foreach}
for the full tutorial you can see my blog at http://didats.net/permalink.php?idxMjAx
for the example, you can see my girlfriend’s blog at http://golda.blogsome.com
thanks.
1 week, 5 days after the fact.
This doesn’t really work either: it makes the Gravatars appear, but exposes the email address to potential spam harvesters.
That is not a good thing.
(I already came up with a solution, it too suffers the same flaw).
1 week, 5 days after the fact.