Looking For Something?

[wps-directory]

Purpose

Displays a directory of your site members. For distance to work with a user, it requires that user to have saved their profile via Edit Profile with Town/City and Country.

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.

For some characters (character sets), you will need to make sure that you have installed WordPress with correct character set.

If you have problems, you might try changing the following setting in wp-config.phps: define(‘DB_CHARSET’, ”); and you might need to add something like <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ /> to your theme header.

You can also include profile extensions in your member directory if you have the Extensions plugin, see here on how to do that

Example

Show the directory, as a table style:

[wps-directory style="table"]

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.

Style   (style=”classic”)
Order field   (order=”last_active”)
Order   (orderby=”DESC”)
No results text   (no_results_msg=”No users found.”)
Show A to Z comma seperated characters  (a_to_z=”1″)
A to Z values   (match=”ABCDEFGHIJKLMNOPQRSTUVWXYZ”)
Show missing A to Z   (missing=”1″)
Maximum number shown   (number=”50″)
Query limit   (limit=””)
Avatar size   (avatar_size=”64″)
Link display name to profile page   (link=”1″)
Show location   (show_location=”1″)
Show distance   (show_distance=”0″)
Convert miles to km   (show_in_km=”0″)
Show date   (show_date=”1″)
Date label   (date_label=”Last active”)
Last active format   (last_active_format=”%s ago”)
Show by default   (show_by_default=”1″)
Show registration date   (show_registered=”1″)
Registration date label   (registered_label=”Joined”)
Show friendship status   (show_friendship_status=”1″)
You are friends text   (friends_yes=”Joined”)
Friendship request pending text   (friends_pending=”You have requested to be friends”)
Friendship request received text   (friend_request=”You have a friends request”)
Not friends text   (friends_no=”You are not friends”)
Layout   (layout=”list”)
Show friendship action button   (include_friendship_action=”1″)
Optional CSS class for button   (friendship_class=””)
Make friends label   (friend_add_label=”Make friends”)
Cancel friendship label   (friend_cancel_label=”Cancel friendship”)
Cancel friendship request label   (friend_cancel_request_label=”Cancel Request”)
Accept request label   (accept_request_label=”Accept Friendship”)
Reject request label   (reject_request_label=”Reject”)
Include current user   (include_self=”0″)
WordPress roles to include   (roles=””)
Sidebar