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™

Upgrade Membership Template Help

s2Member Plugin. A Membership plugin for WordPress®.

Upgrade Membership Template Help

Postby ryanseo » November 1st, 2011, 11:14 am

I'm trying to setup a membership upgrade template and implementing PayPal Pro Upgrade Forms.

What's the easiest way to setup a conditional based template for upgrading their account membership based on the account theyre logged in as and that role of the account (s2member_level1 , 2 ,3 - im using 3 plans).

Here's my setup, I have setup my Gravity Forms to do alot of the work involved in the membership site I have built and have essentially tied the roles/meta fields to s2member. s2member handles the roles, capabilities and everything in terms of diversification of content, security, etc. - Gravity forms simply handles the initial process of creating the post and registering the user with the correct roles, details.

These users can create their own posts once an account is created (i made a custom front end dashboard for users to edit the posts they've created, draft/undraft, etc). The post details differ depending on the plan.

What I'm trying to do is make a membership upgrade template so that if they're role is level 1 they can upgrade to 2 or 3, etc. - would it go something like this if level 1 -> 2 or 3 , if level 2 -> 1 or 3 , if level 3 -> 1 or 2?

Also, another question is that since I used PayPal Addon by Gravity Forms for the initial process , will this conflict with the paypal setup within s2member while utilizing the PayPal Pro Upgrade forms?

If so, would you know of a solution or a direction to head for implementing something into Gravity Forms to go along with this process?

Thanks
User avatar
ryanseo
Registered User
Registered User
 
Posts: 27
Joined: January 10, 2011

Re: Upgrade Membership Template Help

Postby ryanseo » November 1st, 2011, 11:25 am

Actually, from looking at the PayPal Button Codes... Would it be easier to just have s2member handle the user registration and based on the role/plan selected for the user. This way, on a success return, it will take them to 1 of 3 gravity form post creation forms for the role they chose , this will assign the necessary values and fill in the gap of my post templatization per role of author. Since my listing site only allows them to have one listing, with some php code I could plug in some restrictions their on the dashboard template I had setup. Would this work?
User avatar
ryanseo
Registered User
Registered User
 
Posts: 27
Joined: January 10, 2011

Re: Upgrade Membership Template Help

Postby Cristián Lávaque » November 2nd, 2011, 2:07 am

ryanseo wrote:Actually, from looking at the PayPal Button Codes... Would it be easier to just have s2member handle the user registration and based on the role/plan selected for the user. This way, on a success return, it will take them to 1 of 3 gravity form post creation forms for the role they chose , this will assign the necessary values and fill in the gap of my post templatization per role of author. Since my listing site only allows them to have one listing, with some php code I could plug in some restrictions their on the dashboard template I had setup. Would this work?


That's probably how I'd try to do it, if I understood your requirements correctly.

Actually, I wouldn't bother returning them to a different page based on the plan, I'd just change the content of the page using a conditional.

Conditionals for the template too. http://www.s2member.com/advanced-conditionals-video/

About the plans, I see you're using levels for them. Remember that levels give an increasing access, so Level 3 would have access to levels 2, 1 and 0 as well. Not sure if that's what you want. If not, then you may want custom capabilities. http://www.s2member.com/custom-capabilities-video/

I hope that helps. :)
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: Upgrade Membership Template Help

Postby ryanseo » November 2nd, 2011, 8:13 am

This is fine, my direction with this site is simply a membership section for companies to post 1 listing under an account and that listing shows differently based on the role of the user posting. I placed advanced conditionals into the necessary templates to diversify what each role sees from the dashboard , post editing template, delete post template, etc. The one issue I'm having now while trying to use the pro registration forms and I have opened another thread on this is the fact that my openssl / curl / https isn't working, ive tried enabling these within php.ini and restarting apache but didn't seem to do anything and still shows my https wrapper and openssl extension being disabled. I'll continue that issue in that post as the title of this post is different and i have resolved this aspect of s2member.

-- Update*: This issue has been figured out (ssl not being enabled).... I simply rebuilt my Apache with SSL with PHP using EasyApache in WebHostManager and was able to enabled OpenSSL / HTTPS Wrapper. Everything seems fine now and back to normal.
Last edited by ryanseo on November 2nd, 2011, 5:16 pm, edited 1 time in total.
User avatar
ryanseo
Registered User
Registered User
 
Posts: 27
Joined: January 10, 2011

Re: Upgrade Membership Template Help

Postby Cristián Lávaque » November 2nd, 2011, 4:41 pm

Ah, got ya. Yeah, I saw the other thread and emailed Jason about it.
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: Upgrade Membership Template Help

Postby ryanseo » November 2nd, 2011, 5:16 pm

ISSUE RESOLVED**: This issue has been figured out (ssl not being enabled).... I simply rebuilt my Apache with SSL with PHP using EasyApache in WebHostManager and was able to enabled OpenSSL / HTTPS Wrapper. Everything seems fine now and back to normal.
User avatar
ryanseo
Registered User
Registered User
 
Posts: 27
Joined: January 10, 2011

Re: Upgrade Membership Template Help

Postby Cristián Lávaque » November 2nd, 2011, 11:49 pm

Great. :)
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: Exabot [Bot], Yahoo [Bot] and 2 guests

cron