Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eMember

protect content by username

(11 posts) (4 voices)
  • Started 1 year ago by dskallman
  • Latest reply from dskallman
  • Possible Solutions (Related Topics):
    1. eMember - content protection does not work
    2. eMember - MU/BP ManageContent Protection front page content gone
    3. How to protect all content on posts and pages
    4. Protected Content Visible
    5. Manage Content Protection - Best practices

Tags:

  • content
  • find
  • join
  • membership
  • Page
  • payment
  • posts
  • protect content
  • protection
  • replace
  • text
  • username specific content
12Next »
  1. dskallman

    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

    Posted 1 year ago #
  2. Ivy
    Administrator

    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".

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

    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: http://support.tipsandtricks-hq.com/update-request

    Posted 1 year ago #
  3. dskallman

    Thanks!

    Posted 1 year ago #
  4. dskallman

    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?

    Posted 1 year ago #
  5. dskallman

    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?

    Posted 1 year ago #
  6. amin007
    Key Master

    Open 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 '';
    Posted 1 year ago #
  7. dskallman

    This is perfect, thank you!

    Posted 1 year ago #
  8. dskallman

    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?

    Posted 1 year ago #
  9. amin007
    Key Master

    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>';
    Posted 1 year ago #
  10. ervanerfian

    Hi 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.

    Posted 1 year ago #

RSS feed for this topic

12Next »

Reply »

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin