S2member as optimizemember replacement

I am currently working with Optimizepress and OptimizeMember for a membership login where I show some video’s (vimeo) to learn something.

Can I do the same with S2Member?
When you login, I want a list with the different video’s and dropping content.
Is that possible with S2member or do I also need additional software?

You can surely do that with s2M.
S2M is so flexible that you can arrange your pages however you want, to display or block access to any content.

If you want a list of content, you might want to build a page like this one on my site. It is not done automatically though, but you can do it any way you want.

In this example, whatever content you have access to, will be in colors, while the content you don’t have access to, will be in grey. I built it so that anyone can still go to the page in question, and get a sale pitch if they have not purchased it or see the video if they do have the access already.

Or you can have an index of some sort, available to all, but when you get to the page where the video would be, you can protect the video (and other content on the same page), while leaving the page available to all with a notice for those without access. Here is another example:

As you can see, it is very flexible and you can build your page in a totally different way if you prefer. S2M would let you do so many things.

1 Like

Hi Cassel,
Thank you so much for taking the time to answer my question! It is very clear and what you did is great!
It is very clear now, the payment policy from S2member is also interesting.
Now I pay a yearly fee but I don’t use a lot so I think that S2 member is more for me.
Are you aware about templates for this? (Gutenberg of Elementor?)

The only thing will be that I have to learn everything over again with new software but if I can use it for a long time, then I am happy to do so.
Best regards, Philippe.

1 Like

I am not aware of templates for that. I use Elementor myself. The MyAccount page is just built in the Classic WP editor. For the Basic Scrap course, it is simple Elementor blocks. Nothing fancy. And since I use Elementor, I could change my mind at any point if I want.

Ok that’s clear. Thank you so much for the information.

Hi Cassel,
Can I ask some more questions?

  • I made a page with elementor (list with different modules). How do you make that they show grey when there is access for a user who doesn’t has the correct role/S2member level?
    When I do that (I placed the link from the page on the picture) I am redirected to the S2 membership options page.

  • Is it possible to make an overview list about where you are?
    Something like this:

  • I currently have the free version, I will buy the full version soon when I know that I can do what I need to do with it.

thanks for your feedback, Philippe.

In the “protected page”, I only use ccaps and conditionals to protect the content and NOT the “extremey easy way”, with the box on the side of the page/post. Instead, I use code like this on the page itself:

[s2If current_user_cannot(access_s2member_ccap_classABC)]
    here is the sale pitch with a buy now button (or form) for this class, because the user does not have the classABC ccap.
[s2If current_user_can(access_s2member_ccap_classABC)]
    here is the content for that class (video, documents, pdf, etc.) because the member has that specific access to classABC ccap that was purchased

Using the “Extremely easy way” to protect the page by level or ccap (in that s2M box on the right side) will always redirect to the Membership Option page if the user does not have the proper ccap, and I find it much harder to sell individual classes on that page, especially if you have several classes.

I am not really sure. I don’t think s2M can actually track where a user is in a sequence of content. I don’t think it is meant for that, but maybe someone could have a way to retrieve information if a page was visited or a video played. It is not something I have looked into because all my modules/classes are independant from each other and don’t need to be taken in any particular order.

Hope this helps.

Read here on how to change: Move from s2member to Optimizemember

I moved my smaller website to Optimizemember because it promised ThriveCart support - and back then the s2member pro credit card checkout was horrible. I had little incentive to move back - because last year both plugins were pretty similar. However with Optimizepress no more updating optimizemember and not renewing their s2member licensing - it’s much better to move (back) to s2member.

Thrivecart never fully worked anyhow - and Optimizepress does not seem to have many/any qualified developers - based on that they never really developed anything on Optimizemember (Thrivecart working was more due to people convincing Thrivecart to integrate OPM than the other way round I guess).

Hi Carole,
Where do you put that code?
I made the page in Elementor (not pro edition). You probably must do it in wordpress without elementor or with Gutenberg? Is that correct?
Thanks. Philippe.

