Are you (or do you aspire, from the bottom of your heart, to be) a BuddyPress plugin developer? For several years, the go-to template for building BP plugins has been the BuddyPress Skeleton Component, originally written by Andy Peatling and Jeff Sayre. Through time, the original BPSC has gotten a bit out-of-step with the current best practices for BuddyPress plugins. And with the recent release of BuddyPress 1.5 – with its new BP_Component
class and a whole load of new goodies for plugin devs – the time was ripe for revisiting the Skeleton Component.
And so, available immediately is the brand new BuddyPress Skeleton Component, version 1.6! A quick overview of improvements:
- Refactored to use the BuddyPress 1.5’s new
BP_Component
class, making it dead-simple to register globals, create navigation items, and hook into the BP load order - File structure reorganized to better reflect BP 1.5’s organization, and to provide more fine-grained access to functions
- Data storage class totally refactored, to use custom post types and WP_Query, instead of custom database tables.
- Added a small guide for creating a top-level component directory (a “root component”), which was missing in earlier versions
- Tons of documentation added and revised
- All
WP_DEBUG
notices removed
Please note that, due to its use of BP_Component
class and other new features, plugins based on BPSC 1.6 will only work with BuddyPress 1.5 or greater. If you need to retain compatibility with earlier versions of BuddyPress, it’s recommended that you *first* build your plugin for the current version of BP, and then build the 1.2.x compatibility as an afterthought. See the “1.5 plugin update” series on bpdevel.wordpress.com and earlier versions of the Skeleton Component for more details on building plugins for BP < 1.5.
Questions, comments, or suggestions about the BuddyPress Skeleton Component? Check out the buddypress.org forums. You can also follow (and contribute to!) the plugin’s development here.
[…] complete with rich documentation on how to use the new BP_Component class, is now available. Read more about it.Like this:LikeBe the first to like this post. […]
You had me at “tons of documentation”. 🙂
Great job – kudos to @boone and the others involved.
Thank you @boonebgorges. Ole!
Thanks Boone!
[…] without the lyrics. Boone Gorges has announced that the tradition has continued with the release of BuddyPress Skeleton Component v1.6. The new release features the […]
Thanks, Boone!
Great job!!!! Thanks to @boonebgorges and @johnjamesjacoby 😀
First of all, thank you for these Skeleton Component. It’s been a while since I’m using a hard coded post-type to implement a test system on my site. As you can see in http://www.opes.es/tests/.
Today I read this update and I thought it was great, I finally could do things right easily.
I am using latest versions of WordPress, BuddyPress and bbPress and…
The fact is that I found some weird things…
– The main High Five page won’t load completely, bp_core_load_template( ‘tests/tests-loop’ ); dies once the file is printed and it won’t continue with the main template.
– Widget is not even in the menu.
– I also found more than one way to do the same thing, for instance, how should be the sidebar printed? and the footer?
Does this represent to ways to do things or one of them is deprecated?
Is there any site where I can find documentation about these issues?
Thank you very much again for your time.
First of all, thank you for these Skeleton Component. It’s been a while since I’m using a hard coded post-type to implement a test system on my site. As you can see in http://www.opes.es/tests/.
Today I read this update and I thought it was great, I finally could do things right easily.
I am using latest versions of WordPress, BuddyPress and bbPress and…
The fact is that I found some weird things…
– The main High Five page won’t load completely, bp_core_load_template( ‘tests/tests-loop’ ); dies once the file is printed and it won’t continue with the main template.
– Widget is not even in the menu.
– I also found more than one way to do the same thing, for instance, how should be the sidebar printed? and the footer?
get_sidebar( ‘buddypress’ )
locate_template( array( ‘sidebar.php’ ), true )
get_footer( ‘buddypress’ )
get_footer()
Does this represent to ways to do things or one is deprecated?
Is there any site where I can find documentation about these issues?
Thank you very much again for your time.
Jeff Sayre also wrote the BuddyPress Privacy Component that is not supported anymore. It would be great to incorporate it in Buddypress 1.5 so that BP could have similar privacy features than Facebook (groups and Timeline) and Google+ (Circles)…
Today it is not really possible anymore to propose community sites without privacy features, users would not understand it. Privacy is a growing concern.
Best regards.
Very, very interesting! I’ll use to test and after that, post my sensation here! Thanks!
Recently i installed buddypress to one of the my blog and its just great. BuddyPress Skeleton is new to me.
Thank you for the great plugin!
Thanks, Boone! this is what I am looking for!