|
Gravatar
Gravatar Add-onUse the Gravatar service for your users icons. Gravatar.com: What is a gravatar? A gravatar, or globally recognized avatar, is quite simply an 80×80 pixel avatar image that follows you from weblog to weblog appearing beside your name when you comment on gravatar enabled sites. The extension uses the user email to request its avatar from Gravatar.com. The user email address is not sent to Gravatar. The regular icon submitted by the user on the Identity page is used as a default icon. If the user doesn't have its email associated with an avatar on Gravatar or didn't submitted an icon on its identity page, the default Gravatar icon will be displayed. An other image can be used instead. Your installation needs to be patched for the new delegations added after the 1.1.4 release (included in the add-on). Download Gravatar add-on on the Vanilla repository. RequirementThis extension require delegations added after the release of Vanilla 1.1.4. You need to install Vanilla 1.1.4 first if you are not running it already and then install the patch included in the add-on package (Gravatar/Vanilla-upgrade-1.1.4-to-1.1.4.a.zip) InstallationIn order for Vanilla to recognize an extension, it must be contained within it's own Directory within the extensions directory. So, once you have downloaded and unzipped the extension files, you can then place the folder containing the default.php file into your installation of Vanilla. The path to your extension's default.php file should look like this: /path/to/vanilla/extensions/Gravatar/default.php. Once this is complete, you can enable the extension through the "Manage Extensions" form on the settings tab in Vanilla. SettingsThe default settings can be changed by adding the following lines into /path/to/vanilla/conf/settings.php. $Configuration['GRAVATAR_RATING'] = 'PG'; $Configuration['GRAVATAR_SIZE'] = '32'; $Configuration['GRAVATAR_DEFAULT_ICON'] = 'http://example.com/image.gif'; GRAVATAR_RATINGDetermines the highest rating (inclusive) of the returned Icon. Valid values: G | PG | R | X Default: PG GRAVATAR_SIZESize of the icon to request. Valid values: 1 to 80 inclusive. Default: 32 NB: The default vanilla style centers and crops the image to 32px. This setting won't change that. GRAVATAR_DEFAULT_ICONDefault icon if the user email is not associated to an icon and the user didn't submit any default icon. Valid values: Absolute Url | identicons | monsterids | wavatars Default: empty (it will use the default gravatar one). TraductionThe Gravatar_Icon and Gravatar_IconNotes dictionary entries are used on the Identity page (Account). Add these lines in to /path/to/vanilla/conf/language.php - and change their values to modify them). $Context->Dictionary['Gravatar_Icon'] = 'Icon'; $Context->Dictionary['Gravatar_IconNotes'] = 'You can enter any valid URL to an image here, such as: <strong>http://www.mywebsite.com/myicon.jpg</strong>. An icon will appear next to your name in discussion comments and on your account page. We will try to get your icon from <a href="http://site.gravatar.com/">Gravatar</a>. If an icon is associated to your email address on <a href="http://site.gravatar.com/">Gravatar</a>, You do not need to enter anything.'; |
Sign in to add a comment
nice article
This plugin isnt working for me. its showing the wrong size icon on the user pages and not showing any icon at all on the posts. Any one know whats wrong?
I don't know for the wrong icon size, but for the bug on the post page it was related to a change of the delegation name; you were using a revision of Vanilla with updated delegation name.
Gravatar works with Vanilla 1.1.5 as well as with my 1.1.4-a version.
The download link is broken.