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.

Fixed EOT during registration?

Home Forums Community Forum Fixed EOT during registration?

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

Topic Author Topic
Posted: Friday Dec 7th, 2012 at 11:33 am #33898
eBierek
Username: eBierek

Hi,

I’m wondering how I can give members a fixed EOT? No matter when the member registers, their EOT should always be set to 31/12/current year.

Any suggestions what might be suitable?
Thank you in advance.

List Of Topic Replies

Viewing 9 replies - 1 through 9 (of 9 total)
Author Replies
Author Replies
Posted: Friday Dec 7th, 2012 at 5:22 pm #33932
Posted: Wednesday Dec 19th, 2012 at 2:54 pm #35085
eBierek
Username: eBierek

Hi again,

Thanks for the advice. This works great. When a new member registers, EOT is set to ‘current-year/12/31’.

Question for next step:
During the period of november 1st – 30th every year existing and logged in members can renew their membership. (I’m thinking they would access a renew-page in member menu.)

Then EOT should be set to ‘current-year+1/12/31’, but what would be the best method to do that? Another form? Paypal button (using paypal express checkout)? Are there hooks for renewals?

(After ‘current-year/12/31’ has passed, non paid members gets demoted, and can only see an upgrade page if they try to log in.)

Posted: Thursday Dec 20th, 2012 at 8:47 am #35149

Glad that helped. :)

During the period of november 1st – 30th every year existing and logged in members can renew their membership. (I’m thinking they would access a renew-page in member menu.)

Then EOT should be set to ‘current-year+1/12/31′, but what would be the best method to do that?

If they can only renew during that time, then you can show/hide the pro-form with a conditional that checks if the current month is November using the date function.
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals[/hilite]
http://php.net/date

Posted: Thursday Dec 20th, 2012 at 3:45 pm #35188
eBierek
Username: eBierek

Do you mean the same form that new members use to register or a completely new form? Since this time, the EOT should be set to ‘current-year+1/12/31′ instead of ‘current-year/12/31′.

Posted: Saturday Dec 22nd, 2012 at 8:20 am #35310

I don’t know if you need it to be a different pro-form… I thought the renewal would only be possible in November, then a pro-form wouldn’t be available the rest of the time. But if payments were possible the other months, you can have a different pro-form show up in the same page using the conditional: if it’s November show this pro-form, if not show this other one.

Posted: Thursday Jan 3rd, 2013 at 7:38 am #36099
eBierek
Username: eBierek

Hello again,

Here are some more info:
The regular pro-forum will be available all year around for new members. Sets EOT to ‘current-year/12/31’.

The renewal pro-form will be available say during november-december only and only for current members.
Must set EOT to ‘current-year+1/12/31’.

So the forms will, at some point, be avaliable at the same time. Are there different hooks to use in the s2hacks-file for the renewal form, for setting the right form of EOT? Would it be a good idea to check if user is loged in and if month nov-dec then show the renewal form?

Then it’s the third option, when a member don’t/ forgets to renew and gets demoted – then we need the upgrade pro-form/button or something similar? Does upgrades work differently?

Thanks in advance
Emily

Posted: Saturday Jan 5th, 2013 at 6:28 am #36243

The regular pro-forum will be available all year around for new members. Sets EOT to ‘current-year/12/31′.

That’s fine.

The renewal pro-form will be available say during november-december only and only for current members.
Must set EOT to ‘current-year+1/12/31′.

Okay. This one would need a conditional around it to determine if time to show it or not.

So the forms will, at some point, be avaliable at the same time. Are there different hooks to use in the s2hacks-file for the renewal form, for setting the right form of EOT? Would it be a good idea to check if user is loged in and if month nov-dec then show the renewal form?

No need to use a hacks file. You can have a page accessible to Level 1 users (assuming that’s the paid access you sold), so only them would see this page. And in it you’d have a condition that checks the month and shows the renewal pro-form during November and December only.

Then it’s the third option, when a member don’t/ forgets to renew and gets demoted – then we need the upgrade pro-form/button or something similar? Does upgrades work differently?

Upgrade works just like the original sale, but when the user is logged in. So you’d have this pro-form in a page protected at Level 0 and you can have the pro-form inside a condition that checks if the user is at Level 0 and not higher. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals -> Example 3[/hilite]

[hilite pre_code]
[[s2If current_user_is(s2member_level0)]
Some content for Free Subscribers.
[/s2If]]
[/hilite]
Posted: Tuesday Jan 8th, 2013 at 5:54 am #36561
eBierek
Username: eBierek

Hi and thank you for answering :)

No need to use a hacks file. You can have a page accessible to Level 1 users (assuming that’s the paid access you sold), so only them would see this page. And in it you’d have a condition that checks the month and shows the renewal pro-form during November and December only.

But the EOT-code for renewal/upgrade must be in the s2hacks file, no?

Sorry if the questions are confusing.

Posted: Wednesday Jan 9th, 2013 at 6:03 am #36720

No, that can be in the same page too.

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.