[buddypress-trac] [BuddyPress Trac] #6604: BuddyPress Modal Iframe
buddypress-trac
noreply at wordpress.org
Mon Aug 31 12:12:48 UTC 2015
#6604: BuddyPress Modal Iframe
---------------------------+-----------------------------------
Reporter: imath | Owner:
Type: idea | Status: new
Priority: normal | Milestone: 2.4
Component: API - Avatars | Version:
Severity: normal | Keywords: has-patch 2nd-opinion
---------------------------+-----------------------------------
While working on #6570, i've felt we'll surely need to have a BuddyPress
modal (or a BuddyPress iframe). As the BuddyPress attachments scripts are
loading only once per page load, it would help us for instance to be able
to set the Avatar and the Cover image of a user or a group inside their
corresponding Edit Administration screen.
Another option would be to have a massive javascript files to house code
for the Avatar/The cover Image (and future attachment features), or some
"require" js functionnalities.
This could also reply to a suggestion @dimensionmedia shared in slack
about being able to set the cover image directly from any page of the
user's profile thanks to a link into the new "fancy" header.
I think this new modal box could also be interesting to use for other
needs in the future (eg: inserting some BuddyPress content into the WP
Editor, into the Activity What's new form, opening an activity post form
from any places of the site...).
So i've been working on a patch about this :
- It extends (in a way the Thickbox feature) by adding a button to display
the content of the window on the full available height, by including some
functions to "dialog" with the opener, by making it more responsive (on
front-end and in back-end) and better looking :)
- It uses a specific template (`assets/modal.php`) with specific actions
to print only the js and css we need.
- I've included 2 examples of use : replace the way we edit a user profile
photo within the Administration screen and add a new metabox to manage the
group avatar in the corresponding Administration screen.
Here's a screenshot of the Group's Administration Screen :
[[Image(https://cldup.com/34iNmZJlGg.png)]]
I've set the milestone to 2.4 because i think if we want to be able to
manage a cover image within Administration screens, we need it.
What do you think?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6604>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list