Jump to content

auto generating fields


necer_cheniki

Recommended Posts

You might get a response if you gave us a little more info.  Are you using a forum software like SMF, PHPbb, IPB, etc?  If you are then you can most likely download a modification for it that will allow you to add custom profile fields.

 

No, I want to develop this feature for may website.

All you have to do is create a form allowing you to choose a name, etc for your new field.  You might want to have options to choose from to set the type of field such as image, text, link, etc.  After you have a form, create a mysql table where you can save the information from the form.  Once you have that,  all you need to add is a database loop to your edit profile page that loops through the results of the custom profile fields.  Also, make sure when you're creating the custom fields that you have the script alter your members table accordingly.

All you have to do is create a form allowing you to choose a name, etc for your new field.  You might want to have options to choose from to set the type of field such as image, text, link, etc.  After you have a form, create a mysql table where you can save the information from the form.  Once you have that,  all you need to add is a database loop to your edit profile page that loops through the results of the custom profile fields.  Also, make sure when you're creating the custom fields that you have the script alter your members table accordingly.

 

Thank you.

So using ALTER instruction, I add new fields, right ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.