5.1. Users

Top  Previous  Next

already_logged_in.tpl - displays by the 'login' function if a user is logged in the system

Local variables: no

 

errors.tpl - the template to display errors

Local variables:

o

$errors - the associated array where keys include coding of errors and values include additional text data  

 

field_errors.tpl - the template to display errors of form fields completion

Local variables:

o

$errors - the associated array where keys are field captions and values include coding of errors

 

login.tpl - the form of user authorization

Local variables:

o

$errors -the associated array where keys include coding of errors and values include additional text data

 

registration_choose_user_group.tpl - displays the list of all the available groups to choose a  group during registration

Local variables:

o

$user_groups_info - the array contained information about user groups. Each element of this array is the associated array where keys include names of group properties and values include values of these properties

 

registration_success.tpl - displays the message about successful registration

Local variables: no

 

activate_account.tpl - displays errors or the message about successful activation

Local variables:

o

$ERROR -  the associated array where keys are coding of an error and values include information about the error

o

$INFO -  the associated array where keys are coding of a message and values are information about the message

 

change_password.tpl - displays a form of password change and errors

Local variables:

o

$errors -  the associated array where keys are coding of an error and values include information about the error

o

$username -  a name of a user

o

$verification_key -  a key of password change verification

 

password_change_email_successfully_sent.tpl -  displays the message that 'Your password has been changed' notification email was sent successfully

Local variables: no

 

password_recovery.tpl - displays the form to send user a letter about password change and error

Local variables:

o

$errors -  the associated array where keys are coding of an error and values include information about the error

o

$username -  a name of a user

 

successful_password_change.tpl - displays the message about successful password change

Local variables: no

 

edit_profile.tpl -  the form to edit profile

Local variables:

o

$form_fields -  the array contained information about form fields. Each element of this array is the associated array where keys include names of group properties and values include values of these properties

o

$errors -   the associated array where keys are coding of an error and values include information about the error

o

form_is_submitted -  shows whether the form is submitted

 

 

user_details_with_all_ads.tpl -  the contact user form template.

Local variables:

o

$user.[field_id] - a user profile field. For example, to display user's First Name it is $user.FirstName. You can see all available user profile fields in Admin Panel -> User Management -> User Groups -> edit a group -> Edit User Profile Fields.

Used functions:

o

{include file="user_details.tpl"} - includes file 'user_details.tpl' to display user details.

o

{module name="classifieds" function="search_results" action="search" QUERY_STRING="username[equal]="|cat:$user.username} - executes function 'search_results' of the module 'classifieds' to display all the user's listings.

 

contact_form.tpl -  the contact user form template.

Local variables:

o

$captcha - the captcha object. It's used to know is captcha enabled for this form or not.

o

$field_errors - the array of where keys are coding of errors and values are the additional information

o

$form_fields - the array of the form fields to display in the search form. Each element of the array contains data for the field such as 'id', 'caption' and 'is_required'.

Used functions:

o

{include file='field_errors.tpl' errors=$field_errors} - includes file 'field_errors.tpl' to display field errors if there is any error.

 

user_details.tpl -  displays user details from profile.

Local variables:

o

$user.[field_id] - a user profile field. For example, to display user's First Name it is $user.FirstName. You can see all available user profile fields in Admin Panel -> User Management -> User Groups -> edit a group -> Edit User Profile Fields.

 

 

 

user_notifications.tpl -  the form of notification management  (a user ticks off necessary notifications)

Local variables:

o

$error - contains error if a user is not authorized

o

$notifications_settings -  contains information about user notifications