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.

Jason (Lead Developer)

Staff Member

My Latest Replies (From Various Topics)

Viewing 25 replies - 176 through 200 (of 1,909 total)
Author Replies
Author Replies
Posted: Thursday Feb 21st, 2013 at 2:11 am #42656
Staff Member

Are there any JavaScript errors popping up on your site in the browser’s developer console?
Any JavaScript errors introduced by your theme or by other plugins could cause issues for s2Member® as well (i.e. unexpected behavior that can’t otherwise be explained).

See: FireBug (I recommend this tool for debugging JavaScript issues)

Posted: Thursday Feb 21st, 2013 at 2:08 am #42655
Staff Member

Thanks for the heads up on this thread :-)

Sorry, I’m not that familiar with the WPML plugin yet. What do the URLs to your feeds look like exactly? Is there a language variable passed through; or how are these three URLs different? Thanks!

I will most likely suggest URI Restrictions for this.
See: Dashboard -› s2Member® -› Restriction Options -› URI Access Restrictions

Posted: Thursday Feb 21st, 2013 at 2:04 am #42653
Staff Member

It is best to use either a full URL to your image, or a relative path from the document root.

Full URL: http://www.example.com/wp-content/uploads/logo.png
Relative path from root: /wp-content/uploads/logo.png

Posted: Thursday Feb 21st, 2013 at 2:02 am #42651
Staff Member

Thanks for the heads up on this thread :-)

s2Member® waits for one of these IPN txn_type values before it does anything.

subscr_eot
recurring_payment_expired
recurring_payment_suspended_due_to_max_failed_payment
recurring_payment_profile_cancel

s2Member® also deals with refunds/chargebacks, and these are indicated by IPNs that include payment status values like: refunded, reversed, reversal or initial_payment_status=failed

Posted: Tuesday Feb 19th, 2013 at 8:27 pm #42533
Staff Member

Thanks for your inquiry. ~ We appreciate your patience :-)

I would suggest using the filter provided by s2Member® for this Shortcode.
ws_plugin__s2member_sc_get_stream

Please create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
(NOTE: these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins)
(See also: http://www.s2member.com/kb/hacking-s2member/)

http://www.s2member.com/codex/stable/source/s2member/includes/classes/sc-files-in.inc.php/#src_doc_line_97

# A quick example to get you started…
if(isset($vars[‘get’]) && !empty($vars[‘_get’]))
{
$_get = $vars[‘_get’];
$my_template = file_get_contents(‘/my-jw5-player.html’);
$my_template = preg_replace(“/%%streamer%%/”, $_get[“streamer”], $my_template);
$my_template = preg_replace(“/%%prefix%%/”, $_get[“prefix”], $my_template);
$my_template = preg_replace(“/%%file%%/”, $_get[“file”], $my_template);
$my_template = preg_replace(“/%%url%%/”, $_get[“url”], $my_template);
}
}
else return $what_s2_says;
}
[/hilite]
[info_box]
See also this class method in the s2Member® Codex: http://www.s2member.com/codex/stable/source/s2member/includes/classes/sc-files-in.inc.php/#src_doc_line_97
[/info_box]

Posted: Tuesday Feb 19th, 2013 at 8:08 pm #42530
Staff Member

Investigation completed.

I found that your WordPress® installation has had some different versions of bbPress installed on it from the past. It seems to have caused some mild database corruption with respect to Roles/Capabilities in WordPress®. Your default set of Roles/Capabilities for WordPress® was missing several important things.

We’ve reset your Roles/Capabilities for WordPress® and s2Member® back to a default state. This corrects the issue that you have been reporting.

Please let us know if problems persist :-)

Posted: Tuesday Feb 19th, 2013 at 7:56 pm #42529
Staff Member

Details received. Thank you!

~ Investigating now.

Posted: Tuesday Feb 19th, 2013 at 5:38 am #42470
Staff Member

Very welcome!

Posted: Tuesday Feb 19th, 2013 at 5:22 am #42467
Staff Member

WordPress® operates on UTC time, because the WordPress® framework forces PHP to a UTC timezone when it initializes. So while you can configure your local time zone for WordPress; that only affects the way dates/times are expressed on-site. It does not affect the way dates/times are actually calculated in most of WordPress.

s2Member’s EOT Times are always based on UTC time. So you are correct to have UTC time in this customization. It’s just important to realize what this really means. It means that every customer will have 14 hours of access. It starts from the UTC time they pay you; and it ends 14 hours later (which is good).

Just keep this in mind when EOTs occur, they occur at UTC time; and it can be somewhat confusing if you’re ahead or behind that time; as most people are. Here is an example to indicate how this works.

Customer pays at: 12:00 am UTC time (1:00 am your time).
Customer’s EOT Time is set to: 2:00 pm UTC time (3:00 pm your time).

