Guide Category

134

Custom Profile Fields

Xfields for user profiles is the custom field manager for User Profile of your website, the Xfields for user profiles you have created will be automatically added to your form when user register or edit profile to your website on both frontpage and from Admin CP using tag {xfields} in registration.tpl and userinfo.tpl, but will not automatically display in your website when display user profile and comments, you must specify the the fields to display in the following files on your theme folder.
dlestarter
Custom Profile Fields Xfields for user profiles is the custom field manager for User Profile of your website, the Xfields for user profiles you have created will be automatically added to your form when user register or edit profile to your website on both frontpage and from Admin CP using tag {xfields} in registration.tpl and userinfo.tpl, but will not automatically display in your website when display user profile and comments, you must specify the the fields to display in the following files on your theme folder.
  • userinfo.tpl
  • comments.tpl
  • searchresults.tpl (under section [searchcomments]...[/searchcomments]
Custom Profile Fields : Manage custom profile fields

The Custom fields will be automatically added to your form when user register to your website in frontpage, Edit User Profile and from admin cp add user and edit user profile using tag {xfields} located in registration.tpl under section [validation].....[/validation]

Lets take a look on Custom Fields and how to work with it

  • For Custom Profile Fields: Login to your DLE Admin CP and click on Custom Profile Fields http://site.com/admin.php?mod=userfields&xfieldsaction=configure
If you have created some of custom fields you will see the list of them there, from here you can edit or remove them at any time you want, to add Custom Field, simply click on "Add New" button, in add field page you will have option to add custom fields as in screenshot
Xfields for user profiles
  • Field name: This field is to specify the name of the custom field, the input must be in 1 word and must be unique, you can use character and number in this field and it must be "latin" characters, this field will be the name of field to add in your theme
  • Short description: to specify any description for your field, this field can be any languages and characters, you can use your own language to let the member know what it is when they add news or articles to your website, and it can be as long as you want but we recommend that you keep it within 255 characters
  • Field type: there are 3 types of fields to select from
    • Input Field : standard input box
    • Text Field : is the full textarea, this field is different from Custom Article Field because it will not withdraw Editor, all editors will be automatically removed
    • List : is the dropdown list choice for you and members to select, currently there is no "multiple choice" available with the field, the list must be specified 1 option or value per line
  • Show in registration page? Yes/No : Radio button to select either you want this field to display when user register in your website
  • Can user edit this field? Yes/No : Radio button to select either you want this field to edited by this field in user profile, if set to "Yes" then the user can edit this field value in user profile, if set to "No" then user will not be able to edit this field, only site administrator can edit this field
  • Is this field private? Yes/No : Radio button to select either you want this field to to display as private or public, if set "Yes" then only administrator and "user" can view this field, no other users can view this field, if set "No" then this field will display to public so any one can see the field value
When you add news/articles you will see the XFields displaying like this:
Custom Profile Fields

Sort XFields

Sort XFields is very easy in newer version of Datalife Engine starting with 10.0 to newest released versions will allow you to drag and drop like in screenshot above, then click "Save the Sort Order" button in the bottom, but on the older versions you have to select to move up and down one by one which sometimes it becomes difficult when you have lot of XFields.
Sort XFields in Datalife Engine

Related Tutorials

Review/Leave Comment

comments powered by Disqus