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

About: Bruce

Staff Member

*


My Favorite Topics

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Mismatched PayPal and Registration Emails

By:  Bruce Lewin in: Community Forum

voices: 4
replies: 23

4 years, 3 months ago  Bruce

Viewing topic 1 (of 1 total)

Topics I'm Subscribed To

Viewing 25 topics - 1 through 25 (of 1,520 total)
Topic Count Last Reply
Setting Up EOT Notifications

By:  Bruce in: Unofficial Extensions/Hacks

voices: 16
replies: 21

2 years, 11 months ago  Kristen Symonds

Multiple Submission Info and Payments?

By:  Nicolas Di Lollo in: Community Forum

voices: 2
replies: 6

3 years ago  Nicolas Di Lollo

Custom capabilities and End of Term (EOT)

By:  Glyn Davidson in: Community Forum

voices: 2
replies: 8

3 years ago  Glyn Davidson

Security Badge Won't Verify

By:  Faith Deeter in: Community Forum

voices: 2
replies: 6

3 years ago  Bruce

Use for a sports club

By:  Niall O Broin in: Community Forum

voices: 2
replies: 1

3 years ago  Bruce

Encrypted PayPal Subscription Button Error 1 2

By:  Catherine Tierney in: Community Forum

voices: 13
replies: 42

3 years, 2 months ago  Jason (Lead Developer)

Automatic Login Based on IP 1 2

By:  Bruce in: Unofficial Extensions/Hacks

voices: 4
replies: 26

3 years, 3 months ago  chris mitchell

Wrong Pro Version on s2Member Site?

By:  Randy King in: Community Forum

voices: 2
replies: 4

3 years, 4 months ago  Randy King

WP Capabilities Changed

By:  John McChesney in: Community Forum

voices: 2
replies: 2

3 years, 4 months ago  John McChesney

Wrapping Multiple Shortcodes not working

By:  Nigel Morris in: Community Forum

voices: 4
replies: 7

3 years, 4 months ago  Nigel Morris

Paypal wrong page displayed – visa/debit pay

By:  Qldpol in: Community Forum

voices: 2
replies: 2

3 years, 4 months ago  Qldpol

Paypal Confirmation email – no email address

By:  FrankTheTank in: Community Forum

voices: 3
replies: 3

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

I want to use a different extension for files

By:  Brenda Rappold in: Community Forum

voices: 3
replies: 2

3 years, 4 months ago  Mike (Volunteer Moderator)

reinstate a member after late payment

By:  USLGA in: Community Forum

voices: 3
replies: 3

3 years, 4 months ago  Mike (Volunteer Moderator)

Site Security badge

By:  John Rock in: Community Forum

voices: 2
replies: 3

3 years, 4 months ago  Bruce

Premature EOT for recurring paypal payments

By:  LG in: Community Forum

voices: 2
replies: 4

3 years, 4 months ago  LG

Custom Pro Form & Child Theme Don't Mix

By:  Chris Winikka in: Community Forum

voices: 2
replies: 3

3 years, 4 months ago  Chris Winikka

S2Member Shortcodes in new OptimizePress v2

By:  Eric Byrd in: Community Forum

voices: 2
replies: 2

3 years, 4 months ago  Eric Byrd

s2member profile fields with buddypress (2)

By:  Marco Verhagen in: Community Forum

voices: 3
replies: 6

3 years, 4 months ago  Marco Verhagen

Error 400 when Auto-Configure S3/Cloudfront

By:  David Garcia Velo in: Community Forum

voices: 2
replies: 6

3 years, 4 months ago  Bruce

Custom Amount?

By:  Andrea Smith in: Community Forum

voices: 2
replies: 5

3 years, 4 months ago  Bruce

Members unable to login correctly

By:  Mark Howard in: Community Forum

voices: 3
replies: 2

3 years, 4 months ago  Bruce

changing log file urls

By:  David Sless in: Community Forum

voices: 2
replies: 1

3 years, 4 months ago  Bruce

Viewing 25 topics - 1 through 25 (of 1,520 total)

