BuddyPress 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, […]
Playing with the user’s ID in different contexts
Published on November 23rd, 2013 by Mathieu VietEnqueueing 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 […]
Group Meta Queries: Usage Example
Published on November 4th, 2013 by Mathieu VietSince version 1.8, it is possible to filter groups by Metadata. For instance you can add a meta_query parameter to the bp_has_groups() function. To make this possible, BuddyPress uses a built-in WordPress class : WP_Meta_Query (you will find a link to its WordPress codex page at the bottom of this article). This feature can help […]
Modifying the Registration Form
Published on October 31st, 2013 by David CavinsOnce you’ve installed WordPress and BuddyPress, created WordPress pages for BuddyPress to use for Registration and Activation, and then enabled “Anyone can register” (under Settings > General > Membership), you’re ready to let users sign up for your new site. Tip: If you’re already logged in to your new site, visiting mysite.net/register will redirect you […]
Preventing Spammer Registration
Published on October 31st, 2013 by David CavinsSpammers and sploggers pose a serious risk to online communities. Without some protection in place, your fledgling community runs the risk of being overrun by spammers trying to sell fake Uggs and Oakleys. Since fake users can easily make up 98% of all new user account requests, it’s useful to have a game plan for […]
Customizing BuddyPress Avatars
Published on October 31st, 2013 by Sarah GoodingThe BuddyPress core allows for a number of ways for you to customize the size and appearance of user avatars. In this tutorial we’ll show you which files to edit in order to make changes to avatars. We’ll also walk through several example customizations. Default BuddyPress Avatar Sizes Before customizing avatars, it’s important to know […]
Codex Standards & Guidelines
Published on October 12th, 2013 by Hugo AshmoreIf you are considering contributing to the codex this simple guide is here to help you with the formatting of pages and standards & conventions to follow to keep a set appearance to pages. The Codex is curated by a team of volunteers they will check and verify articles for accuracy and adherence to Codex […]
bp_activity_add()
Published on September 29th, 2013 by Boone Gorgesbp_activity_add() is used to insert new activity items into the database. Usage Parameters $args An array that describes the activity item that you’re creating. Possible values: ‘id’ (optional) Pass a numerical id to update an existing activity item ‘action’ An HTML string summarizing the activity item, which is used by the template when displaying the […]
Filters & Constants Reference
Published on August 18th, 2013 by Hugo AshmoreBuddyPress Core Filters and Constants BudyPress provides a series of filters and constants you can add to your bp-custom.php or functions.php files to modify the behaviour of your BP install. These range from defining the avatar sizes BP will look for as defined defaults to filters that can be set to deactivate components fully such […]
Version 1.8.1
Published on August 5th, 2013 by Boone GorgesOn August 5, 2013, BuddyPress 1.8.1 was released to the public. This is a maintenance update. For Version 1.8.1, the database version (_bp_db_version in wp_options) was 6080, and the Trac revision was 7340. Summary Fix default sort order for BP_Group_Member_Query to be last_modified (#5106) Fix incorrect template hierarchy path for members directory templates (#5110) Fix […]