Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: todd clare - joulukuu 07, 2005, 01:22:04 IP

Otsikko: need to run special code when profile changes
Kirjoitti: todd clare - joulukuu 07, 2005, 01:22:04 IP
When anyone (user, admin, etc) changes their profile, speficially the Location field, I'd like to run some specialized PHP code to write some extra data to an external table.

Can anyone tell me where i can stick the code?  I'm fine in PHP, but the SMF code is so (incredible!) flexible that I can't figure out the right place to put it.

My process would be something like this:
- User / Admin / ? edits a profile and hits the save button
- The forum code recieves the changes and processes them
- My code fires, checks if the location has changed, and does my bit o' magic...

Can anyone point me in the right direction?