Author Archives: admin

Set Badge To User

set_badge_to_user($user_id, $badge_url, $badge_title)

This function let’s you assign badges to your users.

Options:

OPTIONS DEFAULT ALTERNATIVES
user_id any user is should passed as parameter none
badge_url a valid URL for your badge file empty
badge_title any valid text for the title of your bage cannot be empty

Example:

			
global $xoouserultra;
			

$user_id = 11;	//use your custom user id.
$badge_url = 'http://usersultra.com/uultra-testing/wp-content/plugins/users-ultra-pro/addons/badges/badges/trophy.png';
$badge_title = 'Pro Member';			
$xoouserultra->api->set_badge_to_user($user_id, $badge_url, $badge_title);
			

Set User Meta Data

set_custom_meta_info($user_id, $meta, $value)

This function let’s you update the user’s meta data.

Options:

OPTIONS DEFAULT ALTERNATIVES
user_id any user is should passed as parameter none
meta any valid user’s meta field empty
value any information you would like to set empty

Example:

			
global $xoouserultra;
			
/
$user_id = 11;	//use your custom user id.
			
$xoouserultra->api->set_custom_meta_info($user_id, 'description', "My custom description for this user goes here.");
			

How To Create a Custom Registration Form?

Users Ultra Pro allows you to create different registration forms and profile fields that can be used to register your different users. For example: Agents, Models etc etc.

Click on Forms Ultra Link:

Sin título

Fill out the required fields and click “confirm” :

2

Using custom form on registration shortcode:

[usersultra_registration custom_form='lgic8']

Integrating Users Ultra Pro With bbPress

Integrating Users Ultra with bbPress need a little bit of theme tweaks. So, the very first thing you have to do is  tweaking your bbPress theme.

Hopefully you are using a child theme so that the folder doesn’t get overridden when you update the theme. bbPress will look for the template files in the theme first before using the default templates.

There are three files you would need to tweak.  loop-single-forum.php, loop-single-reply.php, loop-single-topic.php. You can find them within the bbPress templates.

CLICK HERE TO DOWNLOAD THE SAMPLE FILES.

Please note: These are the default template files. You will have to tweak your own files.

Once you’ve updated the theme’s files you will have to activate the bbPress feature within the UU Dashboard.

1

The reason you have to activate the bbPress compatibility is because you can have the optional items listed in Users Ultra Settings rather than having to go into the template files to make changes if you want to have other options included in the integration.

The integration should look like this screenshot. Please note: This is just an example and the look will depends on your CSS.

2

How To Create a Profile Field?

Creating a custom profile field

Go to UU Dashboard – Fields.

1

Click on the “Add new field” button.

Make sure you assign a unique name for the new field. This mean that “New custom meta key” field should be unique. For example: my_new_custom_field.

Type: You can create either fields or separators:

Editor/Input Tex: Here you have to specify what type of HTML element you would like to create.

2

Here there is a list of the possible “Input Type” fields you could create with Users Ultra.

0

You may assign a “icon” for the new field if you wish.

3

Click on the “Submit New Field” Button. That’s it. The new field has been created. It will appear at the top of the fields list.

Now that the new field has been create you have to drag it to the desired position.

4

If you wish to display this field in the registration form, please make sure that “Show on Registration form” has been set to “Yes”

 

How To Activate & Deactivate Modules

Removing or adding widgets in the user’s profile is really easy and it can be done by using the drag&drop widgets customizing tool which is in the Widgets tab.

Click on Appearance & Customization tab – Widgets.
1

Then you will see the following screen:

2

Just drag&drop the widgets between the two sections. If you wish to disable a widget just drag it to the Unavailable Widgets Section. If you wish to activate it again just drag it and drop it in the Available Widgets Section.

Custom Profile Fields

[usersultra_user_custom_meta_info]

This Shortcode displays custom user’s meta information. You can use this shortcode to display custom fields from the users.

Options:

OPTIONS DEFAULT ALTERNATIVES
user_id Current Logged in User ID Any user ID
fields_list NULL any meta field separated by commas. Examples: first_name:First Name
within_widget no “yes” or “no”. Set it to “yes” when using this shortcode within the profile widgets.
template table table, block, simple

Special meta keys:
user_nicename
user_email
user_registered
display_name
first_name
last_name
ID

Example:

			
[usersultra_user_custom_meta_info user_id='157' fields_list='first_name:First Name, last_name:Last Name']

Example 2:

Within a widdget. This example can be used in the User’s Widgets administrator.

[usersultra_user_custom_meta_info fields_list='first_name:First Name,last_name: Last Name, facebook:Facebook, twitter:Twitter, googleplus:Google' within_widget='yes']