![]() |
includes/cron/birthday.php hook?
I have a little script that generates a coupon for users celebrating birthdays. I think it's best to convert it to a plug-in, but I don't see a relevant hook to pull everything together. It needs to run for each user, so I think the hook should be within the loop in birthday.php that sends out each e-mail.
Can I just create a custom hook? Pardon me for asking, but I can't find where this is possible. From what I've read, it looks like I have to request a hook at vbulletin.com for inclusion in a later version. Hopefully, I'm wrong! Thanks for your guidance, Jen |
Why not just toss it inside the birthday cron?
|
That's where I have it now, works A-OK, but it's sort of a pain to cut and paste with each and every upgrade. Just looking for a cleaner solution. Thanks! :)
|
You could use the cron_complete hook.
PHP Code:
|
All times are GMT. The time now is 03:26 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:
|