Topic: How the profile is changed(solved)
Hi all. My question is how is a user profile changed? More specifically, where is the code that submits the user info to the database? I looked in the profile.php file, but it is a large file to go through. The reson I need to edit it is because I am displaying the forum in a page that already declared the header, so I need to make some small adjustments.
Also, I have another related question. Lets say that I wanted to move some of the settings to a different 'section' of the user's profile for the user to edit. I know that the form is different, and that setting would not be changed unless some of the post code is changed. How/where would I do this?
Thanks for any help!
EDIT1:
Okay. I got the setting moved and it works, but only partcially. I copied the code for the email setting, but it only seems to work one way. When I set it to display the email address, it changes it fine, but when I set it to not display it, it doesn't change. Here is the code I copied into the essentials part of the switch statement:
$form['email_setting'] = intval($form['email_setting']);
if ($form['email_setting'] < 0 && $form['email_setting'] > 2) $form['email_setting'] = 1;
Any ideas?