BP Profile Shortcodes Extra Wordpress Plugin - Rating, Reviews, Demo & Download

BP Profile Shortcodes Extra Preview Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

The ambition of this plugin is to provide all the shortcodes needed to create group and member profile dashboards using shortcodes.

This is an extremely powerful plugin with many shortcode options allowing you to display many aspects from profiles and groups.

**Profile Shortcodes
* Displayname – As text or a link to the members profile page.
* Username – As text or a link to the members profile page.
* Avatar or Profile Image – As an image or a link to the members profile homepage.
* Cover Image – As an image or a link to the members profile homepage.
* Profile Header – A collection of cover image, avatar and username, with the username being a link to that members profile.
* Profile Fields – You can display information from any of the profiles Xprofile fields.
* Profile URL – shows the url or a link using the text of your choice.
* Profile Edit Link – A link to the users edit profile page.
* Profile Lists – Creates lists of users friends and groups.
* If no user_id is specified in the shortcode, the details of the member viewing that page will be displayed.

** Group Shortcodes
* Avatar Image – As an image or a link to the group homepage.
* Cover Image – As an image or a link to the group homepage.
* Profile Header – A collection of cover image, avatar and group name, with the group name being a link to that group homepage.
* Group URL – shows the URL for the group or a link with the text specified by you.
* Group Member list – show either a collection of avatars or a list of members names, both are links to each members profile.

BP Profile Shortcodes Extra provides an updated range of BuddyPress shortcodes, it was build upon the BuddyPress Profile shortcodes plugin and supports all of it’s features plus many more.

Most of the shortcodes accept many parameters to allow the output to be customized and taylored to meet your needs.

** Parameters accepted **

id – the css is for the element – id=”my-id”
text – The text to include in a link, no input and the link will display the username/displayname etc. appropriate to the application.
before – text before the link
after – text after the link
rel – css rel
target – css target
style – css style
class – css class
attribute_id – css attribute id
title – css title
dimension – size setting
tabindex – css tabindex
attributes – css attributes
height – css height
width – css width
align – css align
alt – css alt
user_id – The id of the user in question, not set means the viewing members id will be used, acceptable inputs are user_id=”17″, user_id=”bob”.
field – the name of the xprofile field to use in the field shortcode.
tab – the xprofile tab name.

The following shortcodes are available:

[bpps_profile_displayname]

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

[bpps_profile_displayname user_id=”1″ class=”member-name”]

  • Displays the profile displayname for user id 1, the css class for that element will be set to “member-name”.

[bpps_profile_email]

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

[bpps_profile_email user_id=”bob” ]

[bpps_profile_username]

  • Same as above except for the BuddyPress username
  • The user_id parameter can be used optionally as well.
  • Accepts user_id=”” for input.

