PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

EOT Demote to specific role instead of Subscriber

s2Member Plugin. A Membership plugin for WordPress®.

EOT Demote to specific role instead of Subscriber

Postby poeta » September 21st, 2011, 5:21 pm

Hi Team,
I have users registering freely as either free subscribers or Free Business. Free People can upgrade to become Privileged People once registered and logged in and Free Businesses can upgrade to become Privileged Businesses once registered and logged in.
When any Privileged People stop paying or cancel subscription payment I'd like to return them automatically to their previous role as Free People and likewise
when any privileged Business stop paying or cancel subscription payment I'd like to return them automatically to their previous role as Free Business.

How can I accomplish this with S2 Member Pro?
Thanks a lot
User avatar
poeta
Registered User
Registered User
 
Posts: 6
Joined: September 21, 2011

Re: EOT Demote to specific role instead of Subscriber

Postby Bruce C » September 21st, 2011, 6:40 pm

Other than a custom job, the only thing I can think of would be to have the business free level set as Subscriber + Custom Capability "business". Then, when a person signs up as a business, they will stay a business, and people will stay people.

Does that make sense?
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: EOT Demote to specific role instead of Subscriber

Postby poeta » September 22nd, 2011, 9:31 am

Thanks Ace,
That sounds logical. I'm testing it now and will report back if indeed it keeps the custom capability.
Thanks a lot for your prompt response.
User avatar
poeta
Registered User
Registered User
 
Posts: 6
Joined: September 21, 2011

Re: EOT Demote to specific role instead of Subscriber

Postby Cristián Lávaque » September 25th, 2011, 4:46 pm

If I remember correctly, EOT Behavior would remove custom capabilities too.

You could maybe try the Notifications API to trigger a custom behavior on EOT. WP Admin -> s2Member -> API / Notifications
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: EOT Demote to specific role instead of Subscriber

Postby poeta » September 30th, 2011, 11:53 am

Hi guys,
Actually I did it per Ace's suggestion. it works. and yes Christian is right as well that EOT removes custom capabilities as well. I just created a small plugin to check if certain field are fill in that are only required for Business members and update the role for the user to Business. This insure that they get the Business capability back even when EOT removes it. Thx guys for your help.
User avatar
poeta
Registered User
Registered User
 
Posts: 6
Joined: September 21, 2011

Re: EOT Demote to specific role instead of Subscriber

Postby Cristián Lávaque » October 1st, 2011, 2:04 pm

Cool. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron