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

buddypress-trac noreply at wordpress.org
Thu Apr 16 22:25:10 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):

 In [changeset:"9756"]:
 {{{
 #!CommitTicketReference repository="" revision="9756"
 Avatar UI: Add BuddyPress Attachments specific functions.

 - `bp_attachments_enqueue_scripts()` requires one parameter the name of
 the class you are using to extend `BP_Attachment`, eg:
 `BP_Attachment_Avatar`. It will use the class `script_data()` method to
 finish building the Plupload settings and strings. It also makes sure the
 script are only loaded once per page load.
 - `bp_attachments_current_user_can()` is used to check the current user
 capabilities in front-end and back-end.
 - `bp_attachments_json_response()` is a wrapper of WordPress json response
 function that makes sure the json response is correctly sent for html5 or
 html4 uploads.
 - `bp_attachments_get_template_part()` is used to safely load our Backbone
 templates into the administration screens or use `bp_get_template_part()`
 when on front-end.

 Props boonebgorges, DJPaul, johnjamesjacoby.

 See #6290
 }}}

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


More information about the buddypress-trac mailing list