I found a fix for this... if you change name="password.confirm" to name="passwordconfirm" on the last password txt field it seem to fix the problem.
I still cannot get anything else to update though. or rather, I can add stuff to blank fields and it will save. but when I try to clear out the blank field or replace it with something else it will not save. I have to put a blank space in, in order for it to "remove" it.
I found out that WebLoginPE is indeed supposed to work like this...
Did you find anything about the profile update ? The password update work, and the profile update also work but only if I replace with text. If I leave blank a field it is just ignored.
Thanks
No.
This is just the way WebLoginPE works to make sure that data you have not provided in a form does not get overwritten.
WebLoginPE uses an array of all the columns in the default attributes table, then loops $_POST to see if those columns are in there. if they ARE NOT, then they are not posted to the db. so if you previously filled out the zipcode, then set it to ""(blank), well that value will not end up in the $_POST Array and thus not end up being saved into the database.
Using the "Zip code" example:
Let’s say you have a userprofile form where you DO NOT let them edit the zip code, so you do not provide a text input named "zip". If WebLoginPE did not work the way it does, the zip column in the database would be set to blank everytime the user saved their profile since no value was passed for it. That is why I had it loop through and get rid of fields with no value before saving to the db.
You can change the value to whatever you want, just not (Blank). This is simple data protection 101.
-sD-
Dr. Scotty Delicious, DFPA
<!--[if IE]> <script type="text/javascript" src="assets/snippets/webloginpe/js/ieButtonFix.js"></script> <![endif]-->
[!WebLoginPE? &type=`simple` ®isterTpl=`registerTpl` ®Type=`verify`!]
<input type="hidden" name="service" value="register" /> <button type="submit">Register</button>
<fieldset id="wlpeUserProfileButtons"> <input type="submit" id="wlpeUserProfileButtons" name="service" value="saveprofile"/> <input type="submit" id="wlpeProfileDoneButton" name="service" value="cancel"/> <input type="submit" id="wlpeProfileLogoutButton" name="service" value="logout"/> <input type="submit" id="wlpeProfileDeleteButton" name="service" value="deleteprofile"/> </fieldset>
Array ( [q] => simple [serviceButtonValue] => profile [service] => profile [WebLoginPE] => 96c7b01c8aa73837972478aedd41a6bc|323030efb5036e6d91b7c8465c8f91bb [webfxtab_resourcesPane] => 2 [SN49ece1a413e53] => ffed8f5d62347a009cd58b881a43c02f [QE_linksShown] => 1 )
<input type="hidden" name="service" value="saveprofile" /> <button type="submit">Save</button>
<input type="hidden" name="service" value="saveprofile" /> <button type="submit">Save</button>
[!WebLoginPE? &type=`simple` &profileTpl=`profileTpl`!]
<input type="hidden" name="userid" value="[+request.userid+]" />
<input type="hidden" name="userid" value="" />
This works: [!WebLoginPE? &type=`profile` !]
This does NOT work: [!WebLoginPE? &type=`simple`!]