Access after membership expired

  • Ben
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 5 months ago #35849 by Ben
Access after membership expired was created by Ben
Hi, I created a test account which has run out but i still seem to be able to log in and access premium content (premium content is set to registered)

Any ideas how i can avoid this please - its probably tied up with the other issues im having i think, Ben

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 5 months ago #35850 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Access after membership expired
There are two different solutions in this case :

1. Use Joomla Groups plugin :

- Create a new Joomla Group called Subscriber.

- Create a new access level called Subscriber, choose Subscriber group for this access level.

- Go to Extensions -> Plugins Manager, find and publish the OS Membership - Joomla groups plugin.

- Edit the subscription plan, set up it (in the Joomla group settings tab) so that when users subscribe to the plan, he will be assigned to Subscriber group, thus he will have Subscriber access level.

- Now for the articles which you want to restrict, simply edit it, set Access to "Subscriber".

By doing that, only users have active subscription can see and access to these restricted articles.

The downside of this approach is that these articles will completely invisible from none-subscriber. I will explain the other solution (which might be better depend on your requirement) in the next post.

Tuan

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 5 months ago #35851 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Access after membership expired
The second solution is used Joomla URLs access plugin. Basically, this plugin allows you to restrict access to any pages on your site.

The steps are :

1. Go to Extensions -> Plugins manager, find and publish the two plugins below :

- OS Membership - Urls plugin

- OS Membership URLs

2. Now, edit the subscription plan. You will see a new tab called URL access settings. You can type in all the urls you want to restrict (in this case, they are the urls of the articles) into that tab, each url in one line (please don't use www in the url).

3. By doing that, when users view the list of articles, if they click on the link to view article, if they don't have an active subscription, he will be redirected to page ask him to subscribe to plans before they can view.

I think the benefit of this approach is that all the articles will be seen by all users but user can view the detail of the article if he has an active subscription.

Hope my explanation above are clear to you !

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Ben
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 5 months ago #35853 by Ben
Replied by Ben on topic Re: Access after membership expired
Hi Tuan, i think i will use option 1 as i am constantly adding content and it could be adding work to keep having to copy urls.

Can i check please, in joomla groups plugin i set access to 'subscriber'?- i have created a new group (by the way, what parent does this group has - it defaulted to public?) and i created a new access level - subscriber

Does that sound right?

Thanks, Ben

Please Log in or Create an account to join the conversation.

  • Ben
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 5 months ago #35855 by Ben
Replied by Ben on topic Re: Access after membership expired
Hi, ive obviously missed something as i have set my articles to subscriber and changed my test account to subscriber and still dont have permission?

The menu items havent disappeared either

Plz tell me what i am doing wrong. Thanks, Ben

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 5 months ago #35947 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Access after membership expired
Hi Ben

Simply submit a support ticket sending me admin account of your site so that I can make a sample setup for you. I think it will be easier to understand that explain directly here.

Tuan

Please Log in or Create an account to join the conversation.

  • Ben
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 5 months ago #35950 by Ben
Replied by Ben on topic Re: Access after membership expired
Hi Tuan, it seems to be mostly working now and the only people who can view restricted content is 'subscribers' group. the register redirect is capturing those who try and register with my joomla regisration button, so thats solved as well.

How do i know for sure that when the subscription ends they will no longer have access? What setting do i check please?

The only thing that has changed is the code i previously used to restrict the bottom half of the content of an article for a public view still works as expected for public view, but is still restricting 'subscribers' from viewing the bottom half when they are logged in.

I suspect i need to change something somewhere from 'registered' to subscribers to make this work, but i cant remember where?

Thanks, Ben

Please Log in or Create an account to join the conversation.