Out of the box, BuddyPress automatically turns some words and phrases in the fields of a user’s profile into links that, when clicked, search the user’s community for other profiles containing those phrases. When activated, this plugin allows users and administrators to have more control over these links, in the following ways:
1) By using square brackets in a profile field, users can specify which words or phrases in their profile turn into links. For example: under Interests, I might list “Cartoons about dogs”. By default, Buddypress will turn the entire phrase into a link that searches the community for others who like cartoons about dogs. If I instead type “[Cartoons] about [dogs]”, then the two words in brackets will turn into independent links.
2) Administrators can specify certain profile fields that will not turn into links at all. The standard setting for the plugin is that fields labeled ‘Phone’, ‘IM’, and ‘Skype ID’ will not become linkable (it doesn’t make much sense to search a community for what should be a unique handle, after all). See custom-profile-filters-for-buddypress.php to configure this setting.
3) Administrators can specify certain profile fields that link to social networking profiles. If I enter my Twitter handle ‘boonebgorges’ into a field labeled ‘Twitter’, for example, this plugin will bypass the default link to a BuddyPress search on ‘boonebgorges’ and instead link to http://twitter.com/boonebgorges. See custom-profile-filters-for-buddypress.php to configure this setting.
Custom Profile Filters for BuddyPress has been downloaded 9,189 times. Are you using this plugin? Consider a donation.
Some previous blog posts about this plugin:
- Initial release
- Added automatic linking for various social networking sites
- 0.3 – February 27, 2010
- Conforms to BP 1.2 standards for loading order
- Most functionality moved to proper filters in order to inherit BP native code
- 0.3.1 – March 2, 2010
- Moved globals back to main plugin file
- Fixed error regarding missing function arguments (thanks for reporting them, Mike!)