Jump to content

iCrew LITE - fix profile edit page


aktorsyl

Recommended Posts

One issue I picked up with iCrew LITE, when you edit your own profile - you get an error saying the email address is not filled in (while it is), and your custom data fields also don't insert into the database. Both fixes are listed below:

 

In profile_edit.php:

Change:

<input type="text" class="form-control" value="<?php echo $userinfo->email;?>">

to:

<input type="text" name="email" class="form-control" value="<?php echo $userinfo->email;?>">

 

and, further down in the same file,

 

Change:

echo '<input type="text" class=" name="'.$field->fieldname.'" value="'.$field->value.'" />';

to:

echo '<input type="text" name="'.$field->fieldname.'" value="'.$field->value.'" />';

 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...