[buddypress-trac] [BuddyPress Trac] #6026: And if the Blogs component had Single items?

buddypress-trac noreply at wordpress.org
Sun Apr 26 14:15:51 UTC 2015


#6026: And if the Blogs component had Single items?
------------------------------------+------------------
 Reporter:  imath                   |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  2.3
Component:  Component - Blogs       |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------
Changes (by imath):

 * keywords:  dev-feedback => dev-feedback has-patch
 * milestone:  Future Release => 2.3


Comment:

 Thanks @jjj :)

 Some explanations about 6026.01.patch :

 1/ I needed to improve the BuddyPress nav so that it's possible to create
 a new nav/subnav for a component's single item. I've added a bunch of
 unittests to make sure there are no side effects with this improvement.

 2/ Users can subscribe to a site and easily find their sites from the "My
 sites" scope
 [[Image(https://farm9.staticflickr.com/8787/16656199343_2d20a8a6ab_o.png)]]

 3/ Admins can manage some specific settings such as the 'blog_public' one
 or the 'disallow_subscription' one. This last setting is only available
 for the public blog in case they do not want to open subscriptions. For
 private one, the subscription feature and the activity nav are disabled.

 4/ Site logos: at the beginning i was checking if the blog has an avatar
 to eventually fall back to the admin avatar. I changed my mind, because we
 are not really getting the admin ID but any member having a link with the
 blog. As a result when viewing my sites, my avatar was used as default for
 a blog i wasn't an admin of.
 [[Image(https://farm8.staticflickr.com/7659/17090233059_96a72bc8a3_o.png)]]

 5/ Create a blog > when user/blog are registered i use a transient to
 eventually redirect the loggedin user after activation to welcome him
 inside his site's profile and allow him to set the site logo. When the
 user already exists and if he adds a new blog from the site's directory, i
 add a link once the blog is created under the confirmation.

 6/ Added some filters and in particular one to completely disallow the
 blogs single item feature.
 `add_filter( 'bp_blogs_disable_single_items', '__return_true' );`

 7/ I've disabled the activity post form and for this first pass didn't
 include the widgets part because i think it would require a lot more
 testing.

 If we want to have this in 2.3, i think it would be great to have an extra
 week to test/review it. I think about specific configs such as when
 BuddyPress is not network activated.
 - @r-a-y it would be great if you could check i'm doing the right thing in
 the cache area.
 - @johnjamesjacoby it would be great if you could have a look at the
 function names i've used, and actually a more global look on the patch :)

 Anybody's feedback is welcome :)

 More than the ability to set a site logo, this feature is bringing a new
 section where we can deal with some specific settings related to a blog
 thanks to the manage screen. It could potentially help us to have a site
 by site activity tracking preferences.

 Here's a link to a video demo : https://vimeo.com/126041915

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


More information about the buddypress-trac mailing list