My Latest Replies (From Various Topics)

Viewing 25 replies - 1 through 25 (of 2,703 total)
Author Replies
Author Replies
Posted: Monday Dec 30th, 2013 at 9:02 pm #62265
Bruce
Username: Bruce
Staff Member

Gotcha. Yes I can see why this wouldn’t work with multiple Pro Forms, but I honestly can’t tell you an easy way to get Username to go through validation.

This is because s2Member does something similar to what you were asking about with multiple of the same fields in your post:

another question i have: since the information is virtually the same but needs different codes: film_title, and film_title_2; is there an easy way to copy all the fields I need, and then just edit who the field is viewable by rather than remake each section three times?

The hack that Raam posted here will only check for the first of these fields. If you need to bypass all of the checks for Username, you’ll have to check the number of options there are, and alter the JavaScript code snippet to work correctly with each of the options. The part of the snippet you’ll want to focus on is here:

$ (email).keyup (function ()
                            {
                                $(login).val ($.trim ($ (email).val ().split (/@/)[0].replace (/[^\w]/gi, '')) + randomNum.toString());
                            });

Another developer familiar with JavaScript could throw something together here, but it goes beyond what I can do in just a forum post, sorry.

Posted: Monday Dec 30th, 2013 at 8:39 pm #62263
Bruce
Username: Bruce
Staff Member

Great! Happy that was a help.

the director wanted the username supressed cause she finds it confusing so I followed the instructions from another post with the email-username mu plugin hack, and worked like a charm

Do you have a link to that post? I’m not familiar with that hack.

Posted: Sunday Dec 29th, 2013 at 6:11 pm #62245
Bruce
Username: Bruce
Staff Member

Thank you SO much! I deleted the other file and now it works!!! Thank you!!!!

Great! Sorry, this is the one thing that seems to get people with the security badge. This directory needs to be completely empty except for that .htaccess file for s2Member to verify your security badge. :-)

Posted: Sunday Dec 29th, 2013 at 4:45 pm #62239
Bruce
Username: Bruce
Staff Member

Hi Niall,

s2Member can help you out here, but this is a rather advanced use of s2Member, so you might run into some roadblocks that require using some of s2Member’s advanced features (which can mean very basic PHP coding).

What s2Member can do for you
  • Having multiple membership types is no problem for s2Member at all. You can use Membership Levels (0-4) if you’d like to have incremental access based on the type of account that a User has, or Custom Capabilities (a bit more advanced) to separate User accounts.

    When you install s2Member, you should take a look at these sections of the Dashboard right after you go through the Quick-Start Guide:

    See: Dashboard -› s2Member® -› General Options -› Membership Levels/Labels
    See Also: Dashboard -› s2Member® -› API / Scripting -› Custom Capabilities

  • s2Member will handle upgrading and demoting your Users based on what goes on within PayPal, but you’ll have to come up with some creative uses of s2Member’s Custom Capabilities because you are packaging many things into one subscription.
  • You’ll be able to keep your content protected based on Membership Level or Custom Capability, which means that Students can can have access to something Juniors do not, and vice-versa.
What s2Member won’t be able to do without a bit of customization
  • Giving access to multiple accounts from one subscription is something that is not supported by s2Member directly. You’ll have to use some of s2Member’s Shortcode Conditionals and Free Registration Pro Forms to accomplish this, which means that you’ll need s2Member Pro.

    See: Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms
    See Also: Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals

  • s2Member can only track one subscription at a time, and will only allow one subscription to be active for any given User, and therefore if the User’s Subscription ends, the User will lose all access. This can be problematic for some Users that want to have multiple payment subscriptions running at a time. You may need some customization here for your uses.
Posted: Sunday Dec 29th, 2013 at 4:19 pm #62236
Bruce
Username: Bruce
Staff Member

Hi Faith,

Sorry to hear you’re having problems with this.

The only thing I’m seeing here that you haven’t touched on is the s2Member Security Encryption Key. Is that set?

See: Dashboard -› s2Member® -› General Options -› Security Encryption Key

