Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember and Sensei – Restrict access to every lesson page
Tagged: Sensei, wp membership
- This topic has 5 replies, 2 voices, and was last updated 8 years, 10 months ago by hvidigaljr.
-
AuthorPosts
-
January 22, 2016 at 3:27 am #12847hvidigaljrMember
Hi,
Nowadays visitor with only access to Course A can click to Course B and also click on Course B lessons. When in Course B lessons he can click on “Please click here to start taking this course”. This message is default from Sensei (I guess), but the message should be the default from eMember explaining that his level of subscription do not allow that access.
It is very weird a message with a link asking him to start taking a course, and when clicking on a link, he is headed to the course page with the right message “This content is exclusive for members or your subscription level do not allow access”.
Is there a possibility to make something more intuitive?
Maybe protecting the whole content after part of the url like mysite.com/lesson/… (all after “lesson” is protect). If lesson was a post category that was no mystery to do that, but as lesson is something from sensei, I have no idea how to do that.
Thanks
January 22, 2016 at 1:47 pm #72383wzpModeratorWhat is happening is that, the member ***is*** permitted access to the first page, but is being ***allowed*** to click-through to a page they don’t have access to.
To remedy this, you must do some specific tweaks to the first page, so that the button will only be displayed if they will have access to the destination page content.
The preference is for you to use partial content protection:
https://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
And if necessary, use PHP coding tweaks on your page(s):
https://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248
January 22, 2016 at 7:41 pm #72384hvidigaljrMemberI confess I didn’t understand very well… there is a page called “courses-overview” with the listing of all courses that are available. It is important to show all courses available as this way the member from product A will see other products that can interest him.
I guess that it is also important that the member from product A can see lessons from other products, this way he can have a better idea from the courses contents.
So I don’t know how can I disallow him to click-through to a page they don’t have access to, without hiding the content.
Can you be more specific?
Thanks
January 22, 2016 at 10:19 pm #72385wzpModeratorIf you don’t want them to “click through” to the restricted page; use some custom PHP coding to disable the button, based on membership level. And yes, it means you (or somebody who is a programmer) has to “get their hands dirty.”
January 28, 2016 at 9:06 pm #72386hvidigaljrMemberHi,
You said: “To remedy this, you must do some specific tweaks to the first page, so that the button will only be displayed if they will have access to the destination page content.”
I understand that when you mean “first page” actually you a referring to /courses-overview/ page, that is correct?
I supposed it because there are displayed the links to all courses, and as far as I understood, you are suggesting to hide the courses links to the user that has no membership allowed.
So when a member from product B goes to /courses-overview/ page he will only see (and can click) the courses he has access, according to his membership level.
That said, I have no idea on how to do this as on “courses-overview” page, the courses are displayed automatically by the following shortcodes: [freecourses][paidcourses][newcourses][featuredcourses]
Thanks
January 29, 2016 at 3:16 pm #72387hvidigaljrMemberHi, I’ve customized /courses-overview page using partial content protection as you suggested. Please take a look [http://goo.gl/lMiIYO]
This way the link to the course page will only be available for those with the corresponding membership level as you can see here [https://db.tt/TMCora2B]
Once the member clicks on the button and goes to the course page, to avoid displaying other courses links (that is default by sensei), I’ve added the following custom CSS to hide course navigation below lessons
nav#post-entries {
display:none
}
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.