WordPress.org

Ready to get started?Download WordPress

Forums

Paid Memberships Pro
[resolved] Video on protected post (7 posts)

  1. stylevids
    Member
    Posted 2 years ago #

    Hello,
    I have protected certain categories of posts. The protected posts are membership enabled, but the videos for the posts are viewable.
    Note that the video embeds are custom fields, I think. There is a separate field for the embed code on the admin. panel.

    Thank You.

    http://wordpress.org/extend/plugins/paid-memberships-pro/

  2. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    How are you embedding your videos? Where are you hosting the m4v/flv/mp4 files?

    Do you mean that the video embed is showing up or that linking to the video URL will stream it?

  3. stylevids
    Member
    Posted 2 years ago #

    Hi,
    The videos are are hosted on a business account... I enter the iFrame code for each player on a custom field of a post and the video displays on the top of the page of the post, it is a video embed (not link) Here is link to theme demo I'm using

    I enabled membership only categories, but the video still shows on top of page... the post itself is protected.

    Thanks,

  4. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    You need to figure out how the theme is adding the video player to the pages. (Maybe through page.php or post.php or index.php in the theme.) Add some code around where the video player is output to only output it for members.

    Like:

    if(pmpro_hasMembershipLevel())
    {
    //the theme code to output the video player goes here
    }

    You can also redirect all non-members to the homepage or login page instead of just blocking out the content. Here is some code for that that you can tweak and add to your functions.php.

    https://gist.github.com/1332730

    Good luck.

  5. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    stylevids, did this help?

  6. stylevids
    Member
    Posted 2 years ago #

    Hi,
    I decided to place the video embeds within the posts (not as a custom field) and works well for my usage now. Thank you for the follow-up.

    Installed PMPro and so impressed with this plugin. It functions just as described and very customizable. Thanks again.

  7. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    Marking as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic