-
☆ A M B ☆
- 24,524 Posts
This is an auto-generated support/comment thread for
Web Edit Profile Snippet.
Use this forum to post any comments about this addition or any questions you have regarding its use.
Brief Description:
Allow web users to edit their profile
Susan it’s a great needed snippet! I hope will be added in next relase
tested......but I have little issue:
If you leave blank the password and new password fields, when you change another field , after saving the snippets overwrite the password value with a blank value

and you can only login with username and
nothing in the password input field
-
☆ A M B ☆
- 24,524 Posts
Hm... I thought I dealt with the empty($_POST[’password’]) case, but I guess not! It’s a pretty simple-minded bit of code, so it shouldn’t be difficult to figure out what I missed.
Ditto there, great addition !
A must have indeed...
I’ll have a use for this in one of my upcoming MODx websites, I’ll give feedbacks soon
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
☆ A M B ☆
- 24,524 Posts
Hah. I see where I got too clever for my own good. Line 86
$rs2 = $modx->db->update("password = '".md5($password)."'",$modx->getFullTableName('web_users'),"id = ".$uid);
should be
if(!empty($_POST['password'])) {
$rs2 = $modx->db->update("password = '".md5($password)."'",$modx->getFullTableName('web_users'),"id = ".$uid);
}
Originally my updates were done differently and the empty case was checked, but when I switched to the pretty db class function I forgot the check!
The corrected webeditprofile.inc.php file is attached here...
:) Hi Susan, i’ve tested your latest version :
Your update fix the password issue but create a new little issue:
after saving display an alert windows with this message ’’Unable to update profile at this time!’’
the forms will be cleaned (all fields are empty), but the new value submitted.
If you exit and come back in the user page all fields are ok
-
☆ A M B ☆
- 24,524 Posts
Ok, I know why it’s doing that, but it’s late and I’m too tired; I’ll fix it in the morning!
-
☆ A M B ☆
- 24,524 Posts
Updated to version 1.2, with improved password change handling. Now only send email if password has been changed.
Great work Susan

works great now .
some questions/suggestions for next release
- a
n infotpl to display a User Info page (only to display and not to change info) (see Marc’s WebUserInfo Beta http://modxcms.com/forums/index.php/topic,6910.0.html)
- allow to change/display Gender, Comment and User Photo in the user profile
again great work Susan
Quote from: banzai at Sep 26, 2006, 05:28 AM
.....
- an infotpl to display a User Info page (only to display and not to change info)
......
Sorry Susan for this stupid request

I only need a new chunck without input form