Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

protect content by username

by

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 12 years, 1 month ago by dskallman.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • February 12, 2011 at 10:41 pm #2702
    dskallman
    Member

    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 #28982
    Ivy
    Member

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

    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 #28983
    dskallman
    Member

    Thanks!

    February 13, 2011 at 2:51 am #28984
    dskallman
    Member

    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
    dskallman
    Member

    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 #28986
    amin007
    Participant

    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 '';

    February 13, 2011 at 9:21 pm #28987
    dskallman
    Member

    This is perfect, thank you!

    February 13, 2011 at 9:40 pm #28988
    dskallman
    Member

    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 #28989
    amin007
    Participant

    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 #28990
    ervanerfian
    Member

    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.

    February 14, 2011 at 2:59 pm #28991
    dskallman
    Member

    Thanks, this is really helpful and I really appreciate your sharing these resources with me.

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