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

Thread: Allow user to upload / choose Avatars

  1. #1
    Member newbieone's Avatar
    Join Date
    Sep 2009
    Location
    Swindon
    Posts
    42
    Blog Entries
    2
    Thanks
    6
    Thanked 9 Times in 5 Posts

    Default Allow user to upload / choose Avatars

    Hi great CMS by the way, fantastic stuff so far and it's still early days!

    I understand that Hotaru uses Gravatar for avatars etc, however it would be a nice feature for users to upload there own with perhaps a cropping feature very similar to gravatar.com?

    If I was a techy I would offer to do this however I am but a humble simpleton.

    Just an idea.

  2. Thanked by:


  3. #2
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,869
    Blog Entries
    88
    Thanks
    481
    Thanked 806 Times in 526 Posts

    Default

    You know, just over a year ago, I made my first ever Pligg module. All it did was put "Hello World" on the screen. It was bloody hard! Took me 4 hours, but it worked!!!! I was incredibly chuffed with myself.

    The great thing about modules or plugins is once you've done one, it gets easier and easier because you just reuse your own code and learn a few more tricks as you go along.

    As for an avatar upload plugin, should anyone decide to do this, let me know because I've hardcoded a few isActive('gravatar') checks in various places which would need changing (always happy to do so, though!).

  4. Thanked by:


  5. #3
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,869
    Blog Entries
    88
    Thanks
    481
    Thanked 806 Times in 526 Posts

    Default

    I'm playing around with RPX and am able to pull in the avatar used on the third party site, e.g. Twitter and Facebook. Once I complete the plugin, I might see if I can find a way to use those avatars. Wouldn't it be amazing to offer a choice of avatar from Twitter (or whichever profile you registered under), Gravatar, or an uploaded avatar?

    I wonder if there are any existing scripts for uploading avatars? Hotaru already uses a few third-party PHP classes like Inspekt, ezSQL, htmLawed and Paginated. Can someone find one for image uploading? Would save a lot of work.

  6. #4
    Design & Development carlo75's Avatar
    Join Date
    Oct 2009
    Location
    Italy - Perugia
    Posts
    509
    Thanks
    62
    Thanked 105 Times in 58 Posts

    Default

    This can help?

    http://www.verot.net/php_class_upload.htm

    It's open source, but have a commercial license

    or this

    http://www.phpclasses.org/browse/package/1841.html

    BSD license

  7. #5
    Senior Member baadier's Avatar
    Join Date
    Jan 2010
    Location
    Cape Town, South Africa
    Posts
    263
    Thanks
    80
    Thanked 14 Times in 10 Posts

    Default

    Any ideas on this happening in the future?

  8. #6
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,869
    Blog Entries
    88
    Thanks
    481
    Thanked 806 Times in 526 Posts

    Default

    I've hardcoded a few isActive('gravatar') checks in various places which would need changing
    This doesn't apply anymore. You can make plugins for any avatar service/feature and use them instead of the Gravatar plugin.

    Any ideas on this happening in the future?
    It's not on my list. Maybe someone else will give it a go.

  9. #7
    Member Jason's Avatar
    Join Date
    Jul 2009
    Location
    Nagoya, Aichi
    Posts
    74
    Thanks
    3
    Thanked 15 Times in 10 Posts

    Default

    When would someone not want to use Gravatar? One thing that I find incredibly annoying is the number of sites that I have to upload my avatar to. By using Gravatar, HotaruCMS gives people one less place to update when they decide to support an online cause or change things for whatever reason. In addition to that, Gravatar lets us use multiple avatars with different visibility levels (G, PG, R, etc.) for different sites.

    It's not a perfect solution, but it's certainly a nice change from most other software packages

  10. #8
    Senior Member baadier's Avatar
    Join Date
    Jan 2010
    Location
    Cape Town, South Africa
    Posts
    263
    Thanks
    80
    Thanked 14 Times in 10 Posts

    Default

    I agree jason after I played around with gravatar last night. It would probably be prudent if I put a link to gravatar in my user settings tab so those who don't have one yet can add one?

  11. #9
    Donor
    Join Date
    Jun 2010
    Posts
    49
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default avatar upload

    maybe instead of the 'gravatar' idea that a good old fashioned upload an avatar with delete and update function?

    [moved here. Nick]

  12. #10
    Junior Member
    Join Date
    Jul 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by norby500 View Post
    maybe instead of the 'gravatar' idea that a good old fashioned upload an avatar with delete and update function?
    Yeah, given the seemingly deep customization and community support of Hotaru, I'm surprised see this feature hasn't been created yet! I wish I could help.

    The Post Images plugin does something very similar for story thumbnails. I imagine it would be easy to port this over to user avatars?

    http://forums.hotarucms.org/showthre...ost-Images-0.6
    Last edited by BakedGoods; 08-04-2010 at 08:35 PM.

Thread Information

Users Browsing this Thread

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

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
  •