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.

Home Forums Bruce

Bruce

Staff Member

My Latest Replies (From Various Topics)

Viewing 25 replies - 1,026 through 1,050 (of 2,703 total)
Author Replies
Author Replies
Posted: Monday May 6th, 2013 at 6:47 pm #49295
Bruce
Username: Bruce
Staff Member

I found this article: http://www.s2member.com/forums/topic/recurring-prorating-of-billing/ but it is from 2011 and the suggestion isn’t working for me. Although I am not a developer so it could be user error.

This article goes over the method that is still needed to accomplish what you’re looking for here. s2Member does not natively support prorating subscriptions and having subscriptions start at a certain time so it takes some custom code. For your setup your code would start something like this:

<?php
$now = strtotime("now");
$recurring_start_time = strtotime("01 May 2013");
$days_until_recurring_charges_begin = round(($recurring_start_time - $now) / ($seconds_in_one_day = 86400));
?>
That’s about as far as we can go with custom code. If you need further assistance, we recommend http://jobs.wordpress.net, or another freelance web site where WordPress® experts are offering their expertise through a bid on your project.
Posted: Monday May 6th, 2013 at 6:44 pm #49293
Bruce
Username: Bruce
Staff Member

Thanks for the follow-up.

1. The custom capabilities you mentioned will only work on Post and not Pages? If so, this is fine so I have a better plan to start with.

You can use Custom Capabilities to protect Posts, Pages, and specific parts of content with Condtionals. They do not, however, allow you to restrict Categories, Tags, or URIs like you can with levels.

2. Members can sign up to multiple recurring subscriptions? What are the requirements on this? Does user have to be logged in before making a purchase? PayPal won’t overwrite duration do their previous membership? Basically, S2member knows that 1 user have 2 different durations available that it can manage?

s2Member will never allow a User to have multiple recurring subscriptions. You can add Custom Capabilities to a User’s plan with Buy-Now buttons, or have them upgrade their subscription to include Custom Capabilities, but you can’t have multiple subscriptions at the same time.

3. I plan to use Paypal pro, so all this will still work without the user leaving my site?

Yes, s2Member will allow you to use Custom Capabilities with PayPal Pro Forms.

See: Dashboard -› s2Member® -› PayPal® Pro Forms -› Capability (Buy Now) Forms

4. You mentioned Buy now capability, but can this also work with recurring subscription?

You can add Custom Capabilities to a User’s current subscription the same way you would upgrade them to a new Membership Level.

See: Dashboard -› s2Member® -› PayPal® Pro Forms -› Billing Modification Forms

Posted: Monday May 6th, 2013 at 6:32 pm #49292
Bruce
Username: Bruce
Staff Member

Note: the “Custom capabilities” part is missing from the URE settings form. Screenshots are posted here:
http://wordpress.org/support/topic/critical-saving-settings-breaks-all-s2member-access-checks?replies=2#post-4163048

It looks like the problem was addressed by the plugin developer. Let us know if problems persist.

Posted: Monday May 6th, 2013 at 6:30 pm #49290
Bruce
Username: Bruce
Staff Member

The message I get from wordpress is that the css stylesheet is missing.

It sounds like you’re trying to install s2Member in the Theme’s section of your Dashboard. You’ll want to use the Plugin section of your Dashboard to upload s2Member.

Dashboard -> Plugins -> Add New

Posted: Sunday May 5th, 2013 at 2:08 pm #49242
Bruce
Username: Bruce
Staff Member

What is the extact question I should ask or verify with my hosting company because I have another client (with OpenCart) using the same hosting company, they haven’t has any problem to use the Paypal serive.

I couldn’t tell you what exactly is happening to cause this, only that the connection to PayPal is failing completely. You’ll need to ask your server why this is happening. It’s something beyond the reach of s2Member.

Posted: Saturday May 4th, 2013 at 6:58 pm #49225
Bruce
Username: Bruce
Staff Member

Let me know please if you have any ideas on how to temporarily patch this.

You could try adding the capability to the levels with the User Role Editor plugin. That might work correctly.

Posted: Saturday May 4th, 2013 at 1:30 pm #49212
Bruce
Username: Bruce
Staff Member

Thanks, when a member signs up will they automatically be granted permission via their member login or will they get a link unique to them they will have to keep using?

Specific Post/Page Restrictions are done outside of User accounts. As I mentioned in my previous reply s2Member won’t let you have multiple subscriptions on one account. They’ll need to use the special key in the email they’ll receive.

Posted: Saturday May 4th, 2013 at 1:28 pm #49211
Bruce
Username: Bruce
Staff Member

Thank you for your patience.

According to the logs, your connection is timing out:

0 => ‘connect() timed out!’,

This is a connection to PayPal, and it’s very unlikely that PayPal’s servers are the ones rejecting yours. It sounds like something on your server is preventing this connection from happening.

