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.

Is reactivating a members level possible?

Home Forums Community Forum Is reactivating a members level possible?

This topic contains 3 replies, has 2 voices. Last updated by  Bruce 3 years, 6 months ago.

Topic Author Topic
Posted: Thursday Jul 4th, 2013 at 3:44 pm #53017

We are using S2M pro’s levels as a kind of training ladder for an educational site — new members begin at level 1 and work their way over many months/years to Level 10. If a member’s subscription expires during that time, S2M will demote them from, say, Level 4 to Level 0. If that user then renews their membership by paying for another 3- or 6-month membership, we would like to be able to reactivate their previous account (assuming it’s the same email address) and restore their previous Level 4 status so they can keep going.

Can you think of how we can do this?

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Friday Jul 5th, 2013 at 5:25 am #53043
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

Can you think of how we can do this?

Are you using Custom Capabilities as well as Member Levels? If not, when you upgrade your Users level, you might consider also setting a Custom Capability such as user_reached_level4 for each of your levels. You can keep s2Member from taking away Custom Capabilities in the Automatic EOT Behavior section of your Dashboard:

Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior

See: Knowledge Base » Changing Roles/Capabilities via PHP

Now if a User is demoted at level 4, you can show them a different form to sign back up than if they hadn’t ever signed up before using Shortcode Conditionals:

Knowledge Base » Simple Shortcode Conditionals

Would that work?

Posted: Friday Jul 5th, 2013 at 12:30 pm #53055

Well, we are using the custom capabilities field for something as well. Is there another field that we can use as a kind of storage field to store a member’s previous level?

Posted: Tuesday Jul 9th, 2013 at 4:04 am #53147
Bruce
Username: Bruce
Staff Member

I’m am very sorry for the delay in response. Thanks very much for your patience with me.

Well, we are using the custom capabilities field for something as well. Is there another field that we can use as a kind of storage field to store a member’s previous level?

You could store this value in a WordPress User Meta value, as shown here:

http://codex.wordpress.org/Function_Reference/update_user_meta

OR, you could store the value in a completely private s2Member custom field, but this would take a lot more work, because s2Member stores all of these values in an array in one of it’s own User Meta rows.

I would suggest using the WordPress User Meta field.

Viewing 3 replies - 1 through 3 (of 3 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.