Log in

View Full Version : Adding new profile setting


SJC
05-13-2009, 05:31 PM
How would I add a new profile setting? I wanted it to be for friend codes (nintendo games). Thanks :).

BMR777
05-13-2009, 05:34 PM
You would have to add a new form field to the edit profile page, plus add a new field to the users table in the database for the information and you would also have to edit register.php to reflect the changed users table status.

How familiar are you with writing / editing PHP? I like to help, but making big modifications and writing all the additional code myself is not something I do often.

SJC
05-13-2009, 05:35 PM
I's somewhat good. I can edit, but not very well at writing PHP.

BMR777
05-13-2009, 05:37 PM
When I have more time I'll try and post something in detail on how to do this or to at least get started.

Go to the modifications forum and check out how Bloodrun made the warning system mod. Some of the code there, such as adding the new field to the database and editing register.php will be the same as what you need to do. :)

SJC
05-13-2009, 05:38 PM
Okay thanks :).

Bloodrun
05-13-2009, 08:40 PM
When I have more time I'll try and post something in detail on how to do this or to at least get started.

Go to the modifications forum and check out how Bloodrun made the warning system mod. Some of the code there, such as adding the new field to the database and editing register.php will be the same as what you need to do. :)


=DD
*he said my name* lol

Anyway, yeah it will help. Also don't be afraid to ask me, I can make a quick "mod" to add profile fields/settings/modifications, etc. I have them already on my test site.

SJC
05-13-2009, 08:51 PM
Wpuld you mind helping me add another profile field? :)

Bloodrun
05-13-2009, 08:58 PM
Wpuld you mind helping me add another profile field? :)


Lol not at all. I'll have to help you once I have finished somethings first though.

SJC
05-13-2009, 08:59 PM
Sure, I was so busy today, I barely got anything done :).

Seapyramid
05-13-2009, 10:10 PM
Let me say... You really need to write some code and ideas yourself. I have found personally that Brandon (unlike 99% of other people.. consider your self lucky) will look at PHP you have broken and if not fix it... will give you ideas of how to fix it. HOWEVER, please do not abuse his time... Look at what he tells you & do a Google search... learn before you ask more! Don't burn him out!

SJC
05-14-2009, 06:27 AM
I started it myself but I'm just stuck at getting the data from the database to profile.php. :)