BuddyPress 2.0 allows admins to edit user profile fields from the Dashboard>>Users>>Edit User page. This extended profile page offers the ability to add your own settings for a user. This page gives a simple example of how to add the meta boxes to the extended profile page. What you add to the meta box can […]
Add Meta Box to Admin Extended User Profile
Published on April 16th, 2014 by modemlooperUsing bp_parse_args() to filter BuddyPress template loops
Published on April 16th, 2014 by r-a-yPrologue In the past, it has been extremely difficult to filter any BuddyPress template loop. For example, let’s say I wanted all activity loops to show the last five entries instead of the default of 20. It was possible, but basically you’d either have to requery the activity loop to grab the last five entries […]
Edit User Profiles Admin Screen
Published on April 16th, 2014 by @mercimeBuddyPress added an “Extended Profile” tab into the Dashboard > Users interface. Just hover over the member’s username and click on the Extended Profiles link to get the xProfiles Admin Screen.
BuddyPress Action Hook Sequence During Startup
Published on March 11th, 2014 by BrianWhen writing BuddyPress themes and plugins, it can be essential to know the sequence in which action hooks are invoked. The diagram below is especially useful during the site loading process, and will help you make better informed choices of actions to hook into for the loading and initialization of your plugin or theme. The […]
Installing BuddyPress in a symlinked environment
Published on February 26th, 2014 by Boone GorgesIf you use symbolic links (symlinks) for your WordPress plugin environment, you may need to do some additional configuration to ensure that BuddyPress assets are loaded correctly. If you find that CSS and Javascript assets are not being loaded correctly (the <link> tags are in the page source, but the paths are incorrect), try putting […]
BP PHPDoc Inline Documentation
Published on December 4th, 2013 by Boone GorgesIntroduction BuddyPress strives for the most complete internal documentation possible. When contributing patches to BuddyPress, you are highly encouraged to document your code using our standards. We also welcome patches that provide new documentation, or correct/amend existing documentation. Standards BuddyPress’s documentation is based on WordPress’s PHP Documentation Standards. Familiarize yourself with that document before continuing […]
Add custom filters to loops and enjoy them within your plugin
Published on December 3rd, 2013 by Mathieu VietBuddyPress uses loops to display the content of its components. In this article you will focus on how to “rearrange” the content displayed in four of its major components : Members, Groups, Blogs and finally Activity. You will achieve this thanks to the type or action argument of the init functions of each of these […]
Playing with the user’s ID in different contexts
Published on November 23rd, 2013 by Mathieu VietBuddyPress Core is first taking care of the members. As a result, when you write a BuddyPress plugin, there is a very good chance that you’ve got to play with the finest element identifying the users : their ID. There are two scenarios: the logged in user and the user whose profile is displayed. Thankfully, […]
Enqueueing Scripts or Styles only when your plugin needs it
Published on November 17th, 2013 by Mathieu VietUsing Javascipt or CSS in BuddyPress plugins are interesting ways to take care of the user experience. I think, as a plugin author, you need to have two concerns : you might not be the only one to use Javascript, other plugins can be activated in the community website, your CSS rules might not get […]
How to Add Members to a Group via WP Users Screen
Published on November 11th, 2013 by danbpWhere we are: users page in the admin screen What we want to do: add one or n members to a group What we want to get: an Add to BP Group menu in the Bulk Actions menu box What we need: a group ID, one or more users. Don’t forget to check the members […]