[buddypress-trac] [BuddyPress Trac] #6570: Add UI for adding Profile Header Images for Users and Groups

buddypress-trac noreply at wordpress.org
Tue Sep 29 21:43:15 UTC 2015


#6570: Add UI for adding Profile Header Images for Users and Groups
-------------------------------------------+------------------
 Reporter:  mercime                        |       Owner:
     Type:  enhancement                    |      Status:  new
 Priority:  normal                         |   Milestone:  2.4
Component:  API                            |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  dev-feedback has-patch commit  |
-------------------------------------------+------------------

Comment (by imath):

 In [changeset:"10151"]:
 {{{
 #!CommitTicketReference repository="" revision="10151"
 Introduce new functions to the BuddyPress Attachments API

 The first benefit of the BuddyPress Cover Images feature is the
 improvement of the BuddyPress Attachments API. We are introducing new
 functions to deal with file management. Some of these functions come from
 functions previously restricted to avatars.

 -  is there to get the new attachments features Uploads directory. New
 Attachments features will now store their files within the  directory.
 Inside this directory we will have subdirectories to organize files
 according to the object they belong to (eg: members, groups), to the item
 ID they are attached to and eventually to the BuddyPress attachment type.
 For the cover image of a user it is looking like
 - , , ,  are inspired by functions restricted to avatars so far. They will
 help us to control max upload size, allowed types and mimes for any
 attachments. The last function will help us to check the uploaded file
 match the allowed types. Corresponding Avatar functions are now using
 these new functions.
 -  and  are there to respectively get the path or the url of any
 attachment using the new Uploads directory organization (avatars and
 group-avatars are not concerned so far) and to delete an attachment.

 See #6570
 }}}

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


More information about the buddypress-trac mailing list