If that’s not it, then I would recommend logging into your site’s FTP server, and checking your /wp-content/plugins/s2member-logs/ directory, and ensuring that there is nothing but a .htaccess file in that directory.

Also, be prepared to allow up to 24 hours for s2Member change your Security Badge to green.

If that doesn’t help let me know. :-)

Posted: Sunday Dec 29th, 2013 at 4:11 pm #62235
Bruce
Username: Bruce
Staff Member

Sorry that you’re having so many problems with this.

I’ve tried deleting all my PayPal options and copying them from paypal again.
I tried deleting all sandbox account and completely starting from scratch (twice)
I’ve been through the videos on Youtube and followed them step by step
I now have all plugins disabled except for s2Member but still no joy
I need somebody to tell me it’s going to be alright before I curl up in a heap and spend the next few days feeling sorry for myself :(

I would definitely make sure logging is turned on. Make sure that logs are generated when you create a subscription, and when a cancellation is done. If not, then it could be some kind of blacklisting, or a caching problem. Look at the errors. If you see any and don’t know what they mean, post them here and I’ll try to clarify for you. :-)

Posted: Sunday Dec 29th, 2013 at 4:08 pm #62234
Bruce
Username: Bruce
Staff Member

However…

Before diving right in I thought I’d follow your advice and read up about ccaps in the Dashboard but found that

So sorry, I linked to that from memory. That’s the old location of the documentation for Custom Capabilities. The real name of this section is Custom Capabilities (Packages).

My only problem now is that I no longer seem to be receiving the EOT from PayPal. And, when a level-1-user cancels their subscription, their recurring payment is cancelled in PayPal, but nothing appears to happen on site.

s2Member won’t immediately demote a User when they stop paying usually. Instead, it will set an Automatic End of Term time on their profile. I’d recommend looking at the profiles that have been canceled by a User and see if that EOT Time is set. If it is, then s2Member is working correctly, and that User will be demoted after the time that they have paid for is up (i.e. when they hit their EOT time).

s2Member should get notification of the recurring subscription being cancelled almost immediately.

There’s detailed information on Auto EOTs here:

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

If the EOT time isn’t set on the profile for the User it’s supposed to be, that probably means that there’s something wrong with your PayPal IPN setup. Try turning on logging here, and checking your PayPal settings to make sure that IPN is set up correctly:

Dashboard -› s2Member® -› Log Files (Debug) -› Logging Configuration

Posted: Sunday Dec 29th, 2013 at 4:13 am #62225
Bruce
Username: Bruce
Staff Member

Hi Carrie,

Loving the plugin so far!

Great! I’m happy you’re happy. :-)

Thanks for your questions!

I think you’re on the right track in the way you’re using Membership Levels here.

What I’d suggest doing is setting up Pro Form Wrapping. This is a relatively new feature so you probably haven’t seen this yet, but it’ll keep your checkout page more streamlined when you have multiple options available. There’s documentation on it here:

Dashboard -› s2Member® -› PayPal® Pro Forms -› Wrapping Multiple Shortcodes as Checkout Options

I would recommend checking out this part of the Dashboard as well:

Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals

You’ll want to use these Shortcode Conditionals in conjunction with the wrapped Pro Forms so that Users that already have an account don’t get Pro Forms for New Users. You’ll want to show Modification Pro Forms here.

another question i have: since the information is virtually the same but needs different codes: film_title, and film_title_2; is there an easy way to copy all the fields I need, and then just edit who the field is viewable by rather than remake each section three times?

No, sorry. I’ll pass along Custom Registration/Profile Field cloning as a possible feature in a future version of s2Member.

I might suggest having your developer set up an external system for this using s2Member’s Conditionals here, just because this is not really what s2Member’s Custom Registration/Profile Fields are meant for. Especially if you don’t need Users to be able to enter this extra information on checkout.

Posted: Sunday Dec 29th, 2013 at 3:45 am #62224
Bruce
Username: Bruce
Staff Member

Hi Glyn,

I think I can help answer your questions. :-)

(1) What does the “Custom String Value” do (i.e. custom=”” on a ProForm) and why does it contain the domain name?

The custom attribute is an attribute that PayPal gives s2Member access to, and s2Member uses it to verify that the transaction is meant for s2Member to process. s2Member checks that the custom attribute is set to your domain name (along with checking a few other values) to make sure that the transaction it’s getting is not meant for, say, an eBay sale, or a different site that you have your PayPal account hooked into. This should always stay as your domain name to prevent conflicts.

(2) What happens to a (level 1,2,3, or 4) user’s recurring payments if I change their role to author, editor or admin? What happens if I then change them back to level 1 again?

s2Member does not perform any changes when a recurring payment is performed to users. In fact, you could take someone that is paying for level 1 and manually push their account up to level 3, and s2Member will not demote at any point other than when they stop paying and lose access.

If you don’t want a User to be demoted even if they stop paying for access, you can simply remove their Paid Subscription ID from their profile, and s2Member won’t link the User’s transaction to their account anymore, making it impossible for s2Member to automatically demote them.

See: Dashboard -› Users -› Edit

(3) I understand that all financial details are held by PayPal, but does s2Member keep any record of how much a user has paid, which ProForm was used during signup, and which coupon codes were used?

No, s2Member won’t store any information like that by default. If you want to track your User types, I would suggest that you check out Custom Capabilities (ccaps). These (Custom Capabilities) are standalone capabilities that are given to Users on signup or upgrade and can be used to protect content or separate members aside from Membership Levels.

See: Dashboard -› s2Member® -› API / Scripting -› Custom Capabilities

To give you an example, you might give your Student members the Custom Capability “student”. Then, you can check if any particular User is a student with Shortcode Conditionals.

Example of using Shortcode Conditionals:

[s2If current_user_can('access_s2member_ccap_student')]
	You are a Student User!
[/s2If]

See: Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals

You can generate Pro Forms / Buttons with Custom Capabilities baked right in, or add them in later by editing the ccaps attribute that’s in your Buttons and Pro Forms’ Shortcodes.

Does that help?

Posted: Wednesday Aug 21st, 2013 at 5:55 pm #56374
Bruce
Username: Bruce
Staff Member
@rocko

Displays the single “1″ which should mean all is good right?

Yes that should mean that you are good-to-go on the security badge. It sometimes takes up to 24-hours for s2Member to actually make the security badge work. s2Member doesn’t connect each time that the security badge loads to check to see if your site is secure. Only once a day.

Posted: Wednesday Aug 21st, 2013 at 8:36 am #56351
Bruce
Username: Bruce
Staff Member
@hundredvisionsguy

How can I modify the shortcode so the template attribute looks in the child theme folder instead of the parent theme?

The template attribute looks in your /wp-content/themes directory (or whatever your themes directory is set to) first if you provide it a template that way. You can move your custom template to your root theme directory, or keep it in your child theme’s directory, and instead change it to look in that directory (as in /child-theme/my-template.php).

Posted: Wednesday Aug 21st, 2013 at 8:29 am #56350
Bruce
Username: Bruce
Staff Member

Thanks for the update. I’ll await your reply. :-)

Posted: Wednesday Aug 21st, 2013 at 8:24 am #56349
Bruce
Username: Bruce
Staff Member
@mrmacscience

Anyone know what would account for this change? And what does it mean? I didn’t change anything in the registration process.

I believe this is a change with WordPress’s storage functionality. This is essentially saying the same thing. The only difference is that s:1:”1″ means that there is a string with 1 character being stored, and the character is one; b:1 means that it’s storing a boolean 1, aka TRUE. They both equate to the same thing when you check them for being TRUE or FALSE (as WordPress will be). The only difference is the way it looks.

@mrmacscience

FWIW — I also noticed that since March, there have been a number of new users whose profile info looks fake. Mismatched combinations of cities, states, and countries; names and email addresses that appear to be randomly generated strings of letters, etc.

