Tips and Tricks HQ Support Portal › Forums › WP eMember › protect content by username
Tagged: content, find, join, membership, Page, payment, posts, protect content, protection, replace, text, username specific content
- This topic has 10 replies, 4 voices, and was last updated 13 years, 9 months ago by dskallman.
-
AuthorPosts
-
February 12, 2011 at 10:41 pm #2702dskallmanMember
Is there a way to add content to a page for several users and restrict it in a way so that the logged in user can see the content that has been labeled for that specific user and all other information on that page is not. For example:
user1: content
user2: content
user2: content
When user1 logs in that user only sees
user1: content
Is there a way to do this without having to create individual pages/posts?
Thanks,
Dana
February 12, 2011 at 11:10 pm #28982IvyMemberHi Dana we have recently added section protection based on member id. You can find out more about this here:
See the section called “Section Protection for a Specific Member”.
How to Protect a Section of a Post or Page (Partial Protection)
If you are using a later version of eMember you will need to do an update for this to work.
The following post will explain how updates work: https://support.tipsandtricks-hq.com/update-request
February 13, 2011 at 2:27 am #28983dskallmanMemberThanks!
February 13, 2011 at 2:51 am #28984dskallmanMemberOne other question, is there a way to change/remove the message that says “Content is restricted.” I don’t want that to appear. I just want what the user that is logged in to see what the settings permit, but not that other content is restricted. Does that make sense?
February 13, 2011 at 3:02 am #28985dskallmanMemberMaybe I am stretching it here, but is it possible to do an id X user is logged they see this and nothing else, so it doesn’t push content down on the page that’s hidden for other users?
February 13, 2011 at 4:04 am #28986amin007ParticipantOpen the “wp_eMember1.php” file and search for the following line:
return '<b>'.EMEMBER_CONTENT_RESTRICTED.'</b><br/><br/>';
once you find it just replace it with the following:
return '';
February 13, 2011 at 9:21 pm #28987dskallmanMemberThis is perfect, thank you!
February 13, 2011 at 9:40 pm #28988dskallmanMemberOne similar question, how can I remove the message that comes up when it’s restricted by member level? The text that says ‘Please renew your account.’ I don’t see it in the language file. Is it another line similar to what you listed above?
February 14, 2011 at 4:42 am #28989amin007ParticipantIt does come from the language file but its broken into parts so we can make a link. Look for the following line in the “wp_eMember1.php” file:
return '<b>'. EMEMBER_HIDDEN_CONTENT_MESSAGE. '<br/>'.EMEMBER_PLEASE.' <a href=" '.$account_upgrade_url .'" target=_blank>'.EMEMBER_RENEW.'</a> '.EMEMBER_YOUR_ACCOUNT.'</b>';
February 14, 2011 at 12:55 pm #28990ervanerfianMemberHi Dana,
Take a look..
Real-Time Find and Replace
http://wordpress.org/extend/plugins/real-time-find-and-replace/
re.place
http://wordpress.org/extend/plugins/replace/
So you don’t need doing again every time when updated.
February 14, 2011 at 2:59 pm #28991dskallmanMemberThanks, this is really helpful and I really appreciate your sharing these resources with me.
-
AuthorPosts
- You must be logged in to reply to this topic.