Hi,
I installed the gravatar macro.
In Navigation menu (on the left) I see the item “gravatar” under “Macro”. But the page is empty and to my users is not bound an avatar.
At the macro page http://extensions.xwiki.org/xwiki/bin/view/Extension/Gravatar%20Macro
I see some instructions, but it’s not clear to me if I need to write the example code somewhere.
Could you please suggest me how to correctly activate this macro (if something must be done)?
Thank you
Nicola
You just need to install this extension using the Extension Manager in your wiki and from then on you can use the macro.
I think one issue might be that you need to install it with a user having Programming Rights. I’ve now added that info: http://extensions.xwiki.org/xwiki/bin/view/Extension/Gravatar%20Macro#HPrerequisites26InstallationInstructions
If you have already installed it, find the page where it’s installed , edit it and save it with a user having Programming Rights.
Hope it helps.
FYI just installed it on playground.xwiki.org and used the macro and it’s working fine:
Page content is:
{{gravatar email="john@does.com" size="100" default="monsterid"/}}
Hi,
I tried in a sandbox and I could see my gravatar once written the above code.
But I expected that with such a macro, every logged user (with an avatar associated to his email) could see his avatar (at the top on right of the page) once logged.
Even in playground.xwiki.org I cannot see my avatar when I login.
How can I activate avatar for all users, please?
This extension is just a macro to display a gravatar. Maybe what you’re after is http://snippets.xwiki.org/xwiki/bin/view/Extension/Gravatar%20Import ?
It’s not exactly what you’re asking for but it could help.
Otherwise you need to edit the user profile sheet. Let me find out how.
I’ve added some info at http://extensions.xwiki.org/xwiki/bin/view/Extension/Gravatar%20Macro#HExample2 but it won’t fully work, see the warning there.
Thus the only solution that will work FTM is to have a script that sets the user avatar when a user is created, similarly to what is done in http://snippets.xwiki.org/xwiki/bin/view/Extension/Gravatar%20Import
Idea: you coud run this import script in a scheduler job in xwiki, every day or so.