Displays a default profile page with common elements all set up.
This shortcode will display the default profile page, as discussed above. It “gets you going”, but can be replaced with other shortcodes that then give you more control over all the elements of your profile page.
Provided in the Core Plugin.
You can use the global shortcode settings via WPS Pro->Shortcodes in the admin dashboard, or add them to the shortcode as options.
Display the default profile page, changing the map to a dynamic style:
All shortcodes have options, some more and some less. They can be set on the WPS Pro->Shortcodes page, which changes the shortcodes default values. They can also be set in the shortcode itself. Let’s take user_avatar_size, which allows you to change the size of the user’s avatar on the page (the user’s picture, which they can change). Edit the default profile page and replace what’s there with the following:
You will see that the avatar has increased in size (from the default of 150) to 200 x 200 pixels. Play around and try other values.
In fact, the best way with all the options shown below, and with all shortcodes, is to play! As another example, let’s change the size of the Google map, and switch it from a static image to a more dynamic version:
[wps-activity-page user_avatar_size="200" map_size="200,200" map_style="dynamic"]
Notice that we can use more than one shortcode option at a time.
You’ll see that the user avatar and map are bigger (by 50 pixels), and the style of the map is one that you can zoom in and out of (but includes the other overlays that perhaps you don’t want). Remember, to the right of the town/city and country, friendship requests will appear, so be sure to send your user a friendship request and check the layout is still ok! If you are using a wider screen layout, then you should be okay.
Don’t worry, with the other shortcodes available, you are not limited to this layout, and can choose what goes where!
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.
|Size of the user’s avatar||(user_avatar_size=”150″)|
|Style of Google Map||(map_style=”static”)|
|Size of Google Map||(map_size=”150,150″)|
|Zoom level of Google Map||(map_zoom=”4″)|
|Label for Town/City||(town_label=”Town/City”)|
|Label for Country||(country_label=”Country”)|
|Friend Requests Label||(requests_label=”Friend Requests”)|