So there is no function to reload data?
updateMemberData is supposed to update the row, and it should then kick in on the next page load (if you want it to be active in the current page load, update $user_info yourself)
How does it work when I change my forum profile in the default profile form in smf? It sends data, executes the update and then reloads the page?
Well, only email and password fields at the moment... So I'll update the array in the update script. It really isn't a problem, I only wanted to know if there is a way to do it using existing functions. :)
Note that not everything in $user_info is taken directly from the members table, so it would be interesting to know exactly what you're trying to update and how.
Ok, happy to read this. :)
As for asking questions, for the most part they will be relevant to Wedge as well, so there's no real harm in asking, and it has been known to prompt me to fix things I'd known were broken but never got around to fixing.
I'll do my best in smf-bugfinding and I'll pass you informations! :eheh:
Right. I forgot that admins can change user profiles of other users! :whistle:
(The reason it doesn't update the current member is because it's a general purpose function for addressing any and all members, not just the current user.)
That's the point. For example: I don't require that smf has a function to update members data. There can be tons of simple "workarounds" for doing that. But a simple answer like yours can really route a user in the right direction, without wasting time in looking at something that simple doesn't exist... :)
(I should note it doesn't bother me that people are asking questions. What bothers me is that I can still answer questions for SMF, and still do a better job of it than the bulk of their support team *put together*. That's not me blowing my own trumpet, it's the fact that I'm not going to fob you off with some 'I'll reply if and when I know the answer' crap. If you don't know the answer, fine. But stop fucking about with telling people how you don't know the answer, and go and find out. I'm sure more people will appreciate having an answer that's useful after 10 minutes instead of being fobbed off after 5. Here endeth the rant -_-)
Thank you. ;)