[buddypress-trac] [BuddyPress Trac] #6290: Avatars, an extensible UI

buddypress-trac noreply at wordpress.org
Tue Mar 31 18:58:04 UTC 2015


#6290: Avatars, an extensible UI
------------------------------------+-----------------------
 Reporter:  imath                   |       Owner:  imath
     Type:  idea                    |      Status:  assigned
 Priority:  normal                  |   Milestone:  2.3
Component:  API - Avatars           |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+-----------------------

Comment (by imath):

 DJPaul: of course, i'm sorry my comment
 [https://buddypress.trac.wordpress.org/ticket/6290#comment:23 here] wasn't
 clear enough.

 > When this started, I was envisaging a system more like the group
 extension or widget system, where you can easily add new screens. It looks
 like all this Backbone templating has been added mainly because that's how
 Plupload has been implemented into WordPress Media Library?

 When i've started this ticket, as i was mistaken on #6004, i've carefully
 re-read what was the [https://bpdevel.wordpress.com/2014/11/12/at-wcsf-
 some-attendees-of/ plans and ideas for the future of BuddyPress] :
 >> Attachments

 >> API improvements around handling media (specifically avatars) are long
 overdue.
 >> No appetite for a “photo album” component in core at the moment, but
 our new APIs should be built to let other plugin developers build one
 “easily”.
 >> We want to overhaul/rebuild the user avatar upload
 process/cropper/management etc as a first step for a UI change directly
 related to media. Clean-Cole has begin to do some refinement based on
 prior work by Mathieu Viet.

 I clearly understood: the work around Avatars in 2.3 was the beginning of
 a BuddyPress API for Attachments other plugin developers could use to
 build their great tools. #6278 is the server part, this is my suggestion
 for the client part. Not only plugins playing around avatars can add their
 tab to the Avatar UI, but plugins can use the BP Uploader UI part to deal
 with file uploads.

 I'm surprised you were envisaging a different system, as you commented
 '''+1''' [https://buddypress.trac.wordpress.org/ticket/6290#comment:5
 here] and the description of the ticket was clearly informing i was
 planning to use :
 - wp-backbone
 - plupload for uploads
 - imgAreaSelect for the cropping part

 ----

 > If Jetpack wanted to add a BP Profile Pictures module that would let
 people choose/upload new Gravatars to WordPress.com/Gravatar.com, can they
 do that with this system? If so, would the Gravatar upload option appear
 alongside the traditional upload form, and the new web camera form?

 I understand your concern about JetPack, maybe you know a lot more than i
 do about their work on the subject. I've tried to search into their github
 repository something about it, without success :(
 JetPack is a very important plugin, i guess many people are activating it
 right away once their WordPress is installed. So i think it (would / )
 will be totally awsome (if / ) when they will make this feature available.

 I hardly see how to be more clear about what i've already explained into
 the 5th paragraph of this
 [https://buddypress.trac.wordpress.org/ticket/6290#comment:23 comment]. I
 doubt explaining it in french would help :) So i thought, let's
 demonstrate it.

 [[Image(https://farm8.staticflickr.com/7630/16784615557_9fd1f304da_o.png)]]

 If you apply
 [https://buddypress.trac.wordpress.org/attachment/ticket/6290/6290.06.patch
 6290.06.patch], clone [https://github.com/automattic/jetpack JetPack] and
 then apply [https://gist.github.com/imath/a75f7580828d2169ed67 this patch]
 on JetPack, then you'll see that :
 - JetPack will be able to let people "choose/upload new Gravatars to
 WordPress.com/Gravatar.com"
 - It will also appear "alongside the traditional upload form, and the new
 web camera form".
 - we can eventually build a router if we need to arrive directly to their
 tab using a link.

 1. JetPack will be great for users avatars, but BuddyPress is also dealing
 with other objects, so to me it's not 'THE' solution, it's another great
 way to set a user's avatar just like local uploads, camera....
 2. JetPack seems to be very familiar with underscore or BackBone, i saw
 they are enqueueing media-views for instance for their "site-logo-control"
 module.
 3. I'm very confident on each "JetPacker" skills which must be much
 greater than mines :)

 ----

 I think we have an opportunity to build something greater than an Avatar
 UI using Backbone, Plupload... :
 - Edit User, Group, (Blog) Avatars within the front-end or the back-end,
 - Provide a front-end tool plugin developers can use and extend to deal
 with user uploads.

 If you think i had a bad idea investing a lot of my time into this, of
 course i might be disappointed and frustrated, but i'll understand and
 move on to another ticket, because BuddyPress is awesome.

 For now, i will take a break from this ticket and will wait for a "stop or
 go on" :)

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6290#comment:31>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list