Tutorial with images: Creating a profile field

Hi there,

I see people asking this a lot so I hope this will help. This is for new users and users who want to know.

LOGIN TO YOUR D7 ADMIN

Go to Builders -> Profile Fields

See picture below

Drag the NEW_ITEM block from Inactive Items to Active Items.

When NEW_ITEM is active, click it. You will see

System Name: Add a name for your new field for instance i'll use Instruments. Use no spaces for your system name. If your system name is I am here for, write it as Iamherefor.

Caption: Instruments I play

Description: What instruments do you play?

Type: You choose if the field is a text submit or selector. A few options here. The Advanced tab will change according to what you choose here. This tutorial shows text or selector options

ADVANCED TAB WHEN TEXT IS CHOSEN AT GENERAL TAB

Mandatory: Check box if your field is required to be filled in

Minimum value: Minimum characters to be used. Type a number for instance 30. Leave blank if not required.

Maximum value: Maximum characters to be used. Type a number for instance 300. Leave blank if not required.

Unique: Check box if the answer(s) in the field shoul be unique. If not, leave it unchecked.

Check: You can add code here to check field requirements when a person fills in the field. Leave blank if you don't know how. I don't lol. The default check will do.

Default value: Leave blank

ADVANCED TAB WHEN SELECTOR IS CHOSEN AT GENERAL TAB

Selector control: 2 options. Dropdown or radio buttons. Dropdown will show all choices in a dropdown list. Lots of dropdown here lol. Radio buttons show all choices but with little round checkbuttons.

Dropdown

Radio buttons

Mandatory: Check box if your field is required to be filled in

Possible values: Type all choices here. All choices on a separate line like so

Guitar

Bass

Drum

Used lang. key: Don't change

Default value: Leave blank or add any of your choices here. For instance, ill add Guitar as default. As you can see at Dropdown /Radio buttons, Guitar shows selected/checked.

MESSAGES TAB WHEN TEXT IS SELECTED AT GENERAL

Mandatory error message: Type a warning message if you checked the Mandatory box at Advanced tab. For instance. This field is required. Please fill in the field. Leave blank if Mandatory box is unchecked.

Minimum exceed error message: Type a warning message if you added a number here. For instance. You need to type more than 30 characters. Leave blank if you did not type anything at Minimum value at the Advanced tab.

Maximum exceed error message: Type a warning message if you added a number here. For instance. You need to type less than 300 characters. Leave blank if you did not type anything at Maximum value at the Advanced tab.

Non-unique error message: Type a warning message if you checked the Unique box at Advanced tab. For instance. This answer is already used. Leave blank if Unique box is unchecked.

Check error message: Type a warning message here if you added your own code check at Advanced tab. Leave blank if you added no code.

MESSAGES TAB WHEN SELECTOR IS SELECTED AT GENERAL

Mandatory error message: Type a warning message if you checked the Mandatory box at Advanced tab. For instance. This field is required. Please fill in the field. Leave blank if Mandatory box is unchecked.

The last thing to do

Match with field: Choose NEW ITEM. The field name will change to what you named it after you click Save.

Match percent: I mostly type 100 here. Used for search results when a member is searching for instance all members playing Guiter.

Click Save.

If you go to other Profile Fields main tabs like Edit Profile, View Profile or Search Profiles, you will see your newly created field block in the Inactive Items section. Drag it to Active Items where you want it.

If you can not move the block go away from Profile Fields then go back to Profile Fields. It should work now.

You can also use Predefined values at the Advanced tab when using selector but i'll make another tutorial for Predefined values later.

You might have to add language strings. Tutorial coming

Quote · 31 Mar 2010

Thank you for this!

Quote · 13 Apr 2010

I did that (or thought I did that) just like in this tutorial to create a field called ROLE, to specify your role in the music industry (ie singer, guitarist etc) but now I can't log in as admin and no-one else can log in either. I got an error in my mailbox saying:

Mysql error: Duplicate column name 'ROLE'

Found error in the file 'mysite.com/inc/classes/BxDolPFM.php' at line 1240.

Called 'db_res' function with erroneous argument #0.   ...(and a lot more)


My site was just starting to be what I wanted it to be. Now it's essentially 'frozen'. Any help would be greatly appreciated. I'm a newbie for sure.

Thank you.

Quote · 25 Apr 2010

