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,001 through 1,025 (of 2,703 total)
Author Replies
Author Replies
Posted: Tuesday May 7th, 2013 at 3:42 pm #49395
Bruce
Username: Bruce
Staff Member

I didn’t find any area in s2 member where i can set ” failed payments “.

The number of failed payments you allow depends on the rra attribute for your Pro Form/Button Shortcode.

From the docs
(Dashboard -› s2Member® -› PayPal® Pro Forms -› Shortcode Attributes (Explained)):

  • rra=”2″ Reattempt failed payments? Possible values: 0 = do NOT reattempt billing when/if a recurring payment fails; 1 or higher = yes, DO reattempt billing when/if a recurring payment fails. With PayPal® Pro integration, PayPal® will retry a maximum of 2 times whenever rra=”2″; after that, a Subscription would be terminated due to Max Failed Payments having been reached. With PayPal® Pro integration, the value of this attribute also configures Max Failed Payments. So a setting of rra=”2″ means that you allow a maximum of 2 failed payments.
Posted: Tuesday May 7th, 2013 at 3:31 pm #49394
Bruce
Username: Bruce
Staff Member

But … if it’s a cache problem, why the values are also empties in the emails confirmations ?

It would be empty in the email confirmation because s2Member never received the information from the User. If what I’m thinking is correct s2Member never actually sets the first/last name in the User’s profile.

I’ve W3 total cache. It’s perhaps the issue

W3 Total Cache does have an Object Cache. Would you like me to see if deactivating the plugin fixes the issue?

Posted: Monday May 6th, 2013 at 11:27 pm #49334
Bruce
Username: Bruce
Staff Member

I’m trying to figure out how to use mailchimp to send welcome emails instead of s2member. How do I set this up?

s2Member’s integration with MailChimp doesn’t integrate the New User Email. This is sent from your server no matter what. You can customize it here:

Dashboard -› s2Member® -› General Options -› Email Configuration

Posted: Monday May 6th, 2013 at 11:25 pm #49333
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

In my tests this is not the case. The login form’s style is dictated by your theme, so it’s likely that your theme is causing this. Could you try changing to the default TwentyTwelve theme and see if the login form works correctly then?

Posted: Monday May 6th, 2013 at 11:11 pm #49331
Bruce
Username: Bruce
Staff Member

1) I’ve added a few lines to the functions.php file of my theme (Dynamix) so I can Start testing the new changes, but this doesn’t work. The users can still access the pages I try to block:

I think a more reliable way of accomplishing what you need here would be to do something like this:

<?php
add_action ('init','my_custom_capabilities');
function my_custom_capabilities ()
    {
        if(has_tag('test_ccap') && !current_user_can ('access_s2member_ccap_test_ccap'))
            {
                            wp_redirect(S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
                            exit();
            }
    }
&#91;/hilite&#93;

<blockquote>
2) Once I can make this work, since a group of current clients should be able to access this new section, how should I modify their profiles so they can access? This way?: http://screencast.com/t/vltGq5BV is that correct?
</blockquote>

This is correct.

<blockquote>
I believe I can do it by adding some code to the especific page “music” right? (if I undestood correctly a part of the video of custom capabilities) But just wanted to be sure and ask for some guide about where should I insert the code.
</blockquote>

You could do this, or you can wait for the redirect and redirect from your Membership Options Page to the correct page. You can use the Membership Options Page variables to do this.

See: Dashboard -› s2Member® -› API / Scripting -› Membership Options Page Variables (MOP Vars)
Posted: Monday May 6th, 2013 at 11:07 pm #49330
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

OR, is there a more integrated method that I missing out on that handles such a scenario directly?

You could hook into s2Member’s Billing Update routine and use the information provided here to take the Custom Capability away.

See: Knowledge Base » Changing Roles/Capabilities via PHP

The best way to do this is to check the global reference to see if s2Member did an update on a User. If you’re using PayPal something like this should work:

Posted: Monday May 6th, 2013 at 10:56 pm #49328
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

WordPress does not allow spaces in Usernames. s2Member takes spaces out to keep errors from occuring. If you try to create a user in WordPress’s Dashboard, you’ll see similar behavior, but WordPress will (by default) replace spaces with dashes.

Posted: Monday May 6th, 2013 at 10:49 pm #49327
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

Also, what audio play(ers) work best with S2Member? We’d be willing to switch if another player would meet all of our member’s needs. I couldn’t find a specific recommendation, just a lot of chat about how to troubleshoot different players not working well with S2.

s2Member works best with JW Player, which you can information on here:

Dashboard -› s2Member® -› Download Options -› JW Player® & RTMP Protocol Examples

That being said with downloads of files, s2Member shouldn’t need a player. It sounds to me like (since these are mobile devices) that they don’t Adobe Flash Player and that’s causing a problem. I don’t know that for sure, but the best thing to do for now is to give Users an option for a direct download link. That should work no matter what, as s2Member follows the guidelines for this and if the device supports downloads it should work just fine.

Posted: Monday May 6th, 2013 at 10:12 pm #49323
Bruce
Username: Bruce
Staff Member

Thanks for giving code line you suggest but its now giving this error:

http://screencast.com/t/SDl6yGoAy1

Sorry, one of the quotes from my reply got formatted by our system and it made it invalid. I edited the code in my reply.

Posted: Monday May 6th, 2013 at 10:09 pm #49322
Bruce
Username: Bruce
Staff Member

Please let me know when you’re able to test so I can delete the test account :)

Seems to work just fine for me.

Posted: Monday May 6th, 2013 at 7:50 pm #49314
Bruce
Username: Bruce
Staff Member

you’ll want to change this line:

wp_redirect(site_url('/wp-login.php?redirect_to' . site_url())); ?>

To:

wp_redirect(site_url('/wp-login.php')); ?>

That might not fix your issue, but that’s an incorrect link somewhere. If that doesn’t work you’ll want to check your sidebar.php file.

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

An admin should get an email saying there has been a request for a new membership.

You can change the email for when a User subscribes here:

Dashboard -› s2Member® -› General Options -› Email Configuration

I’m assuming you’re having your Users sign up for a free account first, and that’s how they request membership.

#2 Can you provide an exact description of what happens (on the s2 side) when someone unsubscribes from mailchimp?

In short, nothing. s2Member’s integration with MailChimp is one-way, meaning that s2Member is allowed to give MailChimp information, but MailChimp won’t send information back to s2Member when something happens.

Posted: Monday May 6th, 2013 at 7:29 pm #49311
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

Could you post a link to the place this is happening? I’ve never heard of this happening before.

Posted: Monday May 6th, 2013 at 7:28 pm #49310
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

We’re looking at many possibilities for the next major release of s2Member, and this is on our list. However in the mean time we don’t have any plans for adding support for this in the current release of s2Member. Sorry.

Posted: Monday May 6th, 2013 at 7:26 pm #49309
Bruce
Username: Bruce
Staff Member

and how do i do that?

That depends on your theme. I’m guessing this is something that’s built-in to your theme, or is a widget. I’d check your Widgets first and see if those buttons are created there. If they are you should be able to change the URL that way. Otherwise you’ll need to edit your theme’s files. I’d guess that those buttons are created in your sidebar.php file.

Posted: Monday May 6th, 2013 at 7:23 pm #49307
Bruce
Username: Bruce
Staff Member

Sorry to sound a little daft, but how would I go about changing the redirect_to variable?

You’ll need to change the URL your theme is linking to.

Posted: Monday May 6th, 2013 at 7:22 pm #49305
Bruce
Username: Bruce
Staff Member

“An attempt was made to move the file pointer before the beginning of the file.”

It sounds like either the file got corrupted on upload, or there is a network error somewhere. Could we take a look? You can send the information here:

s2Member® » Private Contact Form

Let us know when you send that.

Posted: Monday May 6th, 2013 at 7:21 pm #49304
Bruce
Username: Bruce
Staff Member

Okay, I installed a clean copy of WPMU, installed s2Member Pro, installed the Annotum Themes, tested both, they worked, then installed the Capability Manager Enhanced plugin, and it still worked.

It’s possible something got mixed up in your database and something weird got send to a call to something in one of your plugins. I’d recommend resetting everything to defaults and seeing if that helps.

Posted: Monday May 6th, 2013 at 7:17 pm #49303
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

We’ll need to see your full log files to be able to tell what’s going on. Could you send us a Dashboard login so we can take a look and see what the problem is?

See: s2Member® » Private Contact Form

Posted: Monday May 6th, 2013 at 7:16 pm #49302
Bruce
Username: Bruce
Staff Member

– If I use the register form in the Page created with the shortcode to add the “free registration form” in it, it doesn’t work ! But first name and last name are correctly recorded in the “public name” in the user Dashboard…

That’s interesting. I didn’t look while I was in your Dashboard, do you have any plugins that filter bad queries, or that cache objects? It sounds like this part of s2Member’s form is not coming back to your site for some reason.

Posted: Monday May 6th, 2013 at 7:08 pm #49300
Bruce
Username: Bruce
Staff Member

Thank you for the information.

I took a look at your site, and it appears that the actual link that’s in your theme is what’s causing this. This is the link:

http://marketletters.com/wp-login.php?redirect_to=http://marketletters.com

As you can see, it’s passing the redirect_to variable as your homepage. This will need to be taken out or changed to your Login Welcome Page to work correctly. If you use this link, it works correctly:

http://marketletters.com/wp-login.php
Posted: Monday May 6th, 2013 at 7:03 pm #49299
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

I have installed an SSL cert yet users are still getting this error message when trying to make a purchase using pro forms on my membersip options page

Could you post a link to the page on which this happening?

Posted: Monday May 6th, 2013 at 7:02 pm #49298
Bruce
Username: Bruce
Staff Member

1) Date subscription started
2) Date of next payment

s2Member does not store this information, but you can use some of the constants from Content Dripping to find how many days the User has been subscribed, and in turn when their subscription started.

To get the date of next payment, you’ll have to use the last payment date, which s2Member does store. You can get it like this:

<?php $last_payment_date = get_user_field('s2member_last_payment_time'); ?>
Posted: Monday May 6th, 2013 at 6:58 pm #49297
Bruce
Username: Bruce
Staff Member

We are very sorry to let you know that some PHP function such as allow_url_fopen and allow_url_include involving vulnerabilities, and cannot be enabled.

If you really need this, please consider to use our dedicated server service or cloud server service.

According to documents, this is quite often it is possible for an attacker to get PHP code into files on the server (sessiondata, fileupload, logfiles,…).allow_url_fopen and allow_url_include only protect against URL handlers marked as URL. It is trivially possible to inject arbitrary PHP code.

Yes this sounds like the issue. allow_url_fopen or cUrl should be enabled. However, s2Member’s Server Scanner should have found that issue if it was a problem. Perhaps they have it enabled but blocked, I’m unsure. However this is definitely the problem. Would you mind sharing what hosting provider you’re using?

Posted: Monday May 6th, 2013 at 6:49 pm #49296
Bruce
Username: Bruce
Staff Member

When going through my settings I noticed I didn’t have a “PDT identity token” specified within s2member settings, nor did I have PDT or an auto-return URL enabled within my paypal.com “Website Payment Preferences” settings.

So, for my setup, should I still implement PDT, or is not applicable for my use?

Yes, you should still set up your PDT Identity Token even with Express Checkout. PayPal uses this token to let s2Member know the information it’s receiving when the Customer is brought back to your site can be trusted. Without this you can run into errors with Users not getting upgraded, etc..

Viewing 25 replies - 1,001 through 1,025 (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.