The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
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 |
#4
|
||||
|
||||
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.
|
#5
|
|||
|
|||
I guess I would need to make my code work in both places. Seems like ajax_complete would work when updating the 'About Me' page, but it didnt
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|