I did that (or thought I did that) just like in this tutorial to create a field called ROLE, to specify your role in the music industry (ie singer, guitarist etc) but now I can't log in as admin and no-one else can log in either. I got an error in my mailbox saying:

Mysql error: Duplicate column name 'ROLE'

Found error in the file 'mysite.com/inc/classes/BxDolPFM.php' at line 1240.

Called 'db_res' function with erroneous argument #0.   ...(and a lot more)


My site was just starting to be what I wanted it to be. Now it's essentially 'frozen'. Any help would be greatly appreciated. I'm a newbie for sure.

Thank you.

If i'm correct Role is already used in the database. Are you using a mod from modzzz? He has a mod which already uses Role. I think it's his auto friend mod. Are you using that?

Quote · 25 Apr 2010

There are 3 names that cannot be used for profile fields. Role is one of them. At thats what happens when you use it. You can no longer log in.

The 3 reserved nameds are.

Password
Salt
Role

This is a bug, The system is suppose to check to make sure you did not try to use one of those names. There is a ticket to correct that.

https://www.deanbassett.com
Quote · 25 Apr 2010

Thanks guys. I don't know how to fix the problem, but I appreciate at least understanding the problem a little more. Anton has agreed to help me out on this, but I'll do my best to not muck up again :) (I bet I will though - all part of the process).

Knowing stuff is cool, but learning stuff is a pain.

Quote · 26 Apr 2010

I see in this profile fields that some of them are linked to a predefined list. I tried to do this myself but it didn't work. How do I add a predefined list to a profile field?????

Quote · 6 Jul 2010

For help on linking predefined lists, as well as setting a null default value, please see my posts in these threads:

http://www.boonex.com/unity/forums/topic/Need-help-linking-predefined-lists.htm

http://www.boonex.com/unity/forums/topic/How-to-Default-Null-Drop-list-value-.htm

Nulling the default is an issue Boonex has yet to deal with, and it is important for many fields where someone may not want to leave a default value as a choice.  Admittedly, my solution is only a workaround and has the limitation I note.  But it does work and is probably something you would want to know how to do.

Hope this helps.

Someday, Someway.
Quote · 6 Jul 2010

im creating this but i dont see my

Selector control: options. for  Dropdown or radio buttons


any idea why

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 9 Jul 2010

im creating this but i dont see my

Selector control: options. for  Dropdown or radio buttons


any idea why

You need to enable it on the general tab first

/DM

Dolphin - Ajax Masturbation
Quote · 9 Jul 2010

Good toot BTW HD

/DM

Dolphin - Ajax Masturbation
Quote · 9 Jul 2010

How I can enable the general tab first

Thank's

im creating this but i dont see my

Selector control: options. for  Dropdown or radio buttons


any idea why

You need to enable it on the general tab first

/DM

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 9 Jul 2010

Nice is working fine

how I can add female and male

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 11 Jul 2010

Nice is working fine

how I can add female and male

You want them to either select female or male?

At the advanced tab add this in Possible values: !#Sex (is from predifined list)

or type

female and male on separate lines in Possible values

Save

If you want it to be visible only to female or only male, you need modification.

Quote · 11 Jul 2010

Thank's a lot 4 sharing I will try this later

can wait to see who is going to be the champion of the 2010 world cup sudafrica lol

Nice is working fine

how I can add female and male

You want them to either select female or male?

At the advanced tab add this in Possible values: !#Sex (is from predifined list)

or type

female and male on separate lines in Possible values

Save

If you want it to be visible only to female or only male, you need modification.

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 11 Jul 2010

Hi,

My Filds Buider not save the changes.

I put the new name of the fields and save, but after close the changes not apear. All still like 'new_item'.

In other fileds, too, if i set some change and save, not changes after.

somebody help me?

Quote · 25 Oct 2010

Wow I am  so thankful to you for this.

I really needed to know this.

Blessings on you.

KenneyWhamm

Quote · 15 Dec 2010

has no place as a field "hidden" value of a string $ php?
I have very, very appropriate

Quote · 1 Feb 2011

hello, How to create a field that has two types for example I want to create a  field with the name language  for the user choose the language in the case that not choose any proposed language the user can choose the option "Other" to write the language 

NOTE: I attached a imagen with the field Other

any idea to try please?

Quote · 5 Mar 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.