Shortcodes – Promoter Field Keys and Shortcodes List


FIELDS

Field NamePromoterinfo ShortcodeField ID
Referred by Affiliate ID[promoterinfo field_id=”9″ user_id=””]9
Referred by Affiliate User ID[promoterinfo field_id=”10″ user_id=””]10
Referred by Affiliate Username[promoterinfo field_id=”11″ user_id=””]11
Gravity Forms grabs the “Referred by” fields using the custom code “Promoter Fields Shortcodes Extended”.

Each field in GF has a special class that is added in the form.

Appearance –> Custom CSS — add affwp_id, affwp_user_id, affwp_username

Advanced –> Allow fields to be dynamically populated –> Parameter Name — add add affwp_id, affwp_user_id, affwp_username
Your Name – First[promoterinfo field_id=”1″ user_id=””]1
Your Name – Last[promoterinfo field_id=”2″ user_id=””]2
Display Name[promoterinfo field_id=”4″]4
Username / Social Username [promoterinfo field_id=”4″ user_id=””]? 4 ?
Email[promoterinfo field_id=”5″ user_id=””]5
Profession[promoterinfo field_id=”38″ user_id=””]38
Location[promoterinfo field_id=”8″ user_id=””]8
Address 1[promoterinfo field_id=”8.1″ user_id=””]8.1?
Address 2[promoterinfo field_id=”8.2″ user_id=””]25 ??
City??[promoterinfo field_id=”8.3″ user_id=””] ??
State[promoterinfo field_id=”8.4″ user_id=””]??
Zip[promoterinfo field_id=”8.5″ user_id=””]??
Country[promoterinfo field_id=”8.6″ user_id=””]??
Mobile Phone[promoterinfo field_id=”8″ user_id=””]8 or 184
Contact Phone[promoterinfo field_id=”183″ user_id=””]183
Featured Site Title (promoter-title)[promoterinfo field_id=”112″ user_id=””]112
Photo / Logo[promoterinfo field_id=”50″ user_id=””] 50
Photo / Logo Link[promoterinfo field_id=”175″ user_id=”” raw_value=”true”]175
Your Bio[promoterinfo field_id=”203″ user_id=””]203
Birthday[promoterinfo field_id=”24″ user_id=””]24
Banner Ad 160×600
[promoterinfo field_id=”177″ user_id=””]177
Banner Ad 160×600 Link[promoterinfo field_id=”178″ user_id=””]178
Banner Ad 728×90
[promoterinfo field_id=”179″ user_id=”” raw_value=”true”]179
Banner Ad 728×90 Link [promoterinfo field_id=”180″ user_id=”””]180
Mobile Ad 320×50[promoterinfo field_id=”181″ user_id=””]181
Mobile Ad 320×50 Link[promoterinfo field_id=”182″ user_id=”” raw_value=”T”]182
Social Media32
Facebook Profile[promoterinfo field_id=”32.1″ user_id=””]32.1?
Instagram Profile[promoterinfo field_id=”32.4″ user_id=””]32.4
LinkedIn Profile[promoterinfo field_id=”32.2″ user_id=””]32.2
Twitter Profile[promoterinfo field_id=”32.3″ user_id=””]32.3
Pinterest Page[promoterinfo field_id=”32.5″ user_id=””]32.5
Facebook Messenger[promoterinfo field_id=”185″ user_id=””]185
WhatsApp Number[promoterinfo field_id=”186″ user_id=””]186
Telegram Username[promoterinfo field_id=”187″ user_id=””]187
Username[promoterinfo field_id=”4″ user_id=””]4
Password
Captcha
Member Profile Type[promoterinfo field_id=”52″ user_id=””]13
Role[promoterinfo field_id=”66″ user_id=””]12
Agree to Terms[promoterinfo field_id=”67″ user_id=””]
Entry ID[promoterinfo field_id=”57″ user_id=””]14
Entry Date[promoterinfo field_id=58″” user_id=””]15
User IP[promoterinfo field_id=”59″ user_id=””]16
Source URL[promoterinfo field_id=”60″ user_id=””]19
Form Title[promoterinfo field_id=”61″ user_id=””]20
Approval Status[promoterinfo field_id=”62″ user_id=””]21
Workflow Current Status Timestamp[promoterinfo field_id=”” user_id=””]
Your Location Latitude[promoterinfo field_id=”17″ user_id=””]17
Your Location Longitude[promoterinfo field_id=”18″ user_id=””]18
Gender[promoterinfo field_id=”79″ user_id=””]
Skype[promoterinfo field_id=”188″ user_id=””]188
WeChat[promoterinfo field_id=”189″ user_id=””]189
Google Hangouts[promoterinfo field_id=”190″ user_id=””]190
Website[promoterinfo field_id=”” user_id=””]
Groundhogg Owner ID[promoterinfo field_id=”10″]10
EXPERIENCE TAB
Company[promoterinfo field_id=”70″]70
Website[promoterinfo field_id=”228″]228
Work Type[promoterinfo field_id=”62″]62
Title (business)[promoterinfo field_id=”61″]61
Location (business)[promoterinfo field_id=”71″]71
Start Date[promoterinfo field_id=”72″]72
End Date[promoterinfo field_id=”73″]73
Description (business)[promoterinfo field_id=”75″]75

