![]() |
Profile field save hook?
I am creating a product that adds a new profile field. When the user changes this value, I would like to run some custom PHP code. Can anyone tell me the the name of the hook to do this?
Bonus question: For my product, I want to add a Scheduled Task, is the only way to do that is by running a SQL INSERT or is there a more graceful way? |
Try the hook "profile_updateprofile" to answer your first question.
For running schedules tasks, you can attach code to be run to your cleanup tasks...examine the hooks beginning with "cron_" depending on how often you want the code to be executed. |
Quote:
if ($_POST['do'] == 'profile_updateprofile') { .... } However, there is no "hook" statements in here. UPDATE I think I need to use "ajax_complete" hook...trying it now |
Yes, the hook I cited only works if the user is updating their profile from the settings page, not from their "About Me" on their profile page.
|
Quote:
|
All times are GMT. The time now is 12:52 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|