The best thing you can do to prevent spam registrations are to turn off the ability for Users to set their Passwords without receiving an email from you first, available in this part of the Dashboard:

Dashboard -› s2Member® -› General Options -› Registration/Profile Fields

Here’s that part of the Dashboard (click to see full image):

You might also want to switch to using a Free Registration Pro Form along with enabling an Captcha on this form to keep bots from creating accounts as well:

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

Posted: Wednesday Aug 21st, 2013 at 8:15 am #56348
Bruce
Username: Bruce
Staff Member
@andreainblue

They really want an integrated solution. The pro form that came packaged with the plug-in would have been ideal if a custom amount was possible.

The Pro Forms are not (by default) capable of doing this, but you might be able to accomplish this with a little custom code if you absolutely need to. s2Member encrypts all of the information with Pro Forms to keep it impossible for Users to change this price normally, but you can create a custom Pro Form template, and change the amount value based on an input field that you create in this template.

See: Pre Sale FAQs » Is it possible to modify s2Member® Pro Form templates?

If you create a field in this Pro Form template, you can get the value that Users pass into this field, and use it to change the amount that you charge a User (either recurring or non-recurring) using the information here:

Knowledge Base » Using Variables In A Shortcode

You would want to use the second example in this article:

<?php
add_filter ("ws_plugin__s2member_pro_paypal_checkout_post_attr", "my_paypal_pro_checkout_form_attr");
function my_paypal_pro_checkout_form_attr($attr = array()) {
if($_POST["something-custom"] === "some custom value") {
	$attr["ra"] = "10.00"; // Adjust price dynamically
	// And/or, you could adjust other attributes too
	// $attr["rp"], $attr["rt"], etc.
}
return (array) $attr;
}

Past that, sorry. I can’t really say how this could be possible. I’ve never had anyone ask for this capability with Pro Forms before.

Posted: Wednesday Aug 21st, 2013 at 8:03 am #56346
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

Sorry for the delay in response.

s2Member does not allow Users to be “reinstated” after a payment fails and PayPal sends s2Member a message telling it that the User’s Subscription is over (based on what you have set up in your Shortcode’s RRA attribute).

See: Dashboard -› s2Member® -› PayPal® Pro Forms -› Shortcode Attributes (Explained) -› rra

To have a User gain access after they have been demoted by s2Member, they need to sign back up at your site through s2Member again. Check out these forms for information on how you can let Users bump their account status back up:

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

Posted: Wednesday Aug 21st, 2013 at 7:57 am #56345
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

s2Member doesn’t support PDC at all as far as I know. The file that s2Member uses for setting up its supported extensions is here:

/s2member/includes/mime-types.ini
I can’t really help past that. Sorry. I’m moving this to the Community Forums where another User may be better able to help you.
Posted: Wednesday Aug 21st, 2013 at 7:55 am #56344
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

I would say that the likely problem here is with a Plugin/Theme Conflict (as @RandyKing mentioned). However I have also seen things such as this happen with special Apache rules on your server causing random errrors, or with Mod-Security.

See: Knowledge Base » Mod Security, Random 503/403 Errors

If using the information that Randy does not work, then I would suggest contacting your server provider to see if they can help. :-)

Posted: Wednesday Aug 21st, 2013 at 7:52 am #56342
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

Sorry for the delay in response.

What have you set up so far? According to that error, it looks like you’ve supplied s2Member an invalid directory /// rather than the real directory that you want your logs to go to. Dashboard -› s2Member® -› Log Files (Debug) -› Logging Configuration

I would take another look at what you set up based on what’s listed on #7 in this KB Article:

Knowledge Base » s2Member® Security Badges

Posted: Wednesday Aug 21st, 2013 at 7:50 am #56340
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

Sorry for the delay in response.

@davefft

How can i change that email link to point to wp-login_new.php? I’ve look everywhere, but no luck. I’d keep looking but my client’s sites s2Member functionality is not working so this is urgent.

You can change the link manually here:

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

You will need to change it so that s2Member is allowing you to edit the emails there. It should be pretty simple to make this change, but let us know if you have any problems. :-)

