Closed Dark1z closed 4 years ago
Added the first part: 430699b
Thanks π
First part working as it should, BUT I found that the Expire Notification doesn't get trigger when manually removed a subscription from a user.
By the above commit ,
there is a stevotvr.groupsub.notification.type.started
in add_subscription
function,
BUT none for stevotvr.groupsub.notification.type.expired
in end_subscription
function.
Also one more thing ,
I do not know what behavior it should be...
At : https://github.com/stevotvr/phpbb-groupsub/blob/1.2/operator/subscription.php#L373
and at : https://github.com/stevotvr/phpbb-groupsub/blob/1.2/operator/subscription.php#L479
You are removing the previous notifications ,
so should this stevotvr.groupsub.notification.type.started
notification follow similar behavior ???
Best regards π
First part working as it should, BUT I found that the Expire Notification doesn't get trigger when manually removed a subscription from a user.
I'll add a different notification for a cancelled subscription.
Also one more thing , I do not know what behavior it should be... At : https://github.com/stevotvr/phpbb-groupsub/blob/1.2/operator/subscription.php#L373 and at : https://github.com/stevotvr/phpbb-groupsub/blob/1.2/operator/subscription.php#L479 You are removing the previous notifications , so should this
stevotvr.groupsub.notification.type.started
notification follow similar behavior ???
The expired notification replaces the warning notification. The other notifications should stay in the user's notification history,
Ok. Do as you think is best.
Also i have some more improvements, especially on administrator side, to make it more user friendly & useful to admins. Should I make issues for them?
Yeah you should make a new issue if you have an idea.
I changed it so the warning and expire notifications will stay until the subscription is renewed. The notifications must be cleared before they can be sent again for the same item (subscription ID).
Ok.
Thanking you , Best regards π
Added the second part mostly in 3715cc5 I still need to add the setting to toggle it. I might possibly create a custom permission or permissions for accessing different parts of the extension and receiving notifications.
Ok....
Best regards π
I added the setting. I'll get to the custom permissions next.
Nice π
Best regards π
I'll test this & let you know soon.... this will take some time coz it has migration changes & i am a bit busy ...
Thanking you , Best regards π
@stevotvr ,
i just tested this with commit : b7827bf3a80e83f39f11c3195cfec50f84a4aafe & it works perfectly... Including the Migration FIX. Permissions are also awesome. π
Sorry for Delayed Response.
Best regards :+1:
Thanks for taking the time to test this.
There is a need for :
[x]
Group Subscription begin notification
for user [A must & needed, just likeexpired
] :Please allow a few minutes for your payment to be processed and your subscription to be activated.
[x] User's
Group Subscription begin notification
for Admin [Optional] :settings
module in ACP. simpleyes
orno
.Group Subscription begin notification
.I hope you get me & understand it. Also I am hopping that this is not too much for you. If more clarification required then let me know.
Thanking you , Best regards π