=== BuddyPress Profile Shortcodes === Contributors: Bento4Extend, GICoder Donate link: http://Extend.BT4.ME/ Tags: BuddyPress, shortcode, shortcodes, profile, social Requires at least: 3.6 License: GNU/GPL 2 Tested up to: 4.4.2 Stable tag: 1.1 Allows you to insert any information from either a specific user or the current user into anywhere on the site using 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](http://Extend.BT4.ME/downloads/buddypress-profile-custom-area/ "BuddyPress Profile Custom Area") or [BuddyPress Profile GeoLocation](http://Extend.BT4.ME/downloads/buddypress-profile-geolocation/ "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](http://Extend.BT4.ME/ "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](http://Extend.BT4.ME/downloads/buddypress-profile-custom-area/ "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](http://Extend.BT4.ME/downloads/buddypress-profile-custom-area/ "BuddyPress Profile Custom Area") at [Extend.BT4.ME](http://Extend.BT4.ME/ "Extend.BT4.ME"). == Frequently Asked Questions == = If you have any questions = Feel free to contact our support through [Extend.BT4.ME](http://Extend.BT4.ME/ "Extend.BT4.ME") == 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 == Screenshots == There are no screenshots at this time, as it can appear differently for anyone that uses the shortcodes. == Upgrade Notice == = 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