Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Can eMember protect custom post types at different member levels?

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Can eMember protect custom post types at different member levels?

Tagged: Sensei

  • This topic has 18 replies, 4 voices, and was last updated 10 years, 11 months ago by Kellylise.
Viewing 15 posts - 1 through 15 (of 19 total)
1 2 →
  • Author
    Posts
  • May 23, 2014 at 9:22 am #10879
    wpzippyton
    Member

    I am trying to get eMember to work as the content protection for a paid e-learning site, using Woothemes Sensei as the learning management system. The lessons each consist of a video and accompanying text.

    I am finding that eMember is protecting the text but that the video is accessible to anyone who is logged in as an eMember member, without regard for having the right level.

    Is eMember able to fully protect custom post types without using the site-wide lockdown feature, which would not be suitable for my needs?

    May 23, 2014 at 1:03 pm #63179
    wzp
    Moderator

    How are you protecting your pages?

    And how is the video accessed?

    Is the video embedded on a WordPress custom page inside the editor area? or is it outside the editor area?

    If the videos are on the same pages as the text, and that entire page is protected; then the video content should also be protected.

    May 27, 2014 at 7:55 am #63180
    wpzippyton
    Member

    The “pages” are custom posts (lessons) generated by Woothemes Sensei. The video embed code is entered in the editor in a special textarea entitled “video embed code”. This puts the iframe inside the article element. The structure is:

    <article class="post-31 lesson type-lesson status-publish hentry lesson post post">
    <header>
    <h1>Header 1 title</h1>
    </header>
    <section class="entry fix">
    <div class="video"><iframe>(Video code)</iframe></div>
    <div class="lesson-contents">Lesson contents</div>
    </section>

    <section class="lesson-meta" id="lesson_complete">
    <header>

    <form>(Form with lesson completed button)</form>
    </header>
    </section>

    <section class="lesson-course">
    Previous lesson navigation
    </section>
    <section class="lesson-course">
    Back to course navigation
    </section>
    </article>

    … which should be fine to make the video protected.

    I have set general protection to protect these custom posts, and have a membership level which has access to them. (i.e. I am not using partial protection). But when I go to a protected post as a logged-out user or a user who is not a member of the relevant level, the text of the lesson is protected with the message “Please Login to view this content. (Not a member? Join Today!)” but the video, “complete the lesson” button and navigation links are all visible.

    It seems to me that the plugin is only protecting the_content() and not the whole of the article element. Even if I entered the video embed code directly in the main content textarea in the editor, logged-out users would still see the “complete the lesson” button and navigation links, which is no good.

    May 27, 2014 at 9:03 am #63181
    wpzippyton
    Member

    … here’s a screenshot showing the settings on the left and the problem on the right:

    https://www.dropbox.com/s/nv850d7xm4vuw3n/screenshot.png

    May 27, 2014 at 11:18 am #63182
    Kellylise
    Member

    WooThemes Sensei confirms the only way to protect video is through, for example, a Vimeo Pro account.

    Protecting Video Content:

    “Sensei doesn’t provide any video protection by default. You’ll need to use a third-party video streaming service if you want to ensure your video content can only be viewed after purchasing a course.

    We recommend Vimeo Plus for this purpose – http://vimeo.com/plus

    http://support.woothemes.com/hc/en-us/articles/203107807-Protecting-Video-Content

    May 27, 2014 at 1:48 pm #63183
    wpzippyton
    Member

    This is not relevant – the video is embedded from a Vimeo Pro account set to private with embedding allowed only on the relevant domain.

    The point is that eMember is allowing this part of the HTML to be seen when it should be protected.

    Does eMember only protect the_content() of a post?

    May 27, 2014 at 3:03 pm #63184
    Kellylise
    Member

    Is navigation ever protected/hidden for a regular post via eMember?

    From your detailed screenshot, the Sensei LMS custom post type navigation is visible despite eMember protection.

    If a nonLearner clicks on the navigation, they would not be able to see the content of the Sensei CPT – based on Sensei and eMember.

    May 27, 2014 at 3:11 pm #63185
    wpzippyton
    Member

    Here’s another screenshot https://www.dropbox.com/s/wg0gwkwv988i0z5/screenshot2.png showing a Sensei lesson and a regular WordPress post. I have switched to Twenty Fourteen theme to make sure there are no issues with the theme I was using. The video is on Vimeo Pro, set to private, embeddable only on localhost and my domain.

    On the left is the Sensei lesson, which should be completely protected by eMember. However, a logged-out user or a user from the wrong membership level can play the video and use the navigation links.

    On the right is the standard WordPress post, where the video is protected corrrectly.

    I don’t know if this is to do with the Sensei lesson template structure or eMember – so far Woothemes have sent me back to eMember.

    May 27, 2014 at 3:20 pm #63186
    Kellylise
    Member

    Makes sense that the video embedded in the main content textarea of a regular post is protected, as you already confirmed even with Sensei CPTs.

    It’s the Sensei video div that is visible to nonMembers. The “special textarea entitled “video embed code”is a Sensei custom field, not part of the standard WordPress Loop for posts.

    the_content()

    Even if I entered the video embed code directly in the main content textarea in the editor, logged-out users would still see the “complete the lesson” button and navigation links, which is no good.

    At least you can embed the video in the main content textarea for eMember protection.

    That leaves the non-protection of Sensei CPT navigation.

    May 27, 2014 at 3:33 pm #63187
    Kellylise
    Member

    Without eMember, and logged out, Sensei displays the Lesson/CPT navigation (but not the Lesson Quiz or Complete button).

    [http://i.imgur.com/IAscZAL.jpg]

    May 27, 2014 at 3:51 pm #63188
    wpzippyton
    Member

    Wishlist Member protects the entire Sensei lesson in the way it is supposed to – no video, no content, no navigation, no “complete lesson” button.

    It seems that eMember cannot do this, so reluctantly it looks as if I am going to have to give up on it.

    May 27, 2014 at 7:46 pm #63189
    wpzippyton
    Member

    Take 2 – I will do it using section protection throughout – that will work.

    May 28, 2014 at 4:22 am #63190
    admin
    Keymaster

    @wpzippyton, Section protection should do the job.

    I am also okay with taking a look at what filter that Sensei plugin is using and then we can potentially add an option for it in the plugin.

    May 28, 2014 at 10:28 am #63191
    Kellylise
    Member

    Great! What do you need to see?

    Basic Sensei Hooks/Filters:

    http://docs.woothemes.com/document/sensei-theming/

    May 29, 2014 at 6:38 am #63192
    admin
    Keymaster

    That is a good starting point. I have a couple of ideas to try. Are you open to giving me access to a site where you have both these plugins configured and active so I can do some small testing of my own?

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 19 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