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.

About: Dirk Zeugmann

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To


My Latest Replies (From Various Topics)

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Sunday May 12th, 2013 at 5:10 pm #49792

After several re- and un-installations I think I found the problem. The plugin w3 total cache seems to be the reason for the double trigger of the notification.

Are there any incompatibilities of s2member with this plugin known?

Best Regards

Posted: Sunday Apr 14th, 2013 at 7:44 am #47448

Oh, never mind please. I found the solution myself, didn’t use the success=”” tag until now. Sorry and thank you!!

Posted: Sunday Apr 14th, 2013 at 7:25 am #47447

Yes, it works to a certain extend. After successful registration I am forwarded back to the form I just filled out. When I make the next click, the user is automatically logged in.

Is there any way that I can define the site to which the user should be forwarded at that point, so that he doesn’t come back to the form he just filled out?

Thank you!

Posted: Sunday Apr 14th, 2013 at 7:05 am #47445

Thank you for your answer!

That’ll demote everyone to Level 1, even Level 1 users.

Yes, I know that. But meanwhile I changed the concept, so that demoting to subscriber is ok.

I think s2Member uses UTC to set the EOT. If you need to modify it, you could probably use the grace time setting. Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior -> EOT Grace Time

Ok, I will look into it and see what the best solution might be for me.

Meanwhile I tried to use this hack:

http://www.s2member.com/kb/auto-login-upon-registration/

But it doesn’t work for me. Do I have to make additional settings in the s2member Backend?

I also don’t use a custom success shortcode, so at the moment I don’t see where the problem might be..

Here is an example shortcode I use:

[s2Member-Pro-PayPal-Form level="2" ccaps="" desc="Komfort Zugang für ein Jahr 45 € (zzgl. 19% Ust. -> 53,55 €)" ps="paypal" lc="" cc="EUR" dg="0" ns="1" custom="www.example.de" ta="0" tp="0" tt="D" ra="45" rp="1" rt="Y" rr="0" rrt="" rra="2" accept="paypal,visa,mastercard" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="DE" lang="de_DE" captcha="0" /]

Thank you again! Have a nice and sunny sunday.

Posted: Friday Apr 12th, 2013 at 2:37 pm #47320

Ok, I seem to have solved the issue. Somehow the if statement with the or operator doesn’t work. I experienced the same issue with my first attempt. My solution now is:

add_filter("ws_plugin__s2member_force_demotion_role", "my_demotion_role");
function my_demotion_role($role = 'subscriber') {
        $role = 's2member_level1';
	return $role;
}

And could you please comment on my second question in my first post? Thank you!

And another problem I found is, that the date timestamp of the registration is saved after UTC 0 and the EOT time is calculated accordingly to that value. But here in Germany we have +2 hours (normally just +1hour, but now in the summertime timezone its +2). When I look in the user overview of the wp backend, the registration time is shown correctly like the registration time was here in Germany at that moment. But I guess the EOT time doesn’t take this into account, so in total the registered user looses, in that case 2 hours of his payed for time.

I’m basing my assumption on the timestamp saved in core_s2member_auto_eot_time. Or is there a function in your plugin that takes this into account and gives the user the correct EOT time?

Best Regards

Posted: Friday Apr 12th, 2013 at 8:19 am #47303

Hi Cristián,

thank you for your answer, but it doesn’t work for me. I deleted my s2hacks_auto_eots_override.php and inserted your code into my s2hacks.php, but the users still get demoted to subscriber, no matter which level they are as default.

Here is what I pasted in:

add_filter("ws_plugin__s2member_force_demotion_role", "my_demotion_role");
function my_demotion_role($role = 'subscriber') {
    	if (current_user_is('s2member_level3') || current_user_is('s2member_level2')) {
            	$role = 's2member_level1';
        }
	return $role;
}

Do you have another idea?

Thank you!

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

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.