The timezone of the customer is not relevant here. Not really.

Posted: Tuesday Feb 19th, 2013 at 5:09 am #42465
Staff Member

Looks good Ronnie.

In this part of your code.
strtotime('+14 hours') — keep in mind that is UTC time; it’s NOT your local time.

Posted: Tuesday Feb 19th, 2013 at 5:06 am #42464
Staff Member

Thanks for the follow-up :-)

First off, I would highly recommend that you upgrade to the latest release of s2Member® and s2Member® Pro. The latest release at this time is s2Member® v130214. You are currently running a release from last year.

Secondly, your existing configuration of s2Member® is incomplete. You are currently missing your PayPal® PDT Identity Key and there are no API Credentials supplied for s2Member®. Please review this section of your Dashboard. See: Dashboard -› s2Member® -› PayPal® Options -› Account Details

See also: Dashboard -› s2Member® -› PayPal® Options -› PayPal® PDT Integration

Please let us know if problems persist :-)

Posted: Tuesday Feb 19th, 2013 at 4:59 am #42463
Staff Member

Thanks for your patience.

I just took a look at your installation and I ran diagnostics against s2Member® and s2Member® Pro.

Your installation directory here: /wp-content/plugins/s2member-pro/ is incomplete. It appeared to be missing the entire /includes/ directory (like it failed during your upload perhaps).

I tried to delete the entire directory and upload a fresh copy for you, but during my upload the server is returning random errors with “password failed”. This could indicate that my access is limited in some way; or it could indicate a larger problem with this server

I would make an attempt yourself to re-upload a fresh copy of the latest release of s2Member® Pro. Then run the s2Member® Server Scanner to be sure you don’t get any checksum errors. For your convenience, I’m uploading the s2Member® Server Scanner for you. So just run this scanner after you re-upload to make sure everything made it in there OK :-) Visit: /academy/s2-server-scanner.php in your browser.

Posted: Tuesday Feb 19th, 2013 at 4:18 am #42457
Staff Member

Details received. Thank you!

~Investigating now.

Posted: Tuesday Feb 19th, 2013 at 4:12 am #42456
Staff Member

Thanks Ronnie!

Posted: Tuesday Feb 19th, 2013 at 4:05 am #42453
Staff Member

@ Ronnie

Your thread was updated here. Thanks!
http://www.s2member.com/forums/topic/urgent-eot-not-correct/#post-42451

Posted: Tuesday Feb 19th, 2013 at 4:01 am #42451
Staff Member

Thanks for your patience.

We will be introducing a filter for this (at the very least) in the next maintenance release. I’m attaching a PATCH file for you in the mean time; in case you’d like to jump the gun a bit. Please unzip and upload the attached file, allowing it to override your existing copy of /s2member/includes/classes/utils-time.inc.php

PATCH: http://d1v41qemfjie0l.cloudfront.net/s2member/uploads/utils-time.inc_.php_.zip

Then follow these instructions to apply the Filter you desire.

Please create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
(NOTE: these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins)
(See also: http://www.s2member.com/kb/hacking-s2member/)

Regarding Eduan’s response earlier. I’m sorry about that Ronnie. I don’t think he meant to come off as being rude; but I can see why you might have that impression. I will notify Eduan about this. He’s a good guy.

Why on earth would someone give out 1 day for free if he has the option to only sell 1 day access?
Why would you even code it to auto behave like that.. The option should atleast be there “Do you want to be a serious business or do you want to give away stuff for free?”

This is meant as a grace period, because often times a customer does NOT understand how these times work; particularly when they are in a different time zone. So while it might be something that you’re not thrilled about (and I can understand that); this is an edge case. Most site owners will agree that a grace period is ideal in most scenarios; because a customer being upset they lost access too soon, is usually not desirable. Even if it’s handled perfectly (i.e. right on time); anything too soon, from a customer’s perspective, will result in negativity.

One extra day in the case of a 1 day access though, I can see where that would become an issue. I will see what we can do about this in the next release; even beyond the filter I’m preparing here for you.

Posted: Tuesday Feb 19th, 2013 at 3:20 am #42447
Staff Member

Thanks for your patience.

Testing completed. Your installation remains up-to-date.

We discovered a connection issue on your server. It appears that your server has a firewall or a possible misconfiguration that is preventing outbound connections to our update server at: http://www.s2member.com. All attempts to make an HTTP connection from your server to http://www.s2member.com fail with timeouts.

'url' => 'http://www.s2member.com/?s2_pro_upgrade%5Busername%5D=xxxxxxxx&s2_pro_upgrade%5Bpassword%5D=xxxxxxxx&s2_pro_upgrade%5Bversion%5D=130213',
'response' => 
WP_Error::__set_state(array(
   'errors' => 
  array (
    'http_request_failed' => 
    array (
      0 => 'connect() timed out!',
    ),
  ),
   'error_data' => 
  array (
  ),
)),

You will need to contact your hosting company about this please.

Posted: Tuesday Feb 19th, 2013 at 2:33 am #42444
Staff Member

Thanks for your reply :-)

