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 14 years, 1 month ago by amin007.
-
AuthorPosts
-
May 5, 2010 at 11:11 pm #1172gcollignonMember
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 #20362amin007ParticipantIf 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 #20363gcollignonMemberHi, 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 #20364amin007ParticipantAre you talking about protecting the whole post or a section of this post?
June 9, 2010 at 4:40 am #20365gcollignonMemberJust 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 #20366amin007ParticipantOkay 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 #20367gcollignonMemberThanks 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 #20368amin007ParticipantOkies 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 #20369gcollignonMemberThanks 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 #20370amin007ParticipantYou 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 #20371pilotjoeMemberAmin,
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 #20372pilotjoeMemberOkay 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 #20373amin007ParticipantIt’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
-
AuthorPosts
- You must be logged in to reply to this topic.