Results 1 to 3 of 3
  1. #1
    Junior Member rnmartinez's Avatar
    Joined
    Nov 2012
    Posts
    3
    Thanks
    Received:0
    Given: 0
    Version
    1.2.0
    Site
    http://www.equitybits.com/news/

    Adding Gravatar?

    Is there a gravatar module for Pligg?

  2. #2
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,531
    Thanks
    Received:88
    Given: 14
    Site
    http://pligg.com/demo/
    Not at this time. We started a post on the Pligg Demo so that users could vote to have this added, but there wasn't much interest.

    In case you want to code it yourself as a template hack, here is a PHP snippet that should prove useful:
    Code:
    /****************** 
    *@email - Email address to show gravatar for 
    *@size - size of gravatar 
    *@default - URL of default gravatar to use 
    *@rating - rating of Gravatar(G, PG, R, X) 
    */  
    function show_gravatar($email, $size, $default, $rating)  
    {  
        echo '<img src="http://www.gravatar.com/avatar.php?gravatar_id='.md5($email).  
            '&default='.$default.'&size='.$size.'&rating='.$rating.'" width="'.$size.'px"  
            height="'.$size.'px" />';  
    }
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  3. #3
    Junior Member albertjhon's Avatar
    Joined
    Sep 2012
    Posts
    2
    Thanks
    Received:0
    Given: 0
    Version
    SVN Build
    Awesome – I’ve been making an attempt to induce Gravatar operating with comments for a short time currently. I’ve been mistreatment the incorrect email address all now. many thanks for the tip!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg