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.

Cristián Lávaque


My Latest Replies (From Various Topics)

Viewing 25 replies - 2,076 through 2,100 (of 7,376 total)
Author Replies
Author Replies
Posted: Friday Mar 1st, 2013 at 10:28 am #43494

Cool. :)

Posted: Friday Mar 1st, 2013 at 10:28 am #43493

Hi Chris.

Well, the Login Welcome Page redirection happens for everyone on login. What you can do to is check the user’s level on that page and if Level 0, then forward them to the one you want for them. You can do that with a JavaScript redirection in the body of the Login Welcome page, or a PHP redirection in a hack.

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 10:13 am #43488

Hi Daniel.

Right, when you use it via PHP, it doesn’t pick the settings from the widget under [hilite path]Appearance -> Widgets[/hilite].

You can specify the settings for the new widget in the function call, as described in the documentation. http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_s2member_pro_login_widget%28%29

[hilite pre_code]
'%%previous%%')); ?>
[/hilite]

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 10:07 am #43485

Hi Raphael.

You can add a login form to the Membership Options Page using the s2Member Pro login widget. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Pro Login Widget (via PHP)[/hilite]

Or add a JavaScript redirection to the Membership Options Page so they’re forwarded to the default login page.

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 9:54 am #43483

Cool. :)

Posted: Friday Mar 1st, 2013 at 9:50 am #43482

if I move files into the /mu-plugins/ or any other theme folder, I would still need to update them with the new code.

No. If you make a copy of the pro-form templates to your active theme’s directory, those files won’t be touched when you update s2Member. If you make a copy of paypal-checkout-in.inc.php to your must-use plugins directory, that won’t be touched when you update s2Member.

I’ll tell Jason about the list of modified files on update. But even without it, you could make a diff between versions of the files, using something like ExamDiff. http://www.prestosoft.com/edp_examdiff.asp

Posted: Friday Mar 1st, 2013 at 9:42 am #43480

Hi Pirco.

we will soon be offering 1-year non-recurring “subscriptions”. we are using the “Authorize.net (Subscriptions) option “One time (for 1 year access) non-recurring”.

What you could do is sell the year with a buy-now instead of a non-recurring subscription. Both are a single payment, but the buy-now is not a subscription, will set an EOT time immediately and will also allow you to extend the EOT time with new payments instead of resetting it. [hilite path]Dashboard -› s2Member® -› Authorize.Net® Options -› Automatic EOT Behavior -> Fixed-Term Extensions[/hilite]

The option to sell non-recurring subscriptions is only there to allow single payments with a trial term, but that’s not what you need here, if I’m not mistaken. It’ll be much better if you sell with a buy-now: “One Time (for 1 year access, non-recurring, no trial)”.

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 9:29 am #43477

Hi Yanner.

The s2Member JS and CSS are dynamic and served via s2member-o.php. I mentioned in your other thread that the URL to that file is missing a few needed variables in your site, which is what seems to be causing the problem. Please try the tests I suggested there.

With the CSS you can make a copy of the output of that file to compress and use that, then disable the dynamic CSS. Pre Sale FAQs » How can I prevent s2Member® Pro from loading it’s default CSS?

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 9:23 am #43474

Hi Colin.

I’ll manually upgrade them to a higher level, which will give them access to the bbpress forum.

That’d work. :)

The subscription would keep goingin the payment gateway, independent of the s2Member Level role set in the user’s profile. Changing the level would not alter the subscription in the payment gateway.

Posted: Friday Mar 1st, 2013 at 9:19 am #43473

Hi Yanner.

The URL that the report points to is the one for s2member-o.php, which is the script used to load s2Member’s CSS and JS dynamically. But that URL should also include a few variables that are missing in your page, e.g.: s2member-o.php[hilite mono]?ws_plugin__s2member_css=1&qcABC=1&ver=130214-130214-2138353838[/hilite]

I’m guessing that another plugin or the theme is causing this problem. Could you please test for a conflict following the suggestions in this article? Knowledge Base » Common Troubleshooting Tips

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 9:13 am #43472

Hi Josh.

Thanks for the kudos! :)

What I’m wondering is, can I have S2Member automatically not charge the customer for a month when they’ve earned enough referral credits(that I have kept in a custom DB field), and resume charging the next month.

No. The payment gateway is the one that manages the subscription and it doesn’t have a way to skip a payment. What you can do, though, is refund the last payment the he did. Would this work for you?

I hope that helps!

Posted: Friday Mar 1st, 2013 at 9:08 am #43471

Hi Dmitry.

When the user selects $50 plan, he paid the full $50 for the first two years.
What happens if he decides to update its plan for $ 7 a month?

The previous subscription would end and the new one would start.

Will he get back the $ 50? If not, when it will begin to pay $ 7 a month, after 2 years? After the expiration of the first plan?

No, won’t. You’d need to customize the pro-form he’s changing his subscription with, to take into account the time he has left from the 2 years, and enter that as an initial free term so that the monthly $7 payments start being charged after that. Knowledge Base » Using Variables In A Shortcode

If the user cancels their subscription for $ 50 he will have access to the end of the subscription term? But if he decides to make another $ 50 subscription, he will lose the first $ 50?

Right, if he cancels he’d still have access until his paid time runs out.

Yes, if he pays the $50 dls subscription again, it’d reset the subscription. You’d need to adjust the pro-form’s shortcode as I mentioned before to give keep the paid time he’s got left. Knowledge Base » Using Variables In A Shortcode

Buy Now transactions (not subscriptions) can add time to the paid time he already has. You’ll find the setting for that here: [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior -> Fixed-Term Extensions[/hilite]


I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 8:58 am #43469

Hi Uli.

The pro-form templates you can copy to your theme folder. Please read this article for more details on that: Knowledge Base » s2Member® Pro Forms » Customize

About the other source file, you can make a copy of it and place it in your /wp-content/mu-plugins/ directory. Remember that if an update makes changes to that file, you’ll need to apply them manually to your customized copy.

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 8:42 am #43468

Hi khoi.

So the users would get their own blog? Well, you’d enable that from [hilite path]Dashboard -› s2Member® -› Multisite (Config)[/hilite].

If you have s2Member Pro installed in that network and users get their blog, you’ll need the Network Support license. s2Member® » Prices/Licensing » Blog Farming

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 8:36 am #43466

Hi boudewijn. Sorry about the delay.

You can’t sell other roles with s2Member, other than the s2Member Level roles.

What you can do, though, is edit the s2Member Level roles to add the capabilities you want from other roles. You could use a plugin like the User Role Editor for this. http://wordpress.org/extend/plugins/user-role-editor/

Remember to also lock the roles so they don’t get reset when you update s2Member. Knowledge Base » Locking s2Member Roles/Capabilities

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 8:32 am #43464

Hi Chris.

You can use the level 1 pro-form, just make sure the user is logged in when he loads the page where it is. Protecting the page at level 0 would do the trick.

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 8:28 am #43463

Hi Daniel.

Maybe this tip does what you need: http://www.s2member.com/forums/topic/please-help-loginreg-design-issues/#post-24264

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 8:24 am #43462

Hi Daniel.

Could you post here the code for the hack you’re using?

If I’m not mistaken, in that same hack you could check whether the user opted in or not and change the lists he’d be added to based on it. If you print_r the vars you get with the hook, you should find the ones you need to use.

Posted: Friday Mar 1st, 2013 at 8:02 am #43461

Hi Michel.

1. I’m allowing Open registration (a free subscribers – level 0), but when I connecting me like a free subscriber I don’t have acces to the level “0″ information. instead I’m redirected to the MEMBERSHIP Option Page.

When you login with a Level 0 account, can you see the Login Welcome page? That’s protected at Level 0.

Regarding other Level 0 pages that you say you couldn’t view while logged in, when you get redirected to the Membership Options Page, what is the required level mentioned in the URL vars? [hilite path]Dashboard -› s2Member® -› API / Scripting -› Membership Options Page Variables (MOP Vars)[/hilite]

Did you use any other protection for those Level 0 pages you couldn’t view while logged in? Like custom capabilities. The MOP vars would say this too. You can paste here the vars you get when sent to the Memberhip Options Page.

If the pages are correctly protected at Level 0 (not a higher level) and you can’t view them when logged in, maybe you’re being considered logged out? Knowledge Base » Logged In, But Am I?

And this is the message I have :
“Period of regular payments incorrectly. You must specify values ​​for the parameters correct A3, P3 and T3 subscription”

That’d indicate that something is corrupting the code for the button. Could be your theme or another plugin. Please do the tests suggested in this article: Knowledge Base » Common Troubleshooting Tips


I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 7:54 am #43460

Hi Fábio.

When you import users to a WP that doesn’t have them yet, you need to make sure the user ID column in the CSV (the first one) is empty. If there’s an ID there, WP will expect the user to exist to update him, rather than create him. To create users the user ID has to be missing.

I hope that helps. :)

Posted: Friday Mar 1st, 2013 at 7:51 am #43459

Hi Ganaxi.

Well, what you could do is have a conditional that checks if the user agree to the terms and if not, present him with them and have him agree before he can do anything else while logged in.

You can use get_user_field in the conditional. http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_user_field%28%29

You can probably do this with a must-use plugin, the wp-loaded hook and the wp_redirect function.
Knowledge Base » Hacking s2Member® Via Hooks/Filters
http://adambrown.info/p/wp_hooks/hook/wp_loaded
http://codex.wordpress.org/Function_Reference/wp_redirect

I hope that helps. :)

Posted: Thursday Feb 28th, 2013 at 9:36 am #43409

Hi Laurent.

Another user posted a solution she had developed for her site, which you may find useful for yours. http://www.s2member.com/forums/topic/ccap-drip-timer-drip-multiple-courses/

I hope that helps. :)

Posted: Thursday Feb 28th, 2013 at 8:47 am #43407

The line define(“MEMBERSHIP_LEVELS”, 4); MUST be the very first line of code before anything else in the wp-config file.

Right. Very first line after the opening PHP tag, not before it. Just wanted to clarify that in case it wasn’t obvious to someone with less PHP experience. :)

Posted: Thursday Feb 28th, 2013 at 8:44 am #43406

Hi Ray.

wp-admin/load-styles.php?c=1&dir=ltr&load=admin-bar,wp-admin,buttons&ver=3.5.1

That is not s2Member’s styles file. I’m guessing that the reason why you see the problem when s2Member is active, is that s2Member adds several columns to that table and then the problem becomes obvious. Are those colums for custom profile fields you created?

You could search for the style in your WP files to find where to edit it. You can search in files using some editors (e.g. EditPlus).

Posted: Thursday Feb 28th, 2013 at 8:37 am #43405

No problem. :)

Viewing 25 replies - 2,076 through 2,100 (of 7,376 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.