Posted: Wednesday Aug 21st, 2013 at 7:47 am #56339
Bruce
Username: Bruce
Staff Member

Thanks for your patience.

It sounds like the issue you’re having is not that normal Users are not getting redirected, based on what you said here:

@jwrbloom

For all I know, my Users aren’t having this issue. No one has complained, but I like to be proactive.

s2Member will not redirect Users that should have access to the Dashboard (e.g. Administrators, Editors, etc.), because it does not want to interfere with these Users’ flow normally. As in, normally an Administrator would want to go to the Dashboard when they logged in. This is something that is not possible to change in the Dashboard. I’ve never heard of any Users wanting this to be possible.

That being said, we’ll take this as feedback.

If you really want to always be redirected, regardless of your privileges (including when you log in as an Administrator) you can do that using the information here:

Knowledge Base » Hacking s2Member® Via Hooks/Filters

There is a hook in this file that makes it possible to change when s2Member redirects a User based on Capabilities called ws_plugin__s2member_login_redirect:

/s2member/includes/classes/login-redirects.inc.php
To enable the login redirection for ALL Users (regardless of their level), you would put this in an s2hacks.php file in your mu-plugins directory you might need to create, as described in the Knowledge Base Article I mentioned before:

<?php
add_filter('ws_plugin__s2member_login_redirect', '__return_true');

Just one note about using the Homepage as the Login Welcome Page, s2Member allows this to be possible using the method that I provided in my first reply (I confirmed with Jason, the lead developer). However, this is advised against, because if you do this s2Member will not protect your home page. This is the only time that s2Member does not protect the Login Welcome Page. The only way to protect the home page with s2Member® is to use a URI restriction that protects the entire site (e.g. /).

Just something to be aware of, since this is something that you’re doing. :-)

Posted: Wednesday Aug 21st, 2013 at 7:21 am #56338
Bruce
Username: Bruce
Staff Member
@lg

Before I give you Dashboard assess I want to know what you assume will happen to users based on our current setting. And yes, I have logging turned on.

Based on your current settings, Users should not ever get immediately demoted unless you issue them a refund, or they ask PayPal for their money back directly (i.e. a chargeback). At the top of this section the documentation covers this detail. I’m not sure why this would happen other than if a User both cancels and you give them their money back for the access they last paid for.

Posted: Wednesday Aug 21st, 2013 at 6:57 am #56334
Bruce
Username: Bruce
Staff Member

Sorry, I just took this example you posted in your first reply and tried it in a testing environment:

[s2Member-Pro-PayPal-Form rp="1" rt="M" rr="1" accept_coupons="1"]
[s2Member-Pro-PayPal-Form level="1" desc="Option 1 ($10.00)" ra="10.00" /]
[s2Member-Pro-PayPal-Form level="2" desc="Option 2 ($20.00)" ra="20.00" /]
[s2Member-Pro-PayPal-Form level="3" desc="Option 3 ($30.00)" ra="30.00" /]
[/s2Member-Pro-PayPal-Form]

It appears to be working fine for me. Are you still running a clean installation with no plugins? Do you think we could take a look at it?

Posted: Wednesday Aug 21st, 2013 at 6:54 am #56333
Bruce
Username: Bruce
Staff Member

Thanks for your patience. Sorry about the delay. I’m taking a look at this and I’ll see if I’m able to reproduce this myself.

Posted: Wednesday Aug 21st, 2013 at 6:53 am #56332
Bruce
Username: Bruce
Staff Member
@ybttech

I found this way; I added a page in Buddy press with upload script for just level1 users . Working well . If they don’t share their files, no one can see the files except admin.

Cool. Thanks for the update. :-)

Posted: Wednesday Aug 21st, 2013 at 6:50 am #56330
Bruce
Username: Bruce
Staff Member
Jason (Lead Developer) is addressing this issue in this thread:

http://www.s2member.com/forums/topic/encrypted-paypal-subscription-button-error/#post-56280

I am going to close this thread and this can be continued over there.

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