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

e-Member Content Protection

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › e-Member Content Protection

  • This topic has 12 replies, 3 voices, and was last updated 12 years, 5 months ago by amin007.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • May 5, 2010 at 11:11 pm #1172
    gcollignon
    Member

    Hi, thanks for this plugin it is great. I was wondering if there’s a way in which I can configure something like level protection in the content. For example: Let’s say there are 3 levels 1,2 and 3 the first allows content some content, the second is the first content plus additional content and the third membership allows you to see content 1, 2, and 3. Is there any way to configure this without having to specify in the code all the memberships? [emember_protected for=1,2,3]

    May 6, 2010 at 7:03 am #20362
    amin007
    Participant

    If you are talking about section protection then the only way to protect content for different membership levels is to specify it like the following:

    [emember_protected for=1-2-3]

    You should be able to achieve the same result by using multiple tags with protection for different levels.

    June 8, 2010 at 7:38 pm #20363
    gcollignon
    Member

    Hi, I hope you guys are doing great!

    How do I use multiple tags with protection for different levels.

    This is the scenario, I have 3 memberships, I want membership A to have access to some posts, membership B to access all posts that membership A has access and some articles and membership C will have access to everything membership A and B have but an additional category.

    One more question is there a way to protect a widget? Like to only show if a member is signed in and with certain level?

    Thanks!

    June 9, 2010 at 4:10 am #20364
    amin007
    Participant

    Are you talking about protecting the whole post or a section of this post?

    June 9, 2010 at 4:40 am #20365
    gcollignon
    Member

    Just a section of the post…

    And another question,, I am thinking on buying your theme… Is it possible to customize the CSS?

    June 9, 2010 at 1:05 pm #20366
    amin007
    Participant

    Okay very simple… you use the section protection tag but specify the membership level that you are protecting that section for. So for example if you want the first section to be viewable by membership level 1, 2 and 3 then you use the following tage

    [emember_protected for=1,2,3]

    For the next section that you only want membership leve 2 and 3 to have access you use the following tag

    [emember_protected for=2,3]

    This way membership leve 1 won’t have access this section. Do you see how this is done?

    There is no way to protect the widget without using custom PHP code. The widgets vary based on what plugins you install and different people use different widget so there is not set guideline as to how to protect widgets. If you know a bit of PHP then I can give you code that can be used to block the content of a widget.

    Yes, you can customize the CSS of the theme.

    June 9, 2010 at 9:31 pm #20367
    gcollignon
    Member

    Thanks for the great response.. I know the basics of PHP so if you could send me the code to block the content of a widget and where to add it, that would be great.

    I already bought your theme. Where can I post questions about the theme? I have several questions I would like for you to help me with.

    Thanks

    June 10, 2010 at 1:30 am #20368
    amin007
    Participant

    Okies good. Here is a sample PHP code example:

    global $auth;
    $user_id = $auth->getUserInfo('member_id');
    if (!empty($user_id))
    {
    echo "This secret message is for member's only";
    echo "Anything you display here can only be viewed by members";
    }

    On the forum there is a forum category for “Infinity Remix” theme. You can post there for the Infinity Remix theme related stuff.

    June 11, 2010 at 11:18 pm #20369
    gcollignon
    Member

    Thanks Amin,, I have two other questions regarding the code.. where should I add it? and do I change the “member_id” and put the number of the membership I want to be able to see the widget?

    Thanks!!!

    June 12, 2010 at 2:20 am #20370
    amin007
    Participant

    You add it anywhere where PHP can be used, for example your theme’s template file or add PHP executable widget to your sidebar then you can use PHP code.

    I get the feeling you are not familiar with PHP coding. Please remember, it is not the purpose of this forum to teach you PHP as it is beyond the scope of these plugins. If you are not a developer then it is better not to try these tweaks as it can cause other problems and bring your site down then you won’t know what to do.

    October 10, 2010 at 3:11 pm #20371
    pilotjoe
    Member

    Amin,

    I’m working with section protection and this isn’t working for me. I set

    [emember_protected for=3,4,5]

    Some content

    [/emember_protected]

    And not content is viewable by any level

    If I specify a single level it works for that level.

    [emember_protected for=3]

    Some content

    [/emember_protected]

    Any idea why multiple levels are not working?

    Joe

    October 10, 2010 at 4:12 pm #20372
    pilotjoe
    Member

    Okay I found the problem…

    Earlier in this post the shortcode is posted as:

    [emember_protected for=3,4,5]

    Some content

    [/emember_protected]

    but I found another post where it explains the shortcode as:

    [emember_protected for=3-4-5]

    Some content

    [/emember_protected]

    This works with the dash!!

    Just FYI

    October 11, 2010 at 12:29 am #20373
    amin007
    Participant

    It’s best to follow the official documentation :)

    http://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88

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

Forum Related

  • Forum Home
  • Forum Search
  • 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
  • WP PDF Stamper Documentation
  • WP Photo Seller 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
  • WP Photo Seller Video Tutorial

Our Other Plugins

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

Copyright © 2023 | Tips and Tricks HQ