You told me earlier that you ran the s2Member Server Scanner and it came back fine, so that means that OpenSSL, fopen() and/or cUrl are installed. This sounds like something a Blacklist Plugin or a server-side program is causing. I’d recommend calling your hosting company for information on what’s causing this.

Posted: Saturday May 4th, 2013 at 1:24 pm #49210
Bruce
Username: Bruce
Staff Member

However, it seems to return it in this format: m/d/Y.

You can change the format of the return based on what you pass into the first parameter.

See: http://php.net/manual/en/function.date.php

Secondly, I’ve been doing some test subscriptions – they come through but no timestamp is added. i thought it maybe before the 1st period is a trial, but i should still think it would come through?

s2Member doesn’t get an EOT date until a subscription is canceled with PayPal. This is because the subscription is not yet set to expire, so there is no End of Term to set. These Users will get an End of Term date after their PayPal subscription reaches an end, or the subscription is canceled.

Can you tell me how to get this field in this format in the S2M export?

This would require a hack. s2Member is only able to send the timestamp by default.

Posted: Saturday May 4th, 2013 at 1:19 pm #49209
Bruce
Username: Bruce
Staff Member

But I don’t want to lose the customization. Any hack to use as mu plugin?

You can load in any s2Member class within a Must-Use Plugin to overwrite the original file. s2Member uses PHP Classes with an autoloader, so if the Class already exists on your installation s2Member won’t load in the default Class.

See: http://php.net/manual/en/language.oop5.autoload.php

Posted: Saturday May 4th, 2013 at 1:16 pm #49208
Bruce
Username: Bruce
Staff Member

Thanks for the follow-up.

I have tried your link and it certainly got different behaviour. The error is printed below. I also tried some other mod links including -s3 which gave me a 404

If you’d getting an error like this it means that s2Member did connect to Amazon and is attempting to read the file normally, so my suspicions were correct in this regard. However it appears that now you have another problem with your keys.

Note that adding the bucket name to the URL is not needed, because you’re only setting up one bucket and s2Member automatically checks the bucket you have set up, so you just need to use the regular linkage.

Finally, and with some interest, I see that the count of files down loaded while I have been trying different paths, has gone to 4. Yet as far as I am concerned there is no file?

That’s to be expected. s2Member is checking to see if the User has access, and then draining the count on that account and sending them to Amazon’s servers. s2Member can’t tell if Amazon is failing of not. I’m recommend changing your settings to allow unlimited downloads while we’re testing.

See: Dashboard -› s2Member® -› Download Options -› Basic Download Restrictions


Based on what I’ve read on the NoSuchKey error, as you have, this is a 404 error, so either you have your bucket name wrong, your bucket’s name is invalid (should be all lower case), or there is a network problem that’s causing a 404 somewhere.

Are you using Cloudfront CDN as well?

I’d recommend first wiping your integration clean using the information here:

Knowledge Base » Reset the Amazon S3/CloudFront integration

Then, set your bucket back up in the Dashboard. If you’re using Cloudfront CDN, don’t set that up yet. Just set up a standard S3 Bucket and test a file there. If that still does not work, please send us a Dashboard Login and we’ll take a look at the logs for the connection.

See: Dashboard -› s2Member® -› Download Options -› Amazon® S3/CDN Storage

You can send a Dashboard login here: s2Member® » Private Contact Form

Posted: Saturday May 4th, 2013 at 12:55 pm #49206
Bruce
Username: Bruce
Staff Member

Does the dashboard user need to be a full admin?

Yes we need admin privileges to see your log files.

Posted: Saturday May 4th, 2013 at 2:34 am #49191
Bruce
Username: Bruce
Staff Member

Once I click on the link it tries to connect then fails and redirects me to the members option page where I find myself logged out.

So s2Member is logging you out when you attempt to access a file? It sounds to me like a conflict with your domain set up. Looking at your URLs, the one you’re linking to the file with begins with fernleafconsulting.co.uk, while your main site resides at fernleafconsulting.co.uk/FLWP/. It looks similar to a don’t mix www and without situation to me. I have been unable to reproduce this issue in my testing environment.

Can you try accessing your file download with this link instead, please?

http://fernleafconsulting.co.uk/FLWP/wp-content/plugins/s2member-files/fernleaf/CodeCanyon.pdf

This link is using the Advanced Mod-Rewrite Linkage gone over here in your Dashboard:

Dashboard -› s2Member® -› Download Options -› Advanced Mod-Rewrite Linkage

Posted: Saturday May 4th, 2013 at 2:26 am #49190
Bruce
Username: Bruce
Staff Member

can logged in users use the same subscription button as a brand new user? I thought it tells you that the username is not valid because it’s already in use?

