Topic: profile.php modificaton

Hi,
I tried to modify profile.php sothat the members can only change their passwords. In other words they don't see any link to other sections like display, privacy or.... I tried to delete some parts inside profile.php but i did get error message.I hope somebody will help me to modify profile.php or in creating another page which holds only a from with action=chane_pass.

2

Re: profile.php modificaton

Post what you have changed so far and what errors you got.

profile.php is too long to look through right now...

3 (edited by erinther 2006-01-14 19:50)

Re: profile.php modificaton

Hi again. this is the form I want to use in a my-own-defined page sothat users can change their passwords:

<form id="change_pass" method="post" action="profile.php?action=change_pass&id=<?php echo $id ?>" onsubmit="return process_form(this)">
<div class="inform">
<input type="hidden" name="form_sent" value="1" />
<fieldset>
<legend><?php echo $lang_profile['Change pass legend'] ?></legend>
<?php if ($pun_user['g_id'] > PUN_MOD): ?>   
<label><strong><?php echo $lang_profile['Old pass'] ?></strong><br />
<input type="password" name="req_old_password" size="16" maxlength="16" /><br /></label>
<?php endif; ?>                       
<label class="conl"><strong><?php echo $lang_profile['New pass'] ?></strong><br />
<input type="password" name="req_new_password1" size="16" maxlength="16" /><br /></label>
<label class="conl"><strong><?php echo $lang_profile['Confirm new pass'] ?></strong><br />
<input type="password" name="req_new_password2" size="16" maxlength="16" /><br /></label>
</fieldset>
<input type="submit" name="update" value="<?php echo $lang_common['Submit'] ?>" />
</form>
But it does not works. What is it missing?