User unsubscription

Backend functionalities: user management, course management, reports, certificates, etc.
alfa24
Senior Boarder
Posts: 1985
Joined: Fri Nov 24, 2017 8:45 am

Re: User unsubscription

Post by alfa24 »

You should learn mvc...
Are $permission or $base_link_subscription variables defined in show.php?
Per supporto GRATUITO contattatemi in privato qui
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: User unsubscription

Post by tempuser »

That was an attempt to interpret why the link doesn't show in the Course page.

Any other reason could it be? Is it showing at your end?

Another point, why no notification email is sent upon user subscription? Is this the intended behavior?
alfa24
Senior Boarder
Posts: 1985
Joined: Fri Nov 24, 2017 8:45 am

Re: User unsubscription

Post by alfa24 »

Yes, it is showing.
And my users receive the notification mail as well.
If you need a debugger, you should find one...
Per supporto GRATUITO contattatemi in privato qui
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: User unsubscription

Post by tempuser »

This link didn't show except by eliminating the condition

Code: Select all

(int)$unsubscribe_requests > 0
, meaning that the issue is with this variable, and even when the link shows the total is always (0) requests (which is supposed to be the value of $unsubscribe_requests), although there are unsubscribe requests pending and listed in the unsubscribe requests page itself.

Also I searched the whole code for the variable $unsubscribe_requests and it's not defined anywhere.

I think this is a bug. Otherwise, where is the value of this variable set?
alfa24
Senior Boarder
Posts: 1985
Joined: Fri Nov 24, 2017 8:45 am

Re: User unsubscription

Post by alfa24 »

Solved, you have a PM.
Per supporto GRATUITO contattatemi in privato qui
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: User unsubscription

Post by tempuser »

Nothing in PM.

So what is the issue?
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: User unsubscription

Post by tempuser »

So, where is the bug for not displaying the unsubscribe requests link? What's wrong with the variable $unsubscribe_requests?
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: User unsubscription

Post by tempuser »

I think the problem is in the insertion in database. When the user clicks the 'unsubscribe' link it shows as waiting in course details as if it's a new subscription request, and even when this false subscription request is approved, the message 'unsubscription request waiting approval' still shows on the user side, although the course is accessible and shows as 'you didn't start this course yet'.

The problem is in the unsubscribe process. Where is the bug here?
alfa24
Senior Boarder
Posts: 1985
Joined: Fri Nov 24, 2017 8:45 am

Re: User unsubscription

Post by alfa24 »

Can't replicate.
If the unsubscribe option is set on "moderate", when the user asks for unsubscribe an admin can approve his request and then the user will be correctly unsubscribed and he will not see the course anymore.
Per supporto GRATUITO contattatemi in privato qui
tempuser
FormaLms User
Posts: 86
Joined: Wed Feb 28, 2018 8:26 am

Re: User unsubscription

Post by tempuser »

When a user unsubscribes, he is put BOTH in the unsubscribe requests list, and in the Waiting list (as if he requested subscription). Can you reproduce this?
Post Reply