With Pro Forms s2Member checks to see if a User is logged in, and will adapt to keep this from happening. However it is recommended (in case of future changes) to use s2Member’s Shortcode Conditionals and Modification Buttons/Pro Forms to have Users that are new, and without an account to use regular Pro Forms, and Members of your site to use Modification Buttons/Pro Forms.

See: Dashboard -› s2Member® -› PayPal® Pro Forms -› Billing Modification Forms
See Also: Knowledge Base » Simple Shortcode Conditionals

As an example, you might do something like the following:

[s2If !is_user_logged_in()]
// Show your regular PayPal Button/Pro Form
[/s2If]
[s2If is_user_logged_in()]
// Show your Modification Button/Pro Form
[/s2If]
Posted: Saturday May 4th, 2013 at 2:23 am #49189
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

The best places to find developers for s2Member projects (in my experience) are the following:

http://jobs.wordpress.com/
http://elance.com/
http://odesk.com/

We do not take direct requests. Sorry about that.

Posted: Saturday May 4th, 2013 at 2:21 am #49188
Bruce
Username: Bruce
Staff Member

But how can I display EOT in a format both me and my users will understand eg dd mm yyyy?

You’ll have to use PHP here. You can use PHP’s date() function, documented here. As an example, if you’d like to have your timestamp show up as like 01/01/2001, you would do this:

<?php
$timestamp = 1388534400;
echo date('d/m/Y', $timestamp);
?>
Posted: Saturday May 4th, 2013 at 2:18 am #49187
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

Do you have logging enabled? See: Dashboard -› s2Member® -› Log Files (Debug) -› Logging Configuration

If you do not, please turn this on temporarily and run a test transaction. Also, could you check to see if the custom fields work with Free Registration Pro Forms?

See: Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms

After you get log files, please send us a Dashboard Login so we can take a look at them. You can do that here:

s2Member® » Private Contact Form

Posted: Saturday May 4th, 2013 at 2:16 am #49186
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

s2Member protects content by redirecting to the Membership Options Page. Therefore the best way to have Users able to log in after attempting to reach a restricted section of your site is to put a Login form at the top of your Membership Options Page. s2Member comes with a Login form you can use here:

Dashboard -› s2Member® -› API / Scripting -› Pro Login Widget (via PHP)

Posted: Friday May 3rd, 2013 at 6:45 pm #49160
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

Can you try using the reset roles and capabilities button here, please?

See: Dashboard -› s2Member® -› General Options -› Membership Levels/Labels

Posted: Friday May 3rd, 2013 at 6:36 pm #49159
Bruce
Username: Bruce
Staff Member

I have added some php to display EOT on the member profile page, but I don’t get a date i get something like “1388534400″ which doesn’t make sense to me.

This is a Unix Timestamp. Find information on these here:

http://www.unixtimestamp.com/index.php

Also wanted to know what happens after a member unsubscibes? Do they get an email confirmation?

No, s2Member does not tell the User they have lost access.

We are doing yearly subscriptions via paypal standard. Once the payment cannot be taken, will they automatically get demoted (as per our EOT settings?).

Yes. They will get demoted if you have that set up in your EOT settings.

See: Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior

Posted: Friday May 3rd, 2013 at 6:33 pm #49158
Bruce
Username: Bruce
Staff Member

Which you sign up for individually. If a member signs up for Page 1 for 1 month, page 2 for 1 week and not the other pages then I need the custom capabilities to expire at different time, however is this possible?

You should sell your pages with Specific Post/Page Access. s2Member won’t let you have multiple subscriptions going, you have to use these:

Dashboard -› s2Member® -› PayPal® Buttons -› Specific Post/Page (Buy Now) Buttons

Posted: Friday May 3rd, 2013 at 6:31 pm #49156
Bruce
Username: Bruce
Staff Member

What I meant is 10 visits per month, then block the site with the Paywall.

I see. Well that makes more sense, and I suppose a developer may be able to set this up for you using IP Addresses or PHP Cookies. s2Member cannot, however, handle this.

Posted: Friday May 3rd, 2013 at 6:28 pm #49155
Bruce
Username: Bruce
Staff Member

I watched the video and the bug mentioned there is for firefox. I am using Chrome…what else do you suggest?

In Google Chrome there is a very similar developer toolset built in to the browser. Just press f12.

Posted: Friday May 3rd, 2013 at 6:27 pm #49154
Bruce
Username: Bruce
Staff Member

However I am using a very custom template that I have to manually insert it INSIDE the page.php file – which with paypal I was able to do that to generate the PHP code (so I am trying to do the same with Clickbank)….

The best way to do this is to use the do_shortcode() function.

See: http://codex.wordpress.org/Function_Reference/do_shortcode

Posted: Friday May 3rd, 2013 at 6:25 pm #49153
Bruce
Username: Bruce
Staff Member

Done.

Viewing 25 replies - 1,026 through 1,050 (of 2,703 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.