• I would like to create a page with photo gallery (or a link to photo gallery) which will be different for every client. Client with password “rambo” will get access to another content that client with password “1234”. Can I do this with this plugin?

    https://wordpress.org/plugins/s2member/

Viewing 12 replies - 1 through 12 (of 12 total)
  • The short answer is yes.

    The longer answer, describing how to do this, depends on a few things.

    For example, will your clients be accessing just one page each, or will they have access to more than that? Will there be some posts or pages that more than one will have access to? Even if they just have access to one page each, will some of the content of such pages always be the same?

    Thread Starter acuaron

    (@acuaron)

    Thank you for the reply. Every client will have an access only to a specific page with gallery or a page with links to a gallery (that means client #1 will have an access to gallery #1/page #1, client #2 will have an access to gallery #2/page #2). So one page for every client. The content of the page will be different for every client.

    In that case, what I’d recommend is installing s2Member in the regular manner, but use Dynamic Login Welcome Pages with a Special Redirection URL. This will give you exactly what you want.

    Instructions on how to do this are here: https://s2member.com/kb-article/customizing-your-login-welcome-page/

    Thread Starter acuaron

    (@acuaron)

    Thank you. I tried it and it works. The only thing I dont understand is – when I choose the redirect option, I cant set the s2menber login page (but I can login through wp-login.php).
    By the way, can I protect the content for specific users (so client #1 could see only page #1 and client #2 could see only page #2).

    The only thing I dont understand is – when I choose the redirect option, I cant set the s2menber login page (but I can login through wp-login.php).

    s2Member is designed to work with wp-login.php If you want to set another page as your login page, you’ll need custom coding to get the dynamic login welcome page redirections to work.

    By the way, can I protect the content for specific users (so client #1 could see only page #1 and client #2 could see only page #2).

    Yes. Actually, I thought that was automatic in that setup. (Try it by logging in as a non-admin.) But if it isn’t, then you can use custom capabilities (ccaps) to do it.

    Thread Starter acuaron

    (@acuaron)

    Yes. Actually, I thought that was automatic in that setup. (Try it by logging in as a non-admin.) But if it isn’t, then you can use custom capabilities (ccaps) to do it.

    It isnt. I can see the page even when I am not logged in. What kind of shortcode should I put in the custom capabilities?

    OK, that’s good to know. (I’ve never used that setup myself.)

    You can call a ccap anything you want. To avoid confusion, I’d suggest using the client’s name.

    Thread Starter acuaron

    (@acuaron)

    Just insert clients name? I dont know anything about coding 🙂

    OK!!

    Go to your list of Users, and click edit for one of them. Scroll down to the box marked Custom Capabilities and type in the person’s last name (or whatever else you prefer, but with no spaces). The hit Update User at the bottom of the page.

    Now go to edit the dedicated page for the same user. You will see an s2Member panel there, with a box headed Require Custom Capabilities? Type in here whatever you typed for the user’s ccap, and hit Update.

    Repeat for every client!

    Thread Starter acuaron

    (@acuaron)

    Thank you, I tried it, but unregistered users still see the page. 🙁

    I’d double-check you have set the ccaps on the pages, and also make sure that you have set up a Membership Options Page.

    Thread Starter acuaron

    (@acuaron)

    I didnt have Membership Option Page. Now it works. Thank you.

    BTW, I found out second solution: when I set the post as protected with the same password that I assigned for the particular user, then the user is automatically redirected to this page, whereas other users sees the password field. But your way is better. Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Can different clients see different content?’ is closed to new replies.