[bpps_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.
  • Accepts user_id=”” text, before, profile_page, after, rel, target, style, class, attribute_id, title, tabindex, and attributes for inputs.

[bpps_profile_url text=”Link to Profile”]

  • Returns the link to the profile, the text specified is used as the anchor text.

**[bpps_profile_url text=”My Forums” profile_page=”forums” user_id=”bob” ]

  • Returns a link to Bob’s My forums page.

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

  • Will get the fieldname from the specified tab (profile group).
  • If the tab parameter is not used then it will get it from the primary / base tab profile group.
  • 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.
  • Accepts user_id=””, fieldname=”” empty=”” and tab=”” for inputs.

[bpps_profile_field field=”Name” user_id=”2″]

  • Displays displays the Name field from the Base profile group for user 2.

[bpps_profile_field field=”Details” user_id=”bill” tab=”More”]

  • Displays the Details field from the More profile group for the user Bob.

[bpps_profile_avatar]

  • Displays the members profile image.
  • Can use the “dimension” parameter to change the dimensions of the avatar.
  • 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.
  • Accepts user_id=”” id, rel, style, class, attribute_id, dimension, height, width and alt inputs.

[bpps_profile_avatar_url]

  • Will get the profile/avatar image 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_avatar.
  • Accepts user_id=”” as input.

[bpps_profile_avatar_link]

  • Will get the avatar image as a link to the members profile.
  • 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.
  • Accepts user_id=”” id, style, class, attribute_id, dimension, height, width and alt inputs.

[bpps_profile_cover_image]

  • Displays the members profile cover image.
  • You can use a height or width parameter to define the height or width.
  • The user_id parameter can be used optionally as well.
  • Accepts user_id=”” id, rel, style, class, attribute_id, height, width and alt inputs.

[bpps_profile_cover_image_url]

  • Will get the profile cover image 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.
  • Accepts user_id=”” as input.

[bpps_profile_cover_image_link]

  • Will get the profile cover image as a link to the members profile.
  • 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.
  • Accepts user_id=”” id, rel, style, class, attribute_id, height, width and alt inputs.

[bpps_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.
  • Accepts user_id=”” id, style, and alt for inputs.

[bpps_profile_edit_url text=”Edit Profile”]

  • Will get the link for editing the user’s buddypress profile.

[bpps_profile_header]

  • Returns a collection of the Cover Image, Profile Image and @Username with the Username as a link to the members profile homepage.
  • In the current release, it’s not possible to pass css parameters into the collection elements, so instead each element has been given css id’s and classes, so you can add your own custom css to style the output.
  • The collection is contained within a div with an id of “bppse-header”.
  • The cover image is held in a div with an id of “bppse-header-cover-image-cont” the image itself has an id of “bppse-header-cover-image”.
  • The profile image is held in a div with an id of “bppse-header-avatar”, the image iteslf has a class of “bppse-header-avatar”.
  • The Username has the “@” apended to it and is held in a div with an id of “bppse-profile-link”, the name is within h2 tags with a class of “bppse-header-nicename”,
  • Accepts user_id=”” input.

  • Example css:

bppse-header {

background-color: #f5f5f5;
height: 320px;

}
.bppse-header-avatar {
float: left;
position: relative;
top: -75px;
left: 20px;
}

bppse-profile-link {

position: relative;
left: 30px;

}

[bpps_profile_lists]

  • Returns a list of friends or groups for the selected user.
  • Supports three list formats; option=”list” – linked text list, option=”avatar-grid” – grid of group or friend avatars, option=”avatar-list” – List of links including Avatar and name.
  • Groups List can show users groups (default), groups user created (created=”yes”) and groups user is administrator (admin=”yes”).
  • Includes optional count of total friends or groups ( display_count=”yes” / “no” ).
  • per_page=”” will set the maximum items for the list to display. Default is 20.
  • Accepts user_id=””, alt=””, class=””, per_page=””, option=””, list_type=””, width=”” (default 100px), height=”” (default 100px), admin=”” and created=”” as inputs.

**[bpps_profile_lists user_id=”bob” list_type=”groups” created=”yes”]

  • Will display up to 20 groups created by bob, a count of all groups created by bob with a link to bob’s My Groups page.

[bpps_group_url slug=””]

  • Will get the url for the group.
  • You can use group_id=”” to pass the group id or slug=”” to pass the group slug in order to identify the required group. Only use one of these settings, these are mandatory fields.
  • 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 page=”” to return a link to any group tab, ie page=”forum” will return a link to the groups forum page. user page=”home” to return a lin to the group homepage.
  • Accepts group_id=””, slug, text, before, page, after, rel, target, style, class, attribute_id, title, tabindex, and attributes for inputs.

[bpps_group_url text=”Link to Group” slug=”test-group” ]

  • Returns the link to the group homepage for the group with a slug of test-group, the text specified is used as the anchor text.

**[bpps_group_url text=”Group Forum” page=”forum” group_id=”2″ ]

  • Returns a link to the forum page of group with an id of 2.

[bpps_group_avatar]

  • Displays the groups avatar image.
  • Can use the “dimension” parameter to change the dimensions of the avatar.
  • You can use a height or width parameter to define the height or width of it as an alternative.
  • Use of either the group_id or slug parameters is mandatory.
  • Accepts group_id=””, slug, id, rel, style, class, attribute_id, dimension, height, width and alt inputs.

[bpps_group_avatar_url]

  • Will get the avatar image url.
  • Use of either the group_id or slug parameters is mandatory.
  • Accepts group_id and slug as inputs.

[bpps_group_avatar_link]

  • Will get the avatar image as a link to the groups homepage.
  • Use of either the group_id or slug parameters is mandatory.
  • Accepts group_id=””, slug id, style, class, attribute_id, dimension, height, width and alt inputs.

[bpps_group_cover_image]

  • Displays the groups cover image.
  • You can use a height or width parameter to define the height or width of the image.
  • Use of either the group_id or slug parameters is mandatory.
  • Accepts group_id=””, slug, id, rel, style, class, attribute_id, height, width and alt inputs.

[bpps_group_cover_image_url]

  • Will get the cover image url.
  • Use of either the group_id or slug parameters is mandatory.
  • If you use show = no as a parameter it works similar to bp_profile_gravatar.
  • Accepts group_id=”” and slug as inputs.

[bpps_group_cover_image_link]

  • Will get the group cover image as a link to the group homepage.
  • Use of either the group_id or slug parameters is mandatory.
  • Accepts user_id=”” id, rel, style, class, attribute_id, height, width and alt inputs.

[bpps_group_header]

  • Returns a collection of the Cover Image, Avatar and Group Name with a link to the group homepage.
  • Use of either the group_id or slug parameters is mandatory.
  • In the current release, it’s not possible to pass css parameters into the collection elements, so instead each element has been given css id’s and classes, so you can add your own custom css to style the output.
  • The collection is contained within a div with an id of “bppse-grp-header”.
  • The cover image is held in a div with an id of “bppse-grp-header-cover-image-cont” the image itself has an id of “bppse-grp-header-cover-image”.
  • The profile image is held in a div with an id of “bppse-grp-header-avatar”, the image itself has a class of “bppse-grp-header-avatar”.
  • The Group Name is held in a div with an id of “bppse-grp-group-link”, the name is within h2 tags with a class of “bppse-grp-group-header-nicename”,
  • Accepts group_id=”” and slug input.

  • Example css:

bppse-grp-header {

display: block;
height: 350px;
background-color: #f5f5f5;

}

bppse-grp-header-cover-image {

width: 100%

}
.bppse-grp-header-avatar {
float: left;
position: relative;
top: -75px;
left: 20px;
}

bppse-grp-group-link {

position: relative;
left: 30px;

}

[bpps_group_member_list]

  • Displays a list of group members.
  • Use of either the group_id or slug parameters is mandatory.
  • Can display simple list (option=”list”), a grid of group avatars ( option=”avatar-grid” ) or a linked list with avatars ( option=”avatar-list” ).
  • per_page=”20″ sets the number of members to display (default 20).
  • includes options count of all group members with a link to the group members page ( display_count=”yes” / “no” ).
  • Accepts Group_id=””, slug, alt, before, after, height, width, class, per_page and display_count as inputs.

forked as BP Profile Shortcodes Extra

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 – BuddyPress Profile Shortcodes

Screenshots

  1. screenshot-1.png Profile Header shortcode output

    screenshot-1.png Profile Header shortcode output

  2. screenshot-2.png Profile List shortcode Group list outputs

    screenshot-2.png Profile List shortcode Group list outputs

  3. screenshot-3.png Profile List shortcode friends list outputs

    screenshot-3.png Profile List shortcode friends list outputs


Reviews & Comments