In the case of the classes listed in the MyAccount page, the resulting pages are done in WP classic editor, but you could but that text in other Elementor widgets too.

One thing I found is that if you want to protect content on a page built with Elementor, you need to protect each widget individually, which can be annoying, so whenever I can, I use the WP Classic editor for that. That is why, out of the 650+ pages of my site, only about 50 were built with Elementor widgets. The rest are done with WP.

Ok that’s clear.
But where exactly in the elementor block do you put that code?
Because I see Layout, style and advanced but I have not idea where to put the code.
Can you please explain that? Thank you.

It would be in the content, just as if you were to put the code in the standard WP editor.
Here is an example where I am using Elementor widgets (blocks).

Each module is also built similar to the MyAccount page. The code used in one of the “modules” is in a “shortcode widget”:

[s2If current_user_can(access_s2member_ccap_mlab201909) OR current_user_can(access_s2member_ccap_diamond)]<a href="https://scrapbookcampus.com/the-lab/lab-9-module-09/" target="_blank"><img src="https://scrapbookcampus.com/wp-content/uploads/2019/08/Lab-9-09-300.png"></a>[/s2If]
[s2If !current_user_can(access_s2member_ccap_mlab201909) AND !current_user_can(access_s2member_ccap_diamond)]<a href="https://scrapbookcampus.com/the-lab/lab-9-module-09/" target="_blank"><img src="https://scrapbookcampus.com/wp-content/uploads/2019/08/Lab-9-09-300-BN.png"></a>[/s2If]

Sometimes, shortcodes can work fine in a Text widget, sometimes, in HTML widget, sometimes in Shortcode widgets, sometimes in Custom HTML widget. I am not 100% sure why some widgets will work or others won’t but it is easy to check.

OK i am not sure why it does not display as the code here, but hopefully, you can get a good idea.

You need to wrap it in tripe-backticks ( ` ). I fixed it for you. :slight_smile:

Thank you for your help!
I am new in this and it is not so easy so I appreciate it a lot!
Now I understand the thing with the widget shortcode and I made this code:

Access for level 2
[s2If current_user_can(access_s2member_level2)] <a href="https://k9training.be/gobobby-online-training-welcome-page/" target="_blank"><img src="https://k9training.be/wp-content/uploads/2019/11/Video-handleidingen-min.png"></a>[/s2If]

But in the example of Carole, when the user has access, it is in color and when the use doesn’t has access, it is in grey.
How can I also do that please?

And what is the thing about the ccap? What is that?

thank you. Philippe.

ok, I found out how to make it colored and when black/white.

But now when you click on it, the page refreshes itself.
How can I make it go for a user with access continue to the page where he has access too?

And how can I make it so that for a user without access that it goes to the membership page?


It would just be a matter of linking the image to the different pages.
The images (black and white or color) are simply different images I created separately.

Thanks for answering Carole.
How/where do you link the different pages in the shortcode?
Now I have the shortcode and the images are visible so all that is fine but how do I link the destination page in the shortcode?

In your shortcode, I cannot see it.
Thank you. Ph.

<a href="https://scrapbookcampus.com/the-lab/lab-9-module-09/" target="_blank"><img src="https://scrapbookcampus.com/wp-content/uploads/2019/08/Lab-9-09-300.png"></a>

The href= indicates the URL, and the img= is the image that the URL is associated to.
So my image is
<img src="https://scrapbookcampus.com/wp-content/uploads/2019/08/Lab-9-09-300.png">

and the link is
<a href="https://scrapbookcampus.com/the-lab/lab-9-module-09/" target="_blank">

All that is wrapped in the conditional shortcode.

Thanks Carole, now it is clear and this works!
Without your help I would not have made this so fast.
I still have a lot to learn but now I can start with building up!

Glad I could help.
I find that s2M is so powerful that it can look intimidating for a newcomer. So many settings. So many options. But once you understand the principle of the protected content, the rest is yours to do whatever you want with it. I have been using it for over 8 years now and I learned a lot, even though I am not a programmer at all. (I am even allergic to html and css!)

If you have any other question, don’t hesitate to ask.