We’re going to run some tests now. Please stand by for a second notification that we have completed the tests.

Posted: Tuesday Feb 19th, 2013 at 2:31 am #42443
Staff Member

Did you paste in ALL that code, or just the URL itself?
All s2Member needs is the URL itself. You can take out everything else except the URL; on one line please.

Posted: Tuesday Feb 19th, 2013 at 2:28 am #42442
Staff Member

Thanks for your inquiry. ~ We appreciate your patience :-)

You can use the WordPress® function get_users()

Example code:

<?php
foreach(get_users('role=s2member_level1') as $user)
	echo $user->ID.'<br />';
?>

See also: Knowledge Base » s2Member® Roles/Capabilities
See also: Knowledge Base » Changing Roles/Capabilities via PHP

Posted: Tuesday Feb 19th, 2013 at 2:24 am #42441
Staff Member

I’m sorry, please clarify a bit further. Thanks!

Posted: Tuesday Feb 19th, 2013 at 2:23 am #42440
Staff Member

Thanks for your inquiry. ~ We appreciate your patience :-)

Please correct this mistake in your Simple Shortcode Conditional and try this again for us. Please let us know if you have any further trouble. See also: Knowledge Base » Simple Shortcode Conditionals

[_s2If !current_user_can("access_s2member_ccap_mainfiles")]

Should be: [_s2If !current_user_can(access_s2member_ccap_mainfiles)]
No quotes inside a Shortcode Conditional please; that messes up the Shortcode parser unfortunately.

Posted: Tuesday Feb 19th, 2013 at 2:18 am #42438
Staff Member

Thanks for your reply :-)

I see. Payment data is a problem. Thank you.

I’m forwarding this to accounting for you. A refund will be processed and you will receive a confirmation of this via email from Elizabeth tomorrow; or asap.

Posted: Tuesday Feb 19th, 2013 at 2:07 am #42437
Staff Member

Thanks for your inquiry. ~ We appreciate your patience :-)

Anyhow, the original question was whether or not a post can be BOTH available to paid members and as a pay-per-post for non-members. The answer given was yes, however, the man in the video linked in that answer specifically states not to put a paid membership restriction and a single post restriction in the same post because the functions will create a conflict

This is correct. Perhaps I did misunderstand the question. I’m not entirely sure because that particular topic never received any additional replies. You are correct though, that DOES create a conflict. The video is correct.

What I meant is that both functionalities are possible with s2Member®. It IS possible to sell Membership Access, and also to sell Specific Posts/Pages that do not require Membership.

It’s not possible to protect a Specific Post/Page being sold through s2Member®, with Membership Access also. This is because s2Member® will force a User to satisfy all requirements before being allowed to view the content. Being a Member is not necessarily enough to access a Post or Page that is protected by Specific Post/Page Access; that Member needs to have purchased that Specific Post/Page for themselves.

This is actually what makes Specific Post/Page Access powerful though. It’s functionality is completely independent from Membership. Being a Member does not give them access to that Specific Post/Page; they need to purchase that Post or Page like anyone else.

Possible solution for you.

Duplicate the content you’re selling across two different Posts/Pages. Make one of them available to Members; and sell one of them through Specific Post/Page Access to non-Members (or even to existing Members — that’s fine too). That should do it!

This plugin that I wrote, could really help with that. You would create and store the content just ONE time, but use it as a Snippet and duplicate it into multiple Posts/Pages.

See: Knowledge Base » WP Snippets (A Plugin for WordPress®)

Please let us know if you have any other questions/concerns :-)

Posted: Tuesday Feb 19th, 2013 at 1:52 am #42434
Staff Member

Thanks for your inquiry. ~ We appreciate your patience :-)

Please see this post from just a couple days ago. The same issue was reported by another site owner, but seemed to clear itself right up shortly after. It’s almost as if there is a bug in the AWeber Email Parser testing station. See: http://www.s2member.com/forums/topic/custom-email-parser-for-aweber-name-field/

See also: Knowledge Base » Debugging the AWeber integration

Also, if a person signed up as a free subscriber and then shortly upgraded to a paid subscriber before he has “confirmed” his subscription with aweber list, will it cause s2 to not move him from the free list to the subscribed list that I had set up?

This behavior can be configured here.
See: Dashboard -› s2Member® -› API / List Servers -› Automate Unsubscribes/Opt-Outs

Viewing 25 replies - 176 through 200 (of 1,909 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.