necer_cheniki Posted April 21, 2011 Share Posted April 21, 2011 Hello, I want to create a custom user profile, by allowing admin to add them from admin panel then users can fill their values. How can I create such system ? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/234339-auto-generating-fields/ Share on other sites More sharing options...
necer_cheniki Posted April 24, 2011 Author Share Posted April 24, 2011 Hi, Any help here ? Quote Link to comment https://forums.phpfreaks.com/topic/234339-auto-generating-fields/#findComment-1205484 Share on other sites More sharing options...
ShoeLace1291 Posted April 24, 2011 Share Posted April 24, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/234339-auto-generating-fields/#findComment-1205492 Share on other sites More sharing options...
spiderwell Posted April 24, 2011 Share Posted April 24, 2011 php and mysql = pretty much anything you want from a website Quote Link to comment https://forums.phpfreaks.com/topic/234339-auto-generating-fields/#findComment-1205494 Share on other sites More sharing options...
necer_cheniki Posted April 24, 2011 Author Share Posted April 24, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/234339-auto-generating-fields/#findComment-1205496 Share on other sites More sharing options...
necer_cheniki Posted April 24, 2011 Author Share Posted April 24, 2011 php and mysql = pretty much anything you want from a website I know, I searching the the suitable method to do it. Quote Link to comment https://forums.phpfreaks.com/topic/234339-auto-generating-fields/#findComment-1205497 Share on other sites More sharing options...
ShoeLace1291 Posted April 24, 2011 Share Posted April 24, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/234339-auto-generating-fields/#findComment-1205498 Share on other sites More sharing options...
necer_cheniki Posted April 24, 2011 Author Share Posted April 24, 2011 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 ? Quote Link to comment https://forums.phpfreaks.com/topic/234339-auto-generating-fields/#findComment-1205503 Share on other sites More sharing options...
spiderwell Posted April 24, 2011 Share Posted April 24, 2011 yes ALTER will allow you to do that Quote Link to comment https://forums.phpfreaks.com/topic/234339-auto-generating-fields/#findComment-1205513 Share on other sites More sharing options...
necer_cheniki Posted April 24, 2011 Author Share Posted April 24, 2011 Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/234339-auto-generating-fields/#findComment-1205521 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.