Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Your membership level does not allow you to view rest of content
Tagged: categories, category, eMember, fix, permission, posts, protection
- This topic has 11 replies, 5 voices, and was last updated 14 years, 8 months ago by Ivy.
-
AuthorPosts
-
January 25, 2010 at 11:03 pm #703manos_mMember
The procedure goes:
1) Select “General Protection” and check the checkboxes next to the pages that you want to protect.
2) Hit the “Set Protection” button to protect these pages (this makes the pages not accessible).
3) Now select the membership level that you want to give access to this page to and grant access accordingly.”
When a member goes into categories, he can see the protected content (and of course all other free users can not). But when he goes to the first page (with the latest posts) he sees (even though he is logged in) “Your membership level does not allow you to view rest of content.”
Why is that?
January 26, 2010 at 5:26 am #17520IvyMemberHi Manos, When the member is logged in what is his membership level? And for his membership level have you protected his post?
Ivy
January 28, 2010 at 10:48 am #17521manos_mMemberI have protected the categories. It happens to all the membership levels. They can’t see the latest posts in the first page.
January 29, 2010 at 6:27 am #17522IvyMemberHi Manos, I emailed you asking for site access so we can troubleshoot this some more. Please let me know if you did not get the email.
Ivy
January 30, 2010 at 10:00 pm #17523manos_mMemberI have received the email. I’m designing the website locally on my computer and it’s not online to give you access.
February 27, 2010 at 10:40 pm #17524Jan MichalickaMemberI’ve found this error too. There is a problem with missing check when you are using category permission, but not posts protection.
Modify line 683 in wp_eMember1.php in function auth_check_post
from
if($perms->is_permitted_post($id))
to
if(!$perms->is_protected_post($id)||$perms->is_permitted_post($id))
and then you dont need to set all posts as protected.
Or set all posts as protected everytime you create a new post.
I recommend to fix this problem directly in the next release of eMember.
Could any admin provide a comment if this is a good solution?
Thanks
Jan
February 27, 2010 at 10:48 pm #17525Jan MichalickaMemberMaybe the similar problem could be with comments.
If you don’t want to exaclty allow each comment,
you could update line 790 in wp_eMember1.php from
if($perms->is_permitted_comment($id))
to
if(!$perms->is_protected_comment($id)||$perms->is_permitted_comment($id))
February 28, 2010 at 3:00 am #17526nurMemberhey jan,
our code structure is like:
if($perms->is_protected_post($id))
{
......../***more code *****/.........
if($perms->is_permitted_post($id))
{
$return $content;
}
......../***more code *****/..........
}!$perms->is_protected_post($id)
is just opposite of$perms->is_protected_post($id)
. so!$perms->is_protected_post($id)
will always evaluate to false inside `if($perms->is_protected_post($id)){}
code block. as a result, adding that condition to$perms->is_permitted_post($id)
has no effect on the code flow.FYI in our codebase, line 683 doesn’t have the code u mentioned. which version r u using?
Thanks
~NuR
March 10, 2010 at 7:56 pm #17527renataMemberI’m having this trouble too. After seeing the last post here, though, I’m unclear what the solution is. I’m using eMember v4.9.4 and WP2.9.2.
I’ve protected Pages and Categories with General Protection. I’ve granted access to the Basic membership level to the individual Pages and Categories.
When logged in as a Basic member, I can view the blog page, but receive the same “Your membership level does not allow you to view rest of content.” for the Posts.
Any help is greatly appreciated. So, thanks.
March 10, 2010 at 11:18 pm #17528IvyMemberHi Renata,
I emailed you regarding this issue. Please let me know if you do not receive the email.
Cheers,
Ivy
March 12, 2010 at 3:13 am #17529renataMemberThanks for the speedy assistance and for the plug in update! It’s all working as expected now.
You completely rock!
renata
March 12, 2010 at 4:23 am #17530IvyMemberI am glad everything is working now. If you need anything else please let me know.
Cheers,
Ivy
-
AuthorPosts
- You must be logged in to reply to this topic.