Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Gravatar 1.1

  1. #1
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,915
    Blog Entries
    88
    Thanks
    519
    Thanked 846 Times in 551 Posts

    Default Gravatar 1.1

    Gravatar
    Version: 1.1
    Author: Nick Ramsay
    Created on:
    2009/08/19
    Last Updated: 2013/06/03
    Tested on: Hotaru 1.5.0~
    Plugins Required:
    Users
    Plug & Play: Yes
    Supported: Yes

    Description
    Enable user avatars with Gravatar, a "global" avatar which has become especially popular since Wordpress adopted it for their avatars.

    Instructions
    1. Upload the "gravatar" folder to your plugins folder.
    2. Install it from Plugin Management in Admin.
    3. Choose the default avatar in Plugin Settings / Gravatar.

    Click image for larger version. 

Name:	gravatar.png 
Views:	11 
Size:	34.4 KB 
ID:	1780

    Changing the default Gravatar
    If a user doesn't have a Gravatar account that matches their email address, then Gravatar will send back the default avatar you use choose in Plugin Settings. If you want to provide a customized avatar, create an 80px .png image called default_80.png and put it in your theme's images folder. Then select "custom" from the choice of default avatars in Plugin Settings / Gravatar.

    NOTE: For users of previous versions of this plugin, please note that the collection of random avatars from v.1.0 is no longer used. In fact, v.1.1 doesn't even have an images folder. You can delete the /plugins/gravatar/images folder from your site if you wish.

    Advanced usage: Details for adding avatars to your theme:
    http://docs.hotarucms.org/index.php/...g_User_Avatars

    Revision History

    v.1.1 2013/06/03 - Nick - Uses Gravatar's random default avatars
    v.1.0 2010/07/06 - Nick - Added option to randomize the default avatar
    v.0.9 2010/04/03 - Nick - Removed requirement to have the Users plugin enabled
    v.0.8 2010/02/20 - Nick - Added ability to test if a user has a Gravatar
    v.0.7 2009/12/26 - Nick - Updates for compatibility with Hotaru 1.0
    v.0.6 2009/10/31 - Nick - Changes to make it easier for other plugins to use Gravatar
    v.0.5 2009/10/26 - Nick - Added a "rating" setting (edit in "install_plugin" function)
    v.0.4 2009/10/06 - Nick - Updates for compatibility with Hotaru 0.7
    v.0.3 2009/10/01 - Nick - Updates for compatibility with Hotaru 0.6
    v.0.2 2009/08/28 - Nick - Updates for compatibility with Hotaru 0.5
    v.0.1 2009/08/19 - Nick - Released first version

    Please click "Rate Thread" and give this plugin a rating. Thank you.

    Attached Thumbnails Attached Thumbnails hotaru_comments_2009_08_26.png  
    Attached Files Attached Files

  2. Thanked by:


  3. #2
    Senior Member
    Join Date
    Sep 2009
    Location
    WorldWid3
    Posts
    289
    Thanks
    43
    Thanked 43 Times in 30 Posts

    Default

    I've installed the Gravatar plugin and by default it displays the Hotaru cms logo, how do I get it to pull my uploaded avatar from Gravatar. I believe this plugin uses the email registered by the user under the "users plugin" and the matches it with gravatar service?

  4. #3
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,915
    Blog Entries
    88
    Thanks
    519
    Thanked 846 Times in 551 Posts

    Default

    That's right. If you've registered with the same email address you have on Gravatar, it should show your Gravatar avatar automatically. If there's a problem, double check you're using the same email address. You might also try it on the demo site.

  5. #4
    Senior Member
    Join Date
    Sep 2009
    Location
    WorldWid3
    Posts
    289
    Thanks
    43
    Thanked 43 Times in 30 Posts

    Default

    Hey Nick, I've registered to the demo site @ demo.hotaru.org with an email that is linked to a Gravatar account, however it still shows the default hotaru image. Any suggestions?

    Does it only work with the primary email registered in Gravatar? Or does pick up secondary emails are well?

  6. #5
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,915
    Blog Entries
    88
    Thanks
    519
    Thanked 846 Times in 551 Posts

    Default

    Quote Originally Posted by angolanmade View Post
    I've registered to the demo site @ demo.hotaru.org with an email that is linked to a Gravatar account, however it still shows the default hotaru image. Any suggestions?
    Put your email address into the Gravatar verification check tool. You'll see that your avatar is rated for PG sites and above only. This Hotaru Gravatar plugin doesn't have a rating setting, so sites using it default to a G rating.

    Maybe I'll add a rating option to this plugin in a future version, but in the meantime you might want to lower your avatar's rating on Gravatar.

  7. #6
    Admin & Design JonH's Avatar
    Join Date
    Jun 2009
    Location
    New Braunfels, Texas
    Posts
    248
    Thanks
    57
    Thanked 49 Times in 30 Posts

    Default

    I tried to resize the Gravatar down to 30px via changing the setting in gravatar.php but it's staying at 32px. I cleared my browser cache along with Hotaru's cache folder. I tried on both the default Gravatar and my own. I'm scratching my head where it's getting the 32? Could someone please verify this...

  8. #7
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,915
    Blog Entries
    88
    Thanks
    519
    Thanked 846 Times in 551 Posts

    Default

    Update: Ignore this post and skip to the next

    Jon, that's a bug. I'll get that fixed in the next version. In the meantime it should work if you replace the two "if" lines in the install function with these, and then reinstall:

    PHP Code:
            $this->updateSetting('gravatar_size'$size);
            
    $this->updateSetting('gravatar_rating'$rating); 

  9. #8
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,915
    Blog Entries
    88
    Thanks
    519
    Thanked 846 Times in 551 Posts

    Default

    Hang on, let me rethink this...

    The typical admin isn't going to need to change the size of the gravatar, but a theme designer is! So, it would make sense for a theme designer to set the size of the gravatar within the theme itself.

    To do that, all he would need to do is put this in the templates the gravatar is displayed in, e.g. in Submit's list.php:

    PHP Code:
    <?php $hotaru->vars['gravatar_size'] = 30?>
    Note: Don't use "px", just use the number.

    That will override the default setting set in the install function.

  10. #9
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,915
    Blog Entries
    88
    Thanks
    519
    Thanked 846 Times in 551 Posts

    Default

    There is one place where that won't work: in the navigation bar. The size is hard-coded into the Gravatar plugin on approx. line 108.

  11. #10
    Senior Member kmai's Avatar
    Join Date
    Apr 2010
    Posts
    150
    Thanks
    43
    Thanked 15 Times in 13 Posts

    Default

    Please

    How can a user change his avatar or upload an avatar?
    this option should have edit profile
    a field where the User could upload your own computer's avatar


    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Retrieve Gravatar of Admin
    By carlo75 in forum How-To and Troubleshooting
    Replies: 5
    Last Post: 12-02-2009, 01:15 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •