1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Allow user to upload / choose Avatars

Discussion in 'Plugin Suggestion Box' started by newbieone, Nov 23, 2009.

  1. newbieone

    newbieone New Member

    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.
     
    romancos likes this.
  2. Nick

    Nick Well-Known Member

    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. :D

    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!).
     
    romancos likes this.
  3. Nick

    Nick Well-Known Member

    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.
     
  4. carlo75

    carlo75 Design & Development

  5. baadier

    baadier New Member

    Any ideas on this happening in the future?
     
  6. Nick

    Nick Well-Known Member

    This doesn't apply anymore. You can make plugins for any avatar service/feature and use them instead of the Gravatar plugin.

    It's not on my list. Maybe someone else will give it a go.
     
  7. Jason

    Jason New Member

    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 :)
     
  8. baadier

    baadier New Member

    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?
     
  9. norby500

    norby500 New Member Donor

    avatar upload

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

    [moved here. Nick]
     
  10. BakedGoods

    BakedGoods New Member

    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/showthread.php?559-Post-Images-0.6
     
    Last edited: Aug 4, 2010
  11. Nick

    Nick Well-Known Member

    For the record, Hotaru's Avatar.php library is extremely flexible and only limited by the plugins that use it. I suspect the reason an avatar upload plugin hasn't been created is because it's much easier to ask users to upload an avatar to Gravatar.com than it is to build such a plugin.

    Ah, but Post Images doesn't have an image upload feature, and from a coding point of view, remotely fetching and image is completely different to uploading one.

    So do I! ;)
     
  12. nikar

    nikar New Member

    I fully agree with the author of the topic. The need to upload avatars.
     
  13. ChaFF

    ChaFF Donor Donor

    Shell we crowd fund this plug-in? :)
     
  14. sachingk

    sachingk Member

    Nick likes this.

Share This Page