Profile


Profile Module

The Profile Module sets variables for the application templates that have Generic set as their Page type in the application template detail page.
The information displayed in these templates is the data for the user whose id is provided in the url in the Profile page.

Assigning The Profile Module to a Template

In order for a template to have access to the variables set in this module, the module must be assigned to the template.

To select the Profile Module to be accessed by a template, in Newzulu Platform, go to the Application Media Detail page for that template, and
select Generic in the Page type field. Save the change to the template.

Customizing Meta Data

You can customize supported attributes by creating custom fields in the form templates. This is done by adding meta data fields.
To add meta data form fields, set the 'name' attribute of the form field to 'meta[varname]'.
To access the variable in the <fm:UserList> tag in the form, use the variable {$$user_metadata.user.varname}

Supported Attributes

The supported attributes are for the user whose id is provided in the url in the Profile page.

NameDescription
user_id (Integer) The ID of the user that is being displayed
user_user (String) The username of the user that is being displayed
user_email (String) The email address of the user that is being displayed
user_firstname (String) The user's first name
user_lastname (String) The user's last name
user_city (String) The city that the user lives in
user_gender (String) The user's gender (a one character representation. ie: M)
user_birthdate (Date) The user's date of birth
user_cellphone (String) The user's cell phone number
user_phone (String) The user's phone number
user_website (String) The user's website address
user_occupation (String) The user's occupation
user_address1 (String) The user's address, part 1
user_address2 (String) The user's address, part 2
user_postalcode (String) The user's postal code
user_state (String) The user's state
user_language (String) A two letter representation of the user's preferred language
user_country (String) The country that the user resides in
user_description (String) The description of the user
user_avatar (Integer) The ID of the user's external avatar
user_created (Date/Time) The date and time that the user's account was created
user_lastlogin (Date/Time) The date and time of the user's last session (loggin)
user_newsletter (Integer) The number of newsletters that the user posted. (Ex: 0)
user_geo_latitude (Floating point) The geographical latitude of the user's location
user_geo_longitude (Floating point) The geographical longitude of the user's location
user_vhost (Integer) The id pf the user's project's vhost
user_meta (Array) Meta data is an array of customizable variables, which can be set (added) in the form templates.
Please view the Customizing Meta Data section below to see how meta data can be customied?

Examples

For examples of how to use the variables set in the modules, please see the Application Templates

See Also: