1,516

Downloads

284

Downloads of v 1.0.1

2013-07-29

Last published

License details

provided by Sonatype

MIT

NGravatar

1.0.1

NGravatar provides MVC HtmlHelper and UrlHelper extension methods for rendering Gravatar avatars from gravatar.com. The project is licensed under the MIT open-source license and is hosted at Google Code. See http://code.google.com/p/ngravatar/ for more information.

Gravatar avatars are retrieved based on an email address and optional parameters. A rendered Gravatar avatar on an MVC view page might look something like:

@Html.Gravatar("ngravatar@kendoll.net", 80, htmlAttributes: new { style = "border:10px solid blue;" })

The above line would render an <img> tag with the source of the Gravatar for "ngravatar@kendoll.net". The size, default image, rating, and any additional HTML attributes can also be specified.

Using NGravatar requires that the "NGravatar.Html" namespace be added to the Web.config (or the top of a view with a @using directive). See the source at Google Code for an example project.

To install NGravatar, run the following command in the Package Manager Console

PM> Install-Package NGravatar

Release Notes

Version 1.x.x is a complete rewrite of NGravatar with many breaking changes. To prevent these changes from affecting your code, don't update past version 0.x.x. Instructions on how to do so can be found here:
            http://stackoverflow.com/questions/10206090/how-to-install-an-older-version-of-a-nuget-package/

Owners

Authors

Ken Yourek

Copyright

Copyright (c) Ken Yourek 2013

Tags

Dependencies

Version History

Version Downloads Last updated
NGravatar 0.3.2 321 Thursday, December 06 2012
NGravatar 0.3.1 411 Thursday, March 08 2012
NGravatar 0.2.3 74 Saturday, February 18 2012