Friends shortcodes

Friends shortcodes

 

Overview

This document provides instructions on how to use shortcodes of the extension Friends.

Ultimate Member uses WordPress shortcodes to allow users to perform certain actions as well as display forms and templates. You may use shortcodes in the posts(page) content and text widgets.

Contents

[ultimatemember_friends] – Show friends list

[ultimatemember_friends_bar] – Show friends counter

[ultimatemember_friends_online] – Show friends, who are online

[ultimatemember_friend_reqs] – Show members, who invited this member to be a friend

[ultimatemember_friend_reqs_sent] – Show members, this member invited to be a friend

Shortcodes

[ultimatemember_friends] #

Usage: Show friends list

Default attributes:

  • ‘user_id’  => {current profile ID OR current user ID},
  • ‘style’  => ‘default’,
  • ‘max’  => 11

Example 01, yourself:

[ultimatemember_friends]

Example 02, other member:

[ultimatemember_friends user_id="3263"]

Example 03, other member, avatars style:

[ultimatemember_friends user_id="3263" style="avatars"]

[ultimatemember_friends_bar] #

Usage: Show friends counter

Default attributes:

  • ‘user_id’ => {current profile ID}

Example:

[ultimatemember_friends_bar]

[ultimatemember_friends_online] #

Usage: Show friends, who are online

Default attributes:

  • ‘user_id’  => {current profile ID OR current user ID},
  • ‘style’  => ‘default’,
  • ‘max’  => 12

Example:

[ultimatemember_friends_online]

[ultimatemember_friend_reqs] #

Usage: Show members, who invited you to be a friend

Default attributes:

  • ‘user_id’  => {current profile ID OR current user ID},
  • ‘style’  => ‘default’,
  • ‘max’  => 999

Example:

[ultimatemember_friend_reqs]

[ultimatemember_friend_reqs_sent] #

Usage: Show members, you invited to be a friend

Default attributes:

  • ‘user_id’  => {current profile ID OR current user ID},
  • ‘style’  => ‘default’,
  • ‘max’  => 999

Example:

[ultimatemember_friend_reqs_sent]