February 12, 2011 at 10:41 pm #2702
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:
When user1 logs in that user only sees
Is there a way to do this without having to create individual pages/posts?
DanaFebruary 12, 2011 at 11:10 pm #28982IvyMember
Hi 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”.
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-requestFebruary 13, 2011 at 2:27 am #28983
Thanks!February 13, 2011 at 2:51 am #28984
One 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 #28985
Maybe 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 #28986amin007Participant
Open the “wp_eMember1.php” file and search for the following line:
once you find it just replace it with the following:
return '';February 13, 2011 at 9:21 pm #28987
This is perfect, thank you!February 13, 2011 at 9:40 pm #28988
One 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 #28989amin007Participant
It 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 #28990ervanerfianMember
Take a look..
Real-Time Find and Replace
So you don’t need doing again every time when updated.February 14, 2011 at 2:59 pm #28991
Thanks, this is really helpful and I really appreciate your sharing these resources with me.
- You must be logged in to reply to this topic.