Edit Options is the wrong place, I believe.
I'm looking for profile fields as found, for example at profile.php?do=editprofile. I haven't gotten there yet as I'm currently plowing through the (clasically undocumented) Member.php, where one can ALSO edit one's own profile information. I'm guessing that I'll again end up at the point where there's a hook in one place but not the other, making the functionality seem buggy to the poor user... In Member.php I didn't really see the place to insert the magic - looking at the template next. Will look at profile.php next.
Thanks.
--------------- Added [DATE]1231436652[/DATE] at [TIME]1231436652[/TIME] ---------------
Yes... reaching that conclusion. I don't see the way to cover the functionality in Member.php, but in Profile.php, there's hope. There's a hook pair which seems promising: 'profile_edit_start' and a hook 'profile_updateprofile'.
I've been in Software engineering for mumbledymumbledy years but up until now have had no experience in PHP and its execution environment. Can I copy away the $userdata in the first hook into a variable I can call my own (e.g.: $myuserdata) at the first hook and have it be available at the second...? I'm guessing that the answer is no as it would have to be maintained across subsequent calls to the web server. Is that something one could *somehow* copy into the session and retrieve?
Woe is me...
|