1.6 Compatible: MyAlerts
#41
Hi,

I'm planning to work on this over the next few weeks and hopefully release it before the end of the month.
Reply
#42
Very Great New Euan.
We very need to this. I'm very hopefully this update sooner, Thanks for work.
We waiting for release Happy
Thanks.
Reply
#43
(17-05-2015, 08:07 PM)euan Wrote: Hi,

I'm planning to work on this over the next few weeks and hopefully release it before the end of the month.

yay! Cool
Reply
#44
Grin
Reply
#45
Hey, @euan, can we add alerts en masse using MybbStuff_MyAlerts_AlertManager::addAlert()?
Reply
#46
You can use MybbStuff_MyAlerts_AlertManager::addAlerts() with an array of Alerts to add Happy
Reply
#47
My mistake, I think I phrased that wrong. Let's say I wanted to add an alert for users 1, 2, 3, 4, 5, 6, and 7. Would I have to create 7 alerts and then call addAlert() for each one? Add them to an array and call addAlerts() on that? Or can I set multiple people in $userToSendAlertTo in the MybbStuff_MyAlerts_Entity_Alert constructor?
euan likes this post
Reply
#48
(18-02-2016, 08:24 PM)Seabody Wrote: My mistake, I think I phrased that wrong. Let's say I wanted to add an alert for users 1, 2, 3, 4, 5, 6, and 7. Would I have to create 7 alerts and then call addAlert() for each one? Add them to an array and call addAlerts() on that? Or can I set multiple people in $userToSendAlertTo in the MybbStuff_MyAlerts_Entity_Alert constructor?

Ah, right. You need to create multiple Alert instances and either add them individually or as an array. Only one SQL query will be ran in the end anyway Happy
Reply
#49
Please help me, how do i remove the drop down and let users go direct to the alert.php page when they click on the alert button? i don't wont it to be showing drop down.
Reply
#50
(21-04-2016, 01:26 PM)sero Wrote: Please help me, how do i remove the drop down and let users go direct to the alert.php page when they click on the alert button? i don't wont it to be showing drop down.

Hi,

You can do this quite easily by editing the myalerts_headericon template to remove the following:

PHP Code:
onclick="MyBB.popupWindow('/alerts.php?action=modal&ret_link={$myalerts_return_link}'); return false;" 
Reply