This topic contains 1 reply, has 1 voice. Last updated by CK MacLeod 3 years, 2 months ago.
Topic Author | Topic |
---|---|
Posted: Tuesday Oct 15th, 2013 at 4:53 pm #60383 | |
I’ve managed to add elements to the Profile Editing form in a way that works smoothly with my site, which employs a relatively long list of custom profile fields – long enough to make the appearance of the Save All Changes button at the end of the form somewhat inconvenient for people who are making changes at the top of the form – either to custom profile fields or to new user avatar upload/preview function. In order to make the whole think more user-friendly I thought it would be nice to add an additional copy of the Save All Changes button. It’s easy to copy the required code from around http://www.s2member.com/codex/stable/source/s2member/includes/classes/profile-in.inc.php/#src_doc_line_259. With no modification, it will save all changes from the new location, inserted using the same hook/function combination that previously made adding the user-avatar-function to the form possible.
I’ve looked in the jquery files that are invoked on the page, and couldn’t find the behavior. I’ve also tried hacking away at the button code in case it contained the jquery selector, but that didn’t work. Any simple answer for this problem. Correction: I’m not sure what caused the behavior I originally described. After some seemingly unrelated code changes, I am getting the same behavior for all “Save All Changes” actions, either on the new button or the old, of returning to the top of the page, presumably a default page re-load action. I’ll look for myself for creating a more desirable re-direct to the prior spot.
|