Looking For Something?

[wps-friends-add-button]

Purpose

Displays a button to make a request to another user as a friend.

For the currently logged in user, and the user who is being viewed (their profile page), this shortcode will display a button making it quick and easy to request to be friends, cancel, etc.

Availability

Provided in the Core Plugin.

Customising

You can use the global shortcode settings via WPS Pro->Shortcodes in the admin dashboard, or add them to the shortcode as options.

Example

Display the button, changing the label:

[wps-friends-add-button label="Be buddies"]

Options

The following (which shows default values and an example of using the shortcode option) can be set via the admin dashboard (WPS Pro->Shortcodes) or added as options to the shortcode in your WordPress page, post or widget.

Label for the button (label=”Make friends”)
Cancel friendship label (cancel_label=”Cancel friendship”)
Cancel friendship request label (cancel_request_label=”Cancel friendship request”)
Optional CSS class for button (class=””)

Administration

Via WPS Pro->Setup->Friendships you can set it that all members of the site are automatically friends with every other member.

If set, they can’t remove friendships. It is an option that is ideal for a social network where you know that all members are likely to be friends in real life and avoids the “making friends” process.

Screenshot_7

 

Sidebar