Format:
1. Use [ or ] where you see |
Example:
|promoterinfo field_id=”11″| – gets promoter information for field 11, using the URL or cookie. It can display any field in the Promoter profile

Parameters:
1. Add user_id=”1045″ to override the promoter info (or member info) for a specific user.
2. Add raw_value=”true” for URL and Image field types
for a URL field it shows the URL without hyperlink, and
for an Image field it shows the URL instead of the image.

BP Profile Shortcodes Extra

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, button or a link to user specific profile pages 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 and also lists of friend and group suggestions as well as general site member and group lists.
  • Private Message Link – displays a link to private message this selected user.
  • 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 – shows either a collection of avatars or a list of members names, both are links to each members profile.
  • Group Description – displays the group description.
  • Group Field – displays various fields used by eac group.

** Activity Shortcodes

  • What’s New – adds the activity What’s New inut form to a page.

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 tailored to meet your needs.

The following shortcodes are available:

|bpps_profile_displayname|
[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.
  • If no user_id is specified then the logged in user id will be used.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • Accepts display_error=”No” argument to suppress the user not found error.

|bpps_profile_displayname user_id=”1″ class=”member-name”|
[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|

[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.
  • If no user_id is specified then the logged in user id will be used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • Accepts error_msg=”” inorder to provide an alternative user not found message.
  • Accepts display_error=”No” argument to suppress the user not found error.

|bpps_profile_email user_id=”bob” |

[bpps_profile_email user_id=”bob” ]

|bpps_profile_username|

[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.
  • If no user_id is specified then the logged in user id will be used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • Accepts error_msg=”” inorder to provide an alternative user not found message.
  • Accepts display_error=”No” argument to suppress the user not found error.

|bpps_profile_private_message_link|

[bpps_profile_private_message_link]

  • Returns a link to private message the user.
  • accepts user_id=”” as input.

|bpps_profile_url|

[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 customization options.
  • This will accept the parameter “profile_page” to have the url for any page for the profile specified. i.e. “settings” will go to the settings page.
  • text=”name” will show the users displayname (“username” for WP Username ) as a link to their profile page. Otherwise any other text will be used as a as the text for the link.
  • Accepts user_id=”” text, button=”button”, before, profile_page, after, rel, target, style, class, attribute_id, title, tabindex, and attributes for inputs.
  • If no user_id is specified then the logged in user id will be used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • Accepts error_msg=”” inorder to provide an alternative user not found message.
  • Accepts display_error=”No” argument to suppress the user not found error.

|bpps_profile_url text=”Link to Profile”|

[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=”Link to Profile” button=”button” |

[bpps_profile_url text=”Link to Profile” button=”button” ]

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

|bpps_profile_url text=”My Forums” profile_page=”forums” user_id=”bob”|

[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”|

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

  • Will get the field 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 “field” would be the title and the “section” would be the tab / section.
  • The “shortcode” parameter, if set to 1 will assume the field holds a shortcode and will execute it.
  • 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=””, field=”” empty=”” shortcode=”” tab=”” and option=”Two” for inputs.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • If no user_id is specified then the logged in user id will be used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • Accepts error_msg=”” inorder to provide an alternative user not found message.
  • Accepts display_error=”No” argument to suppress the user not found error.
  • There are now two different methods of displaying the users profile fields built into this shortcode:

** [bpps_profile_field tab=”Base” field=”Name”] uses the original method to display the profile field.
** [bpps_profile_field option=”Two” field=”Name”] uses the option two method to display the profile field.

|bpps_profile_field field=”Name” user_id=”2″|

|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”|

[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|

[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.
  • If no user_id is specified then the logged in user id will be used.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • Accepts error_msg=”” inorder to provide an alternative user not found message.
  • Accepts display_error=”No” argument to suppress the user not found error.

|bpps_profile_avatar_url|

[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.
  • If no user_id is specified then the logged in user id will be used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • Accepts error_msg=”” inorder to provide an alternative user not found message.
  • Accepts display_error=”No” argument to suppress the user not found error.

|bpps_profile_avatar_link|

[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, profile_page, style, class, attribute_id, dimension, height, width and alt inputs.
  • If no user_id is specified then the logged in user id will be used.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • Accepts error_msg=”” inorder to provide an alternative user not found message.
  • Accepts display_error=”No” argument to suppress the user not found error.

|bpps_profile_cover_image|

[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, profile_page, rel, style, class, attribute_id, height, width and alt inputs.
  • If no user_id is specified then the logged in user id will be used.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • Accepts error_msg=”” inorder to provide an alternative user not found message.
  • Accepts display_error=”No” argument to suppress the user not found error.

|bpps_profile_cover_image_url|

[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.
  • If no user_id is specified then the logged in user id will be used.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • Accepts error_msg=”” inorder to provide an alternative user not found message.
  • Accepts display_error=”No” argument to suppress the user not found error.

|bpps_profile_cover_image_link|

[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.
  • If no user_id is specified then the logged in user id will be used.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • Accepts error_msg=”” inorder to provide an alternative user not found message.
  • Accepts display_error=”No” argument to suppress the user not found error.

|bpps_profile_edit_url|

[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.
  • If no user_id is specified then the logged in user id will be used.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • Accepts error_msg=”” inorder to provide an alternative user not found message.
  • Accepts display_error=”No” argument to suppress the user not found error.

|bpps_profile_edit_url text=”Edit Profile”|

[bpps_profile_edit_url text=”Edit Profile”]

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

|bpps_profile_header|

[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 “@” appended 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.
  • If no user_id is specified then the logged in user id will be used.
  • If mention_name=”” is set the users mention name ( username ) is used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • 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|

[bpps_profile_lists]

  • Returns a list of friends or groups for the selected user.
  • Supports four list formats; option=”list” – linked text list, option=”avatar-grid” – grid of group or friend avatars, option=”avatar-grid-name” – Grid of group avatars with a name link, option=”avatar-list” – List of links including Avatar and name.
  • Groups List (list_type=”groups”) can show users groups (default), groups user created (created=”true”) and groups user is administrator (admin=”true”).
  • Includes optional count of total members, friends or groups ( display_count=”true” / “false” ).
  • per_page=”” will set the maximum items for the list to display. Default is 20.
  • supports list_type=”friends_suggest”, list_type=”members”, list_type=”group-lists” and list_type=”groups_suggest” to display suggested friends and groups.
  • friends-suggest and groups-suggest list types analyse the users friends and their groups and makes suggestions based on those.
  • groups list type displays the users groups, groups they are admin of or groups they created.
  • group-lists list type displays lists of the sites groups and does not support a user_id, the groups displayed can be set by selecting groups_sort=”” with active, newest, random, alphabetical and popular as options.
  • For site members lists and additional option is the members_sort=”” with possible options of newest, active, alphabetical, popular, random and online.
  • For friends and groups suggestions, Group Join and Add Friend links are provided with css classes of bpse-join-group and bpse-add-friends respectively.
  • Also, if no suggestions for groups or friends are found, a link to the groups and members directory is provided.
  • group_desc=”false” will remove the group description from the Group list views, this is contained in a span element with a class of bpps-grp-desc.
  • latest_update=”false” will romove the users latest activity update and view link from the friends list items display.
  • promoted_groups=”2,5,9″ accepts the id’s of any groups you want to highlight in the group suggestions list, rand=”true” will ensure a randomized list of suggestions.
  • s_title=”default”, s_title adds a title of your choice in an h4 tag, entering default will include the users name in the title ( ie. “username’s friends” etc.).
  • Accepts user_id=””, alt=””, members_sort=””, groups_sort=””, class=””, per_page=””, option=””, list_type=””, width=”” (default 100px), height=”” (default 100px), s_title=”no” admin=””, group_desc=”false”,
    latest_update=”” and created=”” as inputs.
  • If no user_id is specified then the logged in user id will be used.
  • If displayed=”Yes” then the displayed user id will be used. This will only work on BP pages.
  • If displayed=”Author” is used then the profile of the post author will be displayed. Only works on single posts and pages.
  • If mention_name=”” is set the users mention name ( username ) is used.

|bpps_profile_lists user_id=”bob” list_type=”groups” created=”true”|

[bpps_profile_lists user_id=”bob” list_type=”groups” created=”true”]

  • 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_profile_lists list_type=”members” members_sort=”newest” per_page=”4″ option=”avatar-grid-name”|

[bpps_profile_lists list_type=”members” members_sort=”newest” per_page=”4″ option=”avatar-grid-name”]

  • Will display the sites four newest members in a horizontal grid.

|bpps_profile_lists list_type=”group-lists” groups_sort=”active”|

[bpps_profile_lists list_type=”group-lists” groups_sort=”active”]

  • Will display the sites 20 most recently active groups in a horizontal grid.

|bpps_profile_lists option=”avatar-grid” per_page=”3″ promoted_groups=”1,6,8″|

[bpps_profile_lists option=”avatar-grid” per_page=”3″ promoted_groups=”1,6,8″]

  • Will display groups 1,6 and 8 in an avatar grid.

|bpps_group_url slug=””|

[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.
  • Group id’s can be found in the Admin->Groups page
  • 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” |

|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″ |

[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|

[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|

[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|

[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|

[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|

[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|

[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|

[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_members|

[bpps_group_members]

  • 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” ).
  • s_title=”default”, s_title adds a title of your choice in an h4 tag, entering default will include the groups name in the title ( ie. “Members of Groupname” etc.).
  • Accepts Group_id=””, slug, alt, before, after, height, width, class, s_title, per_page and display_count as inputs.
  • if no group_id or slug is specified, the shortcode will try to pick up the current group id from BuddyPress, but this means it must be used on a BuddyPress Group page.
  • For the avatar-list option, content_1_field, content_2_field and content_3_field allow additional content from profile fields to be added under the members name.
  • So content_1_field=”Date of Birth” would display one profile field and content_2_field and content_3_field can be used for others.

|bpps_whats_new|

[bpps_whats_new]

  • Displays the “What’s New” activity input form in the page.
  • Currently no additional attributes are supported.
  • Currently BP-Nouveau is not supported.

|bpps_group_description|

[bpps_group_description]

  • Displays the description text of the selected group.
  • Uses group_id=”” to choose the group id, this needs to be numeric.
  • Without a group id the shortcode will display the description for the group being viewed, only if used in a group page.

|bpps_group_field|

[bpps_group_field]

  • Displays any of Name, ID, Description, Creator ID Creator Username, Creator Displayname, Slug, Status and Date Created.
  • Uses group_id=”” to choose the group id,
  • Without a group id the shortcode will display the description for the group being viewed, only if used in a group page.
  • Uses field_id=”” to choose the options from – id, name, description, creator_id, creator_username, creator_displayname, date_created.

forked as BP Profile Shortcodes Extra

  • Initial version – BuddyPress Profile Shortcodes

Please login and keep /vip/[affiliate_username] in the URL to see all of this page.

Shortcode for Affiliate ID that includes /vip/[promoterinfo field_id=”47″]

[sc name=”affiliate-id”]


Example:

What we’re typing:
https://masterytv.com/|sc name=”affiliate-id”|

What results:
https://masterytv.com/[sc name=”affiliate-id”]

Logged in Promoter Info

You must be logged in to see this information. You can edit the information in the section below:

Your Name:[affiliate_name]
Username: [affiliate_username]
Promoter URL: https://masterytv.com/vip/[affiliate_username]
Email: {user:user_email}

Edit Fields

Your Promoter ID must be in the URL for you to see and edit these fields. i.e. https://masterytv.com/admin-promoter-profile-shortcodes/vip/[affiliate_username]

Internal Reference: All Fields with Field ID

The custom plugin, Promoter Info Fields Extended, creates shortcodes for all fields in the Promoter Registration form and Promoter Update form.

[user_email] |user_email|<br>

These are the available user codes from the “User Shortcodes Plus” plugin

[user_id] |user_id|<br>

[user_email] – user_email<br>

[user_firstname] – user_firstname<br>

[user_lastname] – user_lastname<br>

[user_nicename] – user_nicename<br>

[user_display] – user_display<br>

[user_display_name] (alias) – user_display_name<br>

[user_registered] – user_registered<br>

[user_avatar] (image) – user_avatar<br>

[user_avatar_url] – user_avatar_url<br>

[user_url] – user_url<br>

[user_website] (alias) – user_website<br>

[user_description] – user_description<br>

[user_bio] (alias) – user_bio<br>

[/affiliate_content]

Instructions 

Shortcode format:

Notes: 

The [promoterinfo] shortcodes deliver the raw data unless its an image or a URL

— The Image modifier – the shortcodes that return an image are delivered in the <img> format. To deliver the URL of the image use the modifier raw_value=“true”

The URL fields are delivered in an <a> formate. To add a text hyperlink to the URL use the modifier link_text=“ ” (for example: <a href='[promoterinfo field_id=”34″ raw_value=”true”]’>[promoterinfo field_id=”34″]</a> delivers an image field 34 (which is in the . 

— To return the URL

— For most fields: [promoter field_id=“1”] where 1 is the variable number of the field in BuddyPress

— For URL Fields: [promoterinfo field_id=“30” link_text=“Click Here”] where Click Here is the text with the hyperlink to the URL produced by field_id 30 

— 

|promoterinfor field_id=’30’ link_text=’Click here’|
results in
[promoterinfo field_id=’30’ link_text=’Click here’]

  • Detected the field type and its value. If it is a URL, <a> tag will be returned.
  • Added another attribute ‘link_text’ as shortcode with a closing tag was ignored within Gutenberg editor.
    link_text: It is an anchor text and only be used if the field type is URL.

|promoterinfo field_id=’50’| — [promoterinfo field_id=’50’]

  • Detected the field type and its value. If it is an image, <img> tag will be returned.
  • Added CSS classes as: masterytv-promoter-image {field_label} gf-field-[field_id}

=====

|a href=’|promoterinfo field_id=”6″ raw_value=”true”|’>[promoterinfo field_id=”9″]</a| 
<a href='[promoterinfo field_id=”6″ raw_value=”true”]’>[promoterinfo field_id=”9″]</a> 

Can you please try this? — Please note single quote after href=”

Please note: On call we discussed that if it is an image, it will return <img> tag. So, if it’s URL, it will return ‘a’ tag. For the same reason, I added flexibility raw_value=”true”.

Here is the Affiliate WP – Gravity Flow (already in place)
Using ‘affiliate_id’ we can get ‘entry_id’ and from entry_id we can get to ‘form_id’