+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Gravatar support

Gravatar support

2 posts, 0 answered
  1. Scott Williams
    Scott Williams avatar
    14 posts
    Registered:
    13 Oct 2009
    30 Oct 2009
    Link to this post
    Hi, is there a plugin or anyway that I can get gravatar to work within blog comments. Just incase know one has heard of gravatar it's basically a globe avatar plugging for blogging platforms http://en.gravatar.com/
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Nov 2009
    Link to this post
    Hi Scott Williams,

    Thank you for contacting us. 

    At the moment, there is no such plugin or control, but it can be implemented. I will let you know about the steps:
    1. Override the <sfWeb:CommentItem> control, which is used in the ContentViewSingleItem.ascx template. 
    2. Subscribe to the ItemDataBound event. In this event, you will access the IPost item, which holds the user's e-mail. 
    3. Place an image in the overridden CommentItem control, and assign the path to the src attribute:
    <img src= "https://secure.gravatar.com/xmlrpc?user=[email_hash]" />

    Where the email_hash is the MD5 of the user's e-mail. 

    I hope this makes sense, but I should say that I like the idea pretty much. Perhaps we can have a blog post about this implementation. 

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered