FoxSecrets Well-known member Licensed customer Apr 12, 2026 #1 How does Alert opt-out is generated by the XF? I see some from my addon in account/preferences, but I have't done it.
How does Alert opt-out is generated by the XF? I see some from my addon in account/preferences, but I have't done it.
QuackieMackie Active member Licensed customer Yesterday at 1:27 AM #2 FoxSecrets said: How does Alert opt-out is generated by the XF? I see some from my addon in account/preferences, but I have't done it. Click to expand... It's been a while since I've worked with alerts, but from a quick check the Alert/AbstractHandler.php is how you define the alerts, then you need a content type to register that handler, then you need to create a template for that alert to user. Here are all the related files in one I created: Alert Handler (UserPetsHandler.php) Content Type (syl_userpet-alert_handler_class.json) Alert Template (alert_syl_userpet_levelup.html)
FoxSecrets said: How does Alert opt-out is generated by the XF? I see some from my addon in account/preferences, but I have't done it. Click to expand... It's been a while since I've worked with alerts, but from a quick check the Alert/AbstractHandler.php is how you define the alerts, then you need a content type to register that handler, then you need to create a template for that alert to user. Here are all the related files in one I created: Alert Handler (UserPetsHandler.php) Content Type (syl_userpet-alert_handler_class.json) Alert Template (alert_syl_userpet_levelup.html)