User Tools

Site Tools


gravatar

NP_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. Avatars help identify your posts on web forums, so why not on weblogs? More information about gravatars, please visit Gravatar.com.

General Plugin info
Current Version: 0.9
Download: np_gravatarv0.9.zip [2Kb]
Download: NP_Gravatar.zip (old version) [2Kb]
Forum Thread: http://forum.nucleuscms.org/viewtopic.php?t=5210
Author: Rakaz

Installing

  1. Unzip the file and upload the contents to your plugin directory
  2. Install the plugin…

How to use the plugin

The Gravatar plugin for Nucleus allows you to use gravatars on your Nucleus based blog. It's really simple to use. Install the plugin and include one little variable in one of your templates. That's all there is to it. Now gravatars will automatically appear to next to each comment of which the poster has registered with Gravatar.com.

Additional information is available on Rakaz' weblog.

Available SkinVars and/or TemplateVars

The final step is to go to your templates and select the full template of the skin you are using, for example grey/full. Go to the Comments Body section. Then place the template var <%Gravatar%> in the location you like. For example:

<h3 class="comment"><%Gravatar%> <%user%> wrote:</h3>
 
<div class="commentbody">
  <%body%>
</div>
 
<div class="commentinfo">
  <%date%> <%time%>
</div>

And your done! The gravatars should appear automatically.

History

  • Version 0.9
    • Added code to force all emails to be converted to lowercase or it won't work
    • Removed wide.gravatar.com as it's no longer valid.
    • Default Image (url) option - Use the included Default.jpg, place it on your server and link to that.
  • Version 0.8
    • turn off alt attribute in avatar
  • Version 0.7
    • Added support for Nucleus 3.3
  • Version 0.6
    • Added the ability to specify a different size as a parameter of comment template variable
  • Version 0.5
    • Added option to change the gravatar URL from the plugin options
  • Version 0.4
  • Version 0.3
    • Fixed bug: Output is now XHTML compliant
  • Version 0.2
    • Fixed bug: Border was not set correctly
  • Version 0.1
    • Initial concept
gravatar.txt · Last modified: 2009/01/28 15:19 (external edit)