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: Darren Ethier

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


Topics I'm Subscribed To


Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
PHP Notice caught in latest version of s2mem

By:  Darren Ethier in: Community Forum

voices: 2
replies: 2

4 years, 3 months ago  Raam Dev

New EOT date isn't what expected

By:  Darren Ethier in: Community Forum

voices: 2
replies: 6

4 years, 5 months ago  Cristián Lávaque

remove_action on authnet.js not working

By:  Darren Ethier in: Community Forum

voices: 3
replies: 2

4 years, 7 months ago  Jason (Lead Developer)

Viewing 3 topics - 1 through 3 (of 3 total)

My Latest Replies (From Various Topics)

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Tuesday Nov 20th, 2012 at 8:52 pm #32179

There’s a fix for this that will be added in bbPress 2.2.1 http://bbpress.trac.wordpress.org/ticket/2042

Posted: Tuesday Nov 20th, 2012 at 4:45 pm #32144

The gist I posted has been updated. No need to visit Tools->Forums now. With the plugin I posted active, existing users with s2member roles and future users with s2member roles will have the default bbPress role added when they are logged in.

s2member devs, feel free to incorporate the code in a future version of s2member to handle the new bbPress roles.

Posted: Tuesday Nov 20th, 2012 at 2:38 pm #32123

I whipped up a little plugin to help with fixing this folks -> https://gist.github.com/4120493

Make sure you read the comments at the top of the file for instructions.

Posted: Thursday Sep 27th, 2012 at 11:02 am #26705

Just a note that this doesn’t appear on every page load. So it appears that that variable is sometimes defined and sometimes not.

Posted: Sunday Jul 22nd, 2012 at 7:24 pm #19952

Subscriptions can be confusing can’t they :) We have our purchases setup for buy now fixed term.

Posted: Sunday Jul 22nd, 2012 at 7:23 pm #19951

(I posted this earlier but for some reason it disappeared? Maybe I was just previewing it and forgot to actually post).

Okay, now I know what happened.

In the file

utils-time.inc.php

around line 189 is the calculation of the eot days and time using the eotper:

list ($num, $span) = preg_split ("/ /", $eotper, 2);
/**/
$days = 0; /* Days start at 0. */
/**/
if (is_numeric ($num) && !is_numeric ($span))
        {
        $days = ($span === "D") ? 1 : $days;
        $days = ($span === "W") ? 7 : $days;
        $days = ($span === "M") ? 30 : $days;
        $days = ($span === "Y") ? 365 : $days;
    }
/**/
$eot_days = (int)$num * (int)$days;
$eot_time = $eot_days * 86400;

We currently have the non-recurring subscription set to 12 months. With the calculation above, 12 * 30 = 360 days. 1 day is added by s2member later so that gives me 4 days off of the usual 365 days which pretty much matches our “missing days”. To fix this we’d have to change our non-recurring subscription to 1 year instead of 12 months.

Posted: Sunday Jul 22nd, 2012 at 8:39 am #19940

This is a non-recurring subscription (acting as a buy now) – and I’m aware of the Fixed-Term Extensions (auto-extend) feature which is enabled.

At first I was thinking what you suggested was happening too, but the customer made the purchase two days ago (July 20) so IF that was the case then there would be quite a few more days missing from their new expiry date (as given above).

I just posted here to see if you had a quick answer for why this may be happening. No worries, I’ll just dive into the code and see if I can figure it out myself. If I can, I’ll post back here so you guys can use whatever I fine in improving the EOT system.

BTW, we’ve got s2member working quite well on our site (EventEspresso.com) integrated with bbPress and a lot of customization :)

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