latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Membership renewal

Home Forums Community Forum Membership renewal

This topic contains 9 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 6 months ago.

Topic Author Topic
Posted: Monday Jun 4th, 2012 at 6:42 am #15335

Hello all

When someone visit my website and especially the membership content, they can see our home made label that tells them they have to subscribe in order to see the hidden content, which is normal. However, when one of my already subscribed member’s membership runs out, not only they can’t see that original banner they could see before they subscribed but they can’t see anything at all. So, they ask me how they can renew their subscription, which of course causes a bit of a problem.

Have I missed something on the way? Shouldn’t they somehow be warned or transferred to the subscriptions page?

Please help. http://landscapephotographymagazine.com/

You can see some details of our hidden content banner code in my other post here…http://www.s2member.com/forums/topic/member-level-code-problem/

Dimitri

List Of Topic Replies

Viewing 9 replies - 1 through 9 (of 9 total)
Author Replies
Author Replies
Posted: Tuesday Jun 5th, 2012 at 5:08 am #15435

Hi Dimitri.

What page should the message be shown in? Could you post the URL to it?

What role does the user have after his membership ends? You can check this in the user’s profile page.

What is your EOT behavior setting? [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior[/hilite]

Posted: Tuesday Jun 5th, 2012 at 5:48 am #15442

Hi Christian

This for instance is the current page and as a non member, you will see the banner that will ask you to subscribe. However, once you subscribe and your membership time runs out, this banner is completely gone and all you see in that page, is the stuff that anyone can see (even non members). http://landscapephotographymagazine.com/magazine/issue-16/

Currently we use level 1 & level 2. As soon as their time runs out they are moved to Subscriber section.

As for EOT behavior, I have attached a screengrab. Should I erase their account completely or will this cause problems with WP?

Please let me know if you need more help.

Posted: Tuesday Jun 5th, 2012 at 5:49 am #15443

I forgot to mention that we do not have recurring charges, members pay a one off price for a certain period.

Posted: Tuesday Jun 5th, 2012 at 8:16 pm #15598

I see. So your code is:

[hilite pre_code]
[[s2If !is_user_logged_in()]

Welcome to Landscape Photography Magazine

Premium account required to access the full content of this page

Landscape Photography Magazine can be read on-line or downloaded as a pdf file for off-line reading at leisure on laptops, iPads and most small devices. Click here for details.

Subscribe now!

[/s2If]]

[[s2If current_user_is(s2member_level1)]

Welcome to Landscape Photography Magazine

You need a premium account (Level 2) to access the full content of this page.

Landscape Photography Magazine can be read on-line or downloaded as a pdf file for off-line reading at leisure on laptops, iPads and most small devices. Click here for details.

Subsribe now!

[/s2If]]

[[s2If current_user_can(access_s2member_level2)]
Level 2 page content goes here.
[/s2If]]
[/hilite]

Then the problem would be in the condition for users that are logged in, but aren’t at Level 1 or 2, i.e. 0, Subscribers. Change that condition to:

[hilite pre_code]
s2If is_user_logged_in() AND !current_user_can(access_s2member_level1)
[/hilite]

or

[hilite pre_code]
s2If current_user_is(s2member_level0) OR s2If current_user_is(s2member_level1)
[/hilite]

I hope that helps. :)

Posted: Saturday Jun 9th, 2012 at 1:24 am #16038

Hi Cristian

The second option worked fine.

However, shouldn’t the system have the ability on displaying something like ‘Your membership has run out’ or something similar?

Dimitri

Posted: Saturday Jun 9th, 2012 at 1:39 am #16040

Sorry Cristian, it didn’t work. I now notice that the non logged in visitor can’t see anything.

I have an idea, I will try it later on and report back for others to see and learn.

Dimitri

Posted: Monday Jun 11th, 2012 at 11:01 pm #16181

How did it go?

what I was suggesting was this:

[[s2If !is_user_logged_in()]
<div id="sub-box" class="rounded"><hgroup class="text-center">
<h2>Welcome to Landscape Photography Magazine</h2>
<h3>Premium account required to access the full content of this page</h3>
</hgroup>
<p class="sub-content alignleft">Landscape Photography Magazine can be read on-line or downloaded as a pdf file for off-line reading at leisure on laptops, iPads and most small devices. <a href="http://landscapephotographymagazine.com/subscriptions"><span><strong>Click here for details.</strong></span></a></p>
<a class="sub-button alignright" href="http://landscapephotographymagazine.com/subscriptions"><span>Subscribe now! </span></a>
</div>
[/s2If]]

[[s2If current_user_is(s2member_level0) OR s2If current_user_is(s2member_level1)]
<div id="sub-box" class="rounded"><hgroup class="text-center">
<h2>Welcome to Landscape Photography Magazine</h2>
<h3>You need a premium account (Level 2) to access the full content of this page.</h3>
</hgroup>
<p class="sub-content alignleft">Landscape Photography Magazine can be read on-line or downloaded as a pdf file for off-line reading at leisure on laptops, iPads and most small devices. <a href="http://landscapephotographymagazine.com/subscriptions"><span><strong>Click here for details.</strong></span></a></p>
<a class="sub-button alignright" href="http://landscapephotographymagazine.com/subscriptions"><span>Subsribe now! </span></a>
</div>
[/s2If]]

[[s2If current_user_can(access_s2member_level2)]
<strong>Level 2 page content goes here.</strong>
[/s2If]]
Posted: Wednesday Jun 13th, 2012 at 10:17 am #16384

Hi Cristian

This is the html I had to settle for and it works great for me, I hope it helps others.

——————————

[s2If !is_user_logged_in()]
The content you want non registered (ie selling your material content) members to see goes here.
[/s2If]
[s2If current_user_is(s2member_level0)]
The content you want expired (ie your membership has expired, please subscribe again) members to see goes here.
[/s2If]
[s2If current_user_is(s2member_level1)]
The content you want Level 1 (ie you need a Level 2 account to access this page) members to see goes here.
[/s2If]

[s2If current_user_can(access_s2member_level2)]
The content you want Level 2 (ie your current content) members to see goes here.
[/s2If]

————–

Of course, all this is if you have 2 levels of membership, however, the principle is the same.

Posted: Thursday Jun 14th, 2012 at 6:49 am #16431

Oh, cool. Glad you got it working. Thanks for the update. :)

Viewing 9 replies - 1 through 9 (of 9 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.