The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
Why not just toss it inside the birthday cron?
|
#3
|
|||
|
|||
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!
|
#4
|
|||
|
|||
You could use the cron_complete hook.
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|