Dev Chat Summary for September 30, 2015

BuddyPress 2.3.4

  • Tickets slated for this minor release are available on this page.
  • Release date: TBA.

BuddyPress 2.4.0

  • BP 2.4.0 Beta: October 7, 2015
  • BP 2.4.0 Release: October 28, 2015
  • Fifty tickets have been closed to date. The list of tickets completed so far is available on this page.
  • There are 91 tickets left in queue.

Add UI for adding Profile Header Images for Users and Groups (#6570) Feature is in trunk. https://bpdevel.wordpress.com/2015/09/30/buddypress-2-4-0-will-introduce-cover-images-for-members-groups/
Per @im4th: Testing and feedback welcome!

Groups single item home : improve the way we deal with custom front and activity component (#6388) Feature is in trunk. https://bpdevel.wordpress.com/2015/10/03/get-ready-2-4-0-will-introduce-important-changes-in-groups-homes/ Per @im4th: Testing and feedback welcome!

Twenty Sixteen BP Companion Stylesheet. Per @hnla, this stylesheet for the upcoming default theme along with the BP companion stylesheet for Twenty Thirteen (#6533) will be released for 2.4.0. As always, testing and reporting areas which need improvements are welcome.

Template Versioning (#6642) @hnla is working with @im4th on this new feature to provide users with a list of changes to BP template files during a dev cycle @ https://github.com/imath/bp-template-checker. Discussion held in chat touched on specific processes and expectations, including: the possibility of including this for BP 2.5.0; not showing message to admins/regular users, i.e., feature is enabled when developer adds define('WP_DEBUG', true); in wp-config.php; and “show this information in a developer-y way – maybe via_doing_it_wrong() – but to be able to suppress specific notices”, among others.

Email API and customisation features (#6592) @djpaulgibbs said that he’s not sure whether this feature would make it for 2.4.0 where it would also allow time for testing and feedback. He thanked @timersys and @shanebp for feedback on his latest updates. Calling those who volunteered to get involved on Slack 🙂

Use wp_editor for “multi line text area” xprofile field in frontend (#5625) @boonebgorges is working on this ticket and will “try to carry it across the finish line for 2.4.0.”

@since standard not parseable with phpDocumentor 2 (#6576) @tw2113 has completed the standardization of @since tags for all components to pave the way for the upcoming developer.buddypress.org. In addition, he left a friendly reminder that “WP docs standards do say to have inline comments treated as proper sentences, so capitalize the first letter and provide punctuation please.”

Slack log: https://wordpress.slack.com/archives/buddypress/p1443639711001089

#5625, #6388, #6533, #6570, #6576, #6592, #6642, #dev-chat

BuddyPress 2.4.0 will introduce Cover Images for members & groups!

Most social media include a feature to allow their users to customize their profile’s header. While this feature may seem trivial, it is actually quite complex to implement in our case.

Unlike these social media which only need to manage one single graphical interface, BuddyPress can be integrated into nearly all WordPress themes and needs to account for all scenarios.

Of course, this complexity is also one of our major strengths: BuddyPress lets you build highly customized community websites.

To add to this complexity, some BuddyPress themes or plugins have already built this feature.

That’s why during the development of this feature and in all the decisions we took we always kept in mind these two concerns:

  1. Maximize the feature’s compatibility with most themes
  2. Include simple ways to deactivate it (if needed)

Before telling you more about these 2 points, here are the BuddyPress Cover Images!

User's profile

User’s profile

 

Members can manage their cover pictures by visiting their profile page and activating the “Change Cover Image” nav.

 

"Change Cover Image" screen

“Change Cover Image” screen

 

If the Groups component is active, Groups will also be able to enjoy cover images!

 

Group's Cover Image

Group’s Cover Image

 

We’ve added a new step to the Group’s creation process to let Administrators set the cover image for their Groups

 

Group's Cover Image creation step

Group’s Cover Image creation step

 

At any time, Group Administrators can manage the cover image by displaying the “Cover Image” sub nav of the Group’s management area.

 

Group's Cover Image manage screen

Group’s Cover Image manage screen

 

Responsive?

 

User and Group cover images viewed on a smartphone.

User and Group cover images viewed on a smartphone.

 

Of course!

 

1. Maximize the feature’s compatibility with most themes

To make this happen, we rely on our great BP Theme Compat API. In short, we are checking the active theme is using the API and the BP Legacy template pack before registering the feature. If it’s the case, BP Theme Compat will take care of everything!

If you’re wondering how the size of the cover image is calculated, i’d say it’s an “equation” involving two parameters: the $content_width global of the theme and the Avatar’s full height.

We have already optimized the feature for the latest “Twenties”. By the way all the screencaps of this article were made using the “TwentyFifteen” theme.

Please note that the BP Legacy template pack has evolved :

Single items Edited Templates New Templates
User bp-templates/bp-legacy/buddypress/members/single/home.php
bp-templates/bp-legacy/buddypress/members/single/profile.php
bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php
bp-templates/bp-legacy/buddypress/members/single/profile/change-cover-image.php
Group bp-templates/bp-legacy/buddypress/groups/create.php
bp-templates/bp-legacy/buddypress/groups/single/admin.php
bp-templates/bp-legacy/buddypress/groups/single/home.php
bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php

If your theme is using the BP Theme Compat API (which is the case of most WordPress themes) and if you haven’t overridden the templates listed inside the “Edited Templates” column, then as our test drive is attesting: BuddyPress Cover Images should look awesome into your community.

If you’ve overridden one of the edited templates and you want to enjoy this new feature, please make sure to update your templates by the time BuddyPress 2.4.0 is released.

If your theme requires some “fine-tuning” or if you’re feeling the need to customize the default appearance of the members profiles and groups headers, be assured that you’ll be able to do it easily. I’ll be publishing more information in the BuddyPress Codex about it.

For Standalone BuddyPress themes like BP Default.

These themes are using their very own templates and are generally adding BuddyPress support (add_theme_support( 'buddypress' ) ) into their functions.php file. In this case, the BP Theme Compat API won’t register dynamically the BuddyPress cover images feature. But, it will be very easy for these themes to enjoy it! If you’re eager to see how this will be possible, you can have a look at a diff i’ve made when testing the BP Default theme 🙂

Include simple ways to deactivate it (if needed)

Your theme is using the BP Theme Compat API and you want to deactivate Cover Images for members, groups or both?

First, at any time, you can do it by deactivating the corresponding setting for cover images in Settings > BuddyPress > Settings as shown in the screencap below.

BuddyPress Settings

BuddyPress Settings

 

Another way to completely deactivate it is to use these filters :

// For members :
add_filter( 'bp_is_profile_cover_image_active', '__return_false' );

// For groups :
add_filter( 'bp_is_groups_cover_image_active', '__return_false' );

Or you can stop the BP Theme Compat API from dynamically registering the BuddyPress Cover Images support for you site using this kind of code :

function cover_images_no_support() {
    remove_action( 'bp_after_setup_theme', 'bp_register_theme_compat_default_features', 10 );
}
add_action( 'after_setup_theme', 'cover_images_no_support' );

 

If you are a theme designer or the author of a plugin managing Cover images, we recommend that you don’t forget to test that everything works fine for you during the 2.4.0 beta period.
Of course everyone is welcome to help us by testing BuddyPress during this period 🙂

Finally, we’d like to thank all the contributors who gave their professional feedback while building this new “Attachment” feature with special mention to @modemlooper and @BuddyBoss.

To read the full story of this feature: #6570

#6570

Dev Chat Summary for September 23, 2015

BuddyPress 2.3.4

BuddyPress 2.4.0

  • Forty-four tickets have been closed to date. There are 98 tickets left. The list of tickets completed so far is available on this page.
  • @boonebgorges noted, “Those who wield the terrifying power of Commit should go through (tickets with patches) and exercise it.”

Email API and customisation features (#6592) @djpaulgibbs: “If people want to help with any particular aspect of BP emails, (you are) more than welcome to participate.” Details are available in ticket. In addition to @espellcaste and @timersys who volunteered to help out in ticket, @marmaduka and @tw2113 have also indicated their interest to do the same during dev chat.

Add UI for adding Profile Header Images for Users and Groups (#6570) @im4th has uploaded new patches based on the decisions made during dev chat and recommendation in ticket: modals are put on hold, add filter to change the default Attachments uploads directory, and some string changes. He has posted more information about how to add the new cover images in ticket for stand-alone themes with custom BP templates and still using theme compatibility as well as for those still using the bp-default theme.
Update: Post about this new feature is imminent.

Groups single item home : improve the way we deal with custom front and activity component (#6388) @im4th sought consensus on patch for 2.4.0 release. @boonebgorges gave thumbs up on the approach. @djpaulgibbs had looked at it before and had positive feedback.

BuddyPress Codex

@slaffik inquired about editing codex pages and about the avatars of article contributors which show up at the bottom of the page. He was assured that anyone who was logged in can add new articles and edit current articles. @hnla reported the avatar / author function has been broken for a while. @djpaulgibbs mentioned that the avatars code is available in meta trac but at this time, he’s concentrating on BP Emails. Just to note that all are welcome to create a ticket and provide a patch to address the issue.

Slack log: https://wordpress.slack.com/archives/buddypress/p1443034876000428

#6388, #6570, #6592

Dev Chat Summary for September 16, 2015

BuddyPress 2.3.4

  • Release is scheduled for this coming week to fix #6606: Visibility issues with BP_Activity_List_Table::row_actions().
  • Other tickets listed in the 2.3.4 milestone will be punted to BP 2.3.5.

BuddyPress 2.4.0

COMPLETED

Forty-three tickets have been fixed to date. The list for all tickets completed so far is available on this page.
Mentioned in chat:

BP component as front page messes up blog search (#5087) @boonebgorges has completed the fix for this ticket last week. Solution includes changing the default search query arguments for each BP component to be unique to remove the conflict with regular blog searches, among others. Testing and feedback welcome.

ONGOING

Ninety-four more tickets are slated for 2.4.0 to date. You can keep updated with the complete list of these tickets on this page.

Add UI for adding Profile Header Images for Users and Groups (#6570) @im4th has set up test of the button/modals and uploads at his test site http://imath-buddypress.wpserveur.net. If you’re interested in testing this out in his site, ping @im4th @ Slack (imath). Or you can check it out in your test installation, just apply the latest patch in ticket.
@im4th sought advice on the best way to organize file uploads now especially with more BP Attachments features coming in down the road. @boonebgorges and @djpaulgibbs approved to white label the ‘buddypress’ directory as long as @im4th adds a global filter.

BuddyPress modal iframe (#6604) @im4th  noted that: 1) You can add buttons in the front end profile’s header to set avatar / cover image and 2) The real problem is that our javascript is not yet modular, so you can’t deal with avatar and cover image at the same time, meaning not having the modal would prevent us to have cover image in the Administration screens as everything is managed in one page. @rayisme noted the benefits of using BP modals in the BP admin pages. This new feature will be discussed further this week after additional review by Lead Devs.

Email API and customisation features (#6592) @djpaulgibbs has been working on the email framework and has “reached out to a couple of potential contributors to help with some of the buildout.” He has since updated the ticket to include: the link to his “Amazing Emails” repo in Github, tasks he has completed so far, a list of remaining tasks, and instructions on how you can get involved with the project. Contributors are welcome!

Accessibility Fixes – @mercime has uploaded patches to a number of tickets, most of which have been committed to core.

@hnla: Will be free this week to “work on something fun and rewarding, and look over” the cover photos ticket. Btw, he has committed the BP companion stylesheet for Twenty Thirteen. Testing and feedback welcome.

@boonebgorges: “I would like to find time to look at migrating profile field visibility over to profile meta, so that we can fix a couple of bugs there. Beyond that, I’ll just drop in and do gardening as I have time for 2.4.0” (like fixing #5087 above).

@rayisme: “There’s already quite a few big features for 2.4.0 and I want to concentrate on helping move those along”, just like he has been doing for the cover photos ticket. He has also been doing some gardening specially on the tickets slated for 2.3.4.

Boone on the “Very French Trip WordPress”

@boonebgorges was the special guest on “Very French Trip WordPress”, a podcast in French (of course!), hosted by Thierry Pigot, Grégoire Noyelle, and @im4th last September 10. @im4th remarked later, “French people (listeners) are amazed about Boone’s French level!” 

Boone spoke about how to contribute to the development of BuddyPress and WordPress , along with little Wilhelmina. The hosts also shared information about SkiPress, the very first WP coding and skiing event in the French Alps for one week, and WordCamp Paris in February 2016, among others.

Slack log: https://wordpress.slack.com/archives/buddypress/p1442430115000166

#5087, #6570, #6592, #6604, #6606, #dev-chat

General Summary as of September 9, 2015

This is a compilation of dev chats held in August 26, September 1, and September 9.

BuddyPress 2.3.4

There will be a minor release coming up to address some necessary fixes and updates. Five tickets are currently slated for this release, four of which are still open.

  • The list of tickets slated for BP 2.3.4 are available on this page.
  • Release date: TBA

BuddyPress 2.4.0

  • BP 2.4.0 Beta: October 7, 2015
  • BP 2.4.0 Release: October 28, 2015
  • Features slated for this release are available in our Trac Milestone

TICKETS COMPLETED

Forty-one trac tickets have been fixed to date. The list for all tickets completed so far is available on this page. Notable:

User roles with differents profile fields (#5192) Many thanks to @boonebgorges, @Offereins, @tanner-m, and @im4th, work on this ticket has been completed and the “first killer feature for member types” is available for testing and feedback.

ONGOING WORK

Ninety-one more tickets are slated for 2.4.0 to date. You can keep updated with the complete list of these tickets on this page. The following have been highlighted in compiled chats:

xProfile Fields and Field Groups@johnjamesjacoby continues work on enhancements and fixes for the xProfile component, specifically querying & sign-up fields. Patches coming up.

@since standard not parseable with phpDocumentor 2 – (#6576) In preparation for setting up developer.buddypress.org, @djpaulgibbs posted that our current @since tags are not being parsed/extracted correctly per his tests. @tw2113 has accepted the task to convert the @since tags throughout the project and has already completed the conversion in four component folders to date.

Email API and customisation features – (#6592) @djpaulgibbs has posted the scope and vision for the first version of BuddyPress Emails. He has started work on this already in his github repo but would need to “add a bit more code” before he reaches out to all who said they wanted to help with this new feature.

Create New Invitations API – (#6210) @dcavins continues work on the Group Invitations API which needs some other trac tickets to be completed first. To start off, he has introduced a new function `groups_send_invite_by_invitee()` to handle sending a single invitation keyed by the invitee ID and group ID. In conjunction with that, he is working on adding a “manage invitations” pane to the group admin screen.

Let’s give post-form.php the love – (#6569) In ticket, @im4th, @rayisme, and @modemlooper have been in discussion about improving the UI of the Activity post form. @im4th has uploaded patches which include new hooks and reorganization of the post form. @im4th added, “We want to make it possible for any plugin to add custom ‘attachment’ types.”

  • @johnjamesjacoby noted that “with cover photos and avatar upload improvements, @im4th and @rayisme have both done a good job of assessing the typical user and use cases” when @modemlooper voiced his concern about adding new functionalities directly to core instead of introducing such as feature plugins first.
  • @boonebgorges mentioned that he “maintained a lot of BuddyPress sites and knew the pain of having an update introduce UX that he hadn’t prepared for. But I know how to deal with this, and it seems better than the alternative, which is disabling new stuff by default, and never having anyone use it.”
  • @rayisme said that an admin option to turn off attachments is doable and makes sense.
  • @im4th averred that new features will be extensible as usual and will include documentation.

Add UI for adding Profile Header Images for Users and Groups (#6570) and BuddyPress Modal Iframe (#6604) – @im4th has been rocking it with the new cover photos feature along with @rayisme. In the latest patches, in addition to the new UI for cover photo uploads for members and groups in the frontend, @im4th has added uploading via new BP Modals in the frontend and backend for both profile images and cover photos. Very cool, check it out 🙂

Commit Access

BuddyCamp Brighton Videos

The following videos are now available at WordPress.tv:

Enjoy 🙂

#5192, #6210, #6569, #6570, #6576, #6592, #6604, #dev-chat

Dev Chat Summary for August 12, 2015

BuddyPress 2.3.3

Release Date: After WP 4.3.0 rolls out next week.

There are three open tickets:

  • Wrong shape of the CROP size of the group thumbnail (#6551)
  • Mentions.js fails on wp-admin post editor (#6487)
  • WP 4.3 changes in WP_List_Table (#6465)

@djpaulgibbs has volunteered to help move these tickets forward.

BuddyPress 2.4.0

Add UI for adding Profile Header Images for Users and Groups

  • (#6570) @im4th opened the conversation which lasted ~ one hour on the best way forward for this new feature. This resulted with great feedback from @johnjamesjacoby, @rayisme, @djpaulgibbs, and @hnla.
  • Points made:
    1. Feature is available for all themes. bp-legacy‘s member-header.php gets the new hotness, and nothing gets broken if the feature is not activated.
    2. Create new template part with new markup, styles, and JS as needed
    3. Integrate a flexible header image for admin-area profiles, user dashboard
    4. If a custom template part is used in theme, then nothing happens because theme compatibility would never include anything in bp-legacy. If they are relying on theme compatibility and bp-legacy then they get the new markup and CSS that we give them.
    5. Users/theme authors will be able to edit their home.php template to support this new feature
  • More to follow. Odds are, there will be some fast and furious work coming soon.

Conversation replies don’t immediately inherit the HTML of custom templates

  • (#6572) @rayisme introduced a new template part to replace the hardcoded markup used to render a single message item in ticket. Discussion in dev chat then ensued to solve one of the two hard things to do in computer science, naming things . Consensus was reached on the name of the new template part, simply message.php.
  • Update: Patch has been committed to core.

@since standard not parseable with phpDocumentor 2

  • (#6576) @since tags throughout the BuddyPress project needs to be revised/updated to parse docs correctly in preparation for developer.buddypress.org.
  • @tw2113 will be working on this.

Attachment API conflicts with wp_enqueue_media()

BuddyCamp Brighton, U.K.

This event was a success based on the feedback from the attendees. Congratulations to @djpaulgibbs and @karmatosed, organizers of the first BuddyCamp in Europe, as well as to all the speakers and presenters!

  • @im4th has posted about his BuddyCamp experience in français along with his slides at his site.
  • @modemlooper has uploaded his BuddyCamp video about mobilizing your BuddyPress site @ Dropbox.

If you want to include links to your BuddyCamp Brighton slides/videos or photos, post a comment below and we’ll add it to the list above.

Slack log: https://wordpress.slack.com/archives/buddypress/p1439406192001125

#6465, #6487, #6551, #6570, #6572, #6574, #6576, #dev-chat

General Summary as of August 2, 2015

Apologies for not posting updates here lately. This  is a compilation of all the informal and official chats during the month of July ( 1st, 2nd, 3rd, 4th, 5th, and in between) as well as relevant activities in Trac. It’s organized to give you a bird’s-eye view of the cool & amazing BuddyPress features and enhancements coming soon and those which have already landed.

BuddyPress 2.3.3

There will be a minor release coming up to address some necessary fixes and updates. Seven tickets are currently slated for this release, four of which have been completed namely:

  • Add BuddyPress Menus to Customizer (#6509)
  • bp_create_excerpt returning mall-formed markup (#6517)
  • Minor class change for bp-core-admin-tools.php (#6561)
  • WP 4.3 changes in WP_List_Table (#6465)
  • The list of tickets slated for BP 2.3.3 are available on this page.
  • Release date: TBA

BuddyPress 2.4.0

  • Target Release Date: October 6, 2015
  • BP 2.4.0 Beta 1: two weeks before release

TICKETS COMPLETED

Twenty-four trac tickets have been closed to date. The complete list of all tickets completed for BP 2.4.0 are available on this page. Some tickets noted were:

  • Separate functions for creating a new nav link and registering a screen function (#6534)
  • New Filter for Groups Widgets and Members Widgets (#6513)

ONGOING WORK

Eight-two more tickets are slated for 2.4.0. Keep updated with the complete list of these tickets on this page. The following have also been highlighted in compiled chats:

xProfile fields used for signup should be configurable (#6347) @johnjamesjacoby. This feature would allow admins to cherry pick which profile field from any profile field group will be included in the registration page.

Continue xProfile field improvements @johnjamesjacoby continues to tackle tickets relating to xProfile Fields and xProfile Field Groups.

User roles with different profile fields (#5192) @boonebgorges worked with @offereins,  @tanner and  @im4th on the “first killer feature for member types.” Screenshot on the left below shows the new metabox  on the profile field edit panel which allows the administrator to select the member types to which the field is applicable  if you’ve set up member types in your site and none were selected.  Screenshot on the right shows a profile field unavailable to all members. Patches have been committed to trunk. Testing welcome.
membertype-profilefields

A new API to manage single items navigation (#6534) @im4th and @boonebgorges discuss strategies to make the new navigation API much more flexible and configurable than what’s currently available — “register nav items in a maximal way with callbacks, i.e., always register them, and then allow them to be suppressed when rendered, according to whatever access conditions have been set up.”

Add UI for adding Profile Header Images for Users and Groups (#6570) aka Cover Photos.  Screenshot below is a teaser of the profile header image within the Twenty Thirteen theme.  This feature is still in the preliminary stage as the conversation continues between @im4th and @johnjamesjacoby to determine the best approach to set up cover photos using the BP Attachments API. @modemlooper and @buddyboss have also shared how they implement this feature in a plugin or theme respectively.
Profile Photo or Cover Photo

Inline Documentation (#6396 through #6407) second pass by @tw2113 to clean up and update inline documentation. He’s also planning to parse out all the @todo notations and start some tickets for those items.

Fix for bp_groups-template in order to support Ajax for group admin actions (#6387@rayisme has uploaded patch to allow developers to use group template functions across all group contexts.  Dev feedback needed.

Additional styling support for BuddyPress Widgets (#5817) @rayisme has uploaded a patch to ensure that BuddyPress classes are injected in before_widget for themes that do not add the ‘widget’ class.

Companion Stylesheet – Twenty Thirteen (#6533) @hnla continues with the beautification of BuddyPress elements within the WordPress default themes.

Use WP 4.3 site icon feature to set a blog’s “profile photo” (#6544) aka Blog Avatar. @im4th has uploaded a patch using the customizer site-icon feature.

New Invitations API (#6210) @dcavins will continue with his work on this new API in addition to the trac tickets related to invitations and groups.

Accessibility fixes for bp-legacy templates (#6531) and BP admin screens (#6532) @mercime has uploaded patches for the two tickets. @im4th has committed patches for the Avatar UI uploader in the frontend screen and has added patches for the uploader in the backend.

UPCOMING TICKETS

BP Emails: @djpaulgibbs kicked off the BP emails discussion last July 8th which lasted for ~ two hours. Topics included: current WP email solutions/plugins, email queueing, needing a real cron job, BP_Email Class or not, BP email templates, possible Customizer piggyback, including modern PHP library, making the emails customizable by administrators, class/interface that implements the integration with a delivery service, etc.

Devhub for BuddyPress and bbPress: @djpaulgibbs will share more about these projects soon.

Translating BuddyPress

BuddyCamp Brighton, UK

  • Reminder: The first BuddyCamp in Europe is this coming Saturday, August 8! The schedule has been posted and tickets are still available.
  • Speakers: Paul Gibbs, Tammie Lister, Rocío Valdivia, Mathieu Viet, Hugo Ashmore, Sven Lehnert, and Michael Eisenwasser
  • Sponsored by: Bluehost, PlanetHoster, GoDaddy, WPML, Human Made, BuddyBoss, BuddyForms, WooCommerce, WebDevStudios, DataFlexor, Make Do, and Connected. Thank you!
    buddycamp-brighton-speakers
  • Update: Read @djpaulgibbs new post about BuddyCamp Brighton at our BuddyPress blog.

Interview with Paul Gibbs and John James Jacoby

  • Jeff Chandler and Marcus Couch interviewed @djpaulgibbs and @johnjamesjacoby at WP Tavern’s special podcast last Wednesday. If you missed it, just go to this page and listen to the latest updates about BuddyPress and more.
    Interview with John James Jacoby and Paul Gibbs

#5192, #5817, #6210, #6347, #6387, #6396, #6407, #6465, #6509, #6513, #6517, #6531, #6532, #6533, #6534, #6544, #6561, #6570, #dev-chat