BuddyPress Profile Shortcodes

Description

This plugin will allow shortcodes to be used to pull profile data. This plugin will require BuddyPress in order for it to work properly and to pull the information necessary.

In this version you can get a user’s display name, gravatar, email, or any information from a specified field.

You can also have this work well with BuddyPress Profile Custom Area or BuddyPress Profile GeoLocation. Feel free to check for any other premium plugins, including BuddyPress plugins, that we may have available for purchase at Extend.BT4.ME.

The following shortcodes are available:

[bp_profile_displayname]

  • Shows the display name.
  • Can have a parameter of user_id= to get it for a specific user.

[bp_profile_email]

  • Same as above except for the email.
  • The user_id parameter can be used optionally as well.

[bp_profile_username]

  • Same as above except for the buddypress username
  • The user_id parameter can be used optionally as well.

[bp_profile_field field=”fieldname” tab=”section”]

  • Will get the fieldname from the specified tab.
  • If the tab parameter is not used then it will get it from the primary / base tab.
  • the user_id parameter can be used optionally as well.
  • The “fieldname” would be the title and the “section” would be the tab / section.
  • The parameter “empty” will allow you to set what will show if the field is empty. Will return “Empty Text” by default.
  • Will support the BuddyPress Profile Custom Area plugin’s fields and run the shortcodes in them.

[bp_profile_gravatar]

  • Will get the gravatar and display it.
  • Can use the “dimension” parameter to change the dimensions of the gravatar.
  • You can use a height or width parameter to define the height or width of it as an alternative.
  • The user_id parameter can be used optionally as well.

[bp_profile_gravatar_url]

  • Will get the gravatar url.
  • The user_id parameter can be used optionally as well.
  • If you use show = no as a parameter it works similar to bp_profile_gravatar.

[bp_profile_url]

  • Will get the url for where the user’s profile is.
  • The user_id parameter can be used optionally as well.
  • IF you use show = no then it will show as a link.
  • You can use before = or after = parameters to define text to show before or after the link or before or after the text to add customizability.
  • This will accept the parameter “profile_page” to have the url for any page for the profile specified. Ie. “settings” will go to the settings page.

[bp_profile_edit_url]

  • Will get the url for editing the user’s buddypress profile.
  • The user_id parameter can be used optionally as well.
  • You can use before = or after = parameters to define text to show before or after the link or before or after the text to add customizability.

Installation

You can download and install BuddyPress Profile Shortcodes and install it automatically through the repository. It will work right out of the box for all of the specified features.

To enhance your BuddyPress profiles further you can also purchase BuddyPress Profile Custom Area at Extend.BT4.ME.

FAQ

If you have any questions

Feel free to contact our support through Extend.BT4.ME

Reviews

Great Plugin!

This is what BuddyPress is missing, so thank you for creating this needed plugin!

Life Saver!

I was pulling my hair out trying to find a way to display user’s profile URL on BuddyPress, so this has made my life SOOOO much easier! Thank you!

Exactly what I needed!

This was exactly what I needed for a couple special links (Profile/Edit) in the navbar for buddypress. The short code for urls even worked as a hyperlink which was perfect.

Read all 4 reviews

Contributors & Developers

“BuddyPress Profile Shortcodes” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1

  • Better checking to make sure the user id is valid has now been implemented. If not valid then it uses data from the current user.
  • Most functions now use better and more accurate functions to grab information
  • Image and url functions now work better and have methods of showing the url in a customizable method
  • New parameters for the profile image shortcode such as height, width, and show = yes to show the image as html instead of just the link.
  • New parameters for the profile url such as show = yes that will show the link instead of just the url, before = and after = to add text or html before or after whatever is outputted, and profile_page = to set which page of the profile to provide the link for
  • More functions to come!

1.0

  • Initial version