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,226 through 2,250 (of 7,376 total)
Author Replies
Author Replies
Posted: Thursday Feb 21st, 2013 at 5:35 am #42689

Okay. Let me know how it goes then. :)

If the problem happens again, please post the related log entries x’ing out any private info. [hilite path]Dashboard -› s2Member® -› Log Files (Debug) -› s2Member® Log Viewer[/hilite]

Posted: Thursday Feb 21st, 2013 at 5:32 am #42688

Hi Peter.

i can couple ccaps with a membership level 1 for example.
let the membership level expire after 48 hours, and when the user gets demoted to level 0, all ccaps are deleted – right?

Yes, by default the EOT demotion will remove all ccaps too.

but what if one day, a customer buys a post X for 48 hours, recieves level 1 and the ccap_X and buys another post_Y the next day: will the 48h countdown reset or continue?

Right, if the person purchases Level 1 again, the EOT will be reset. If you’re doing buy-now transactions, then make sure this setting is not set to extend, or it’ll add the new time to what was left, instead of resetting it. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior -> Fixed-Term Extensions (Auto-Extend)? [/hilite]

I hope that helps. :)

Posted: Thursday Feb 21st, 2013 at 4:24 am #42684

Hi Mario.

I know that some site owners have been using s2Member to sell their magazines. Only online, as far as I know, though, not printed. I don’t know how you’d tie the subscription with the printed version of the mag.

Except for the import/export of users, which is possible with s2Member Pro, the rest of the things you mentioned are possible with the free version of s2Member. I suggest that you play with that to see if you can do what you need and if so, then upgrade to get the import/export feature.

I hope that helps. :)

Posted: Thursday Feb 21st, 2013 at 4:19 am #42683

Excellent! :)

Jorge, you don’t need the hack anymore to keep the ccaps on EOT, instead use the setting Jason just added. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior -> Membership EOTs also Remove all Custom Capabilities?[/hilite]

Posted: Wednesday Feb 20th, 2013 at 8:58 am #42577

Hi Echomango.

You can use the [hilite mono]player_option_blocks[/hilite] shortcode attribute. [hilite path]Dashboard -› s2Member® -› Download Options -› Shortcode Attributes & API Functions -> player_option_blocks[/hilite]

The custom, clickable logo requires JW Player Pro. http://www.longtailvideo.com/support/jw-player/29244/custom-clickable-logo

So you will need to add your JW Player license key too. For the logo, then, you’d need to have the following attributes in your shortcode:

[hilite pre_code]
player_key="my-jwplayer-pro-license-key" player_option_blocks="logo:{file:'/logo.png',link:'http: //example.com'}"
[/hilite]

I hope that helps. :)

Posted: Wednesday Feb 20th, 2013 at 8:44 am #42576

Hi Matthew.

The replacement code %%current_user_login%% is for the Login Welcome Page redirection URL, it won’t be available in the navigation menu.

I’m not sure if the navigation menu would allow you to use PHP or a shortcode to enter the user’s level… [hilite path]Dashboard -› s2Member® -› API / Scripting -› PHP/API Constants -> S2MEMBER_CURRENT_USER_ACCESS_LEVEL[/hilite]

A solution would be to have just one Login Welcome Page, and change its content based on the user’s level with conditionals. Knowledge Base » Simple Shortcode Conditionals

Then the navigation link won’t need to use a variable and you wouldn’t have this problem.

I hope that helps. :)

Posted: Wednesday Feb 20th, 2013 at 8:29 am #42573

I can not access any user role editor when I have s2member activated.

That’s odd. I have them active together in my test site and can use the User Role Editor. Are you using the latest versions of each?

Posted: Wednesday Feb 20th, 2013 at 8:25 am #42571

Hi Michael.

You’d have to edit the files to define those variables before they are checked in the line where you get the notice. E.g. default [hilite mono]$cache_needs_updating[/hilite] to false before the conditionals.

I hope that helps. :)

Posted: Wednesday Feb 20th, 2013 at 8:05 am #42569

Hi Rich.

The PayPal URL is part of the processing routine s2Member does for Authorize.Net transactions. [hilite path]Dashboard -› s2Member® -› Log Files (Debug) -› s2Member® Log Viewer -> Debugging -> s2 Core Processors[/hilite]

In your log files, what are the times for the entries of the same transaction? [hilite path]Dashboard -› s2Member® -› Log Files (Debug) -› s2Member® Log Viewer[/hilite]

Could it be that Authorize.Net is notifying s2Member after that long?

Posted: Wednesday Feb 20th, 2013 at 7:48 am #42566

I’d also suggest adding a note next to the button saying “click only once”, as some sites do in the payment step of the checkout. Knowledge Base » s2Member® Pro Forms » Customize

Posted: Wednesday Feb 20th, 2013 at 7:41 am #42565

Hi Cory.

Are you allowing free registrations? [hilite path]Dashboard -› s2Member® -› General Options -› Open Registration[/hilite]

If so, it could be that the user is registering a free account first and then, while logged out, make the payment, but then login to the existing free account. Or maybe the user’s browser is blocking cookies and then, when he registers, the s2Member’s cookie that’d make the new registration set the user to the paid level, is not there.

Do you have logging enabled? It’d be good to check the user’s transaction to see if everything went fine there. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging[/hilite]

Posted: Wednesday Feb 20th, 2013 at 7:17 am #42562

Hi Stuart.

What did you set your rra attribute to in your pro-form/button? [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Shortcode Attributes -> rra[/hilite]

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.

Is PayPal done with the reattempts when s2Member says it doesn’t have to do anything yet, or will PayPal still keep attempting to get the payment? Does PayPal let you edit the reattempt failed payments setting for the existing subscriptions?

Posted: Wednesday Feb 20th, 2013 at 6:44 am #42560

Hi Chris.

The JavaScript that displays a warning if a required field is missing, is working because it popped up when I didn’t fill out the required text fields.

Are you positive that the checkboxes were set to required? [hilite path]Dashboard -› s2Member® -› General Options -› Registration/Profile Fields[/hilite]

Posted: Wednesday Feb 20th, 2013 at 6:24 am #42559

Yeah. On EOT the demotion removes all ccaps. The hack I mentioned earlier would prevent the ccap removal and only the level would change (to 0).

I’d suggest that you sell the lifetime ccap independently, and the subscription as a level.
[hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Capability (Buy Now) Forms[/hilite]
[hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Membership Level # Forms[/hilite]

Posted: Tuesday Feb 19th, 2013 at 4:53 am #42462

Nevin, did you set an AWeber list for free users? [hilite path]Dashboard -› s2Member® -› API / List Servers -› AWeber® -> Free Subscribers[/hilite]

Also, did you follow the suggestions in this article? Knowledge Base » Debugging the AWeber integration

If those don’t help, please submit your site’s info like Bruce requested, please. s2Member® » Private Contact Form

ONE MORE ANNOYANCE: I’m not sure how to test this? When I click the Paypal button to sign up and see what happens, it says that I’m unable to go that, because I’m the company owner?!

If you try to purchase in PayPal with the same account you’re selling with, that’d be a problem. Use a second PayPal account to test. If you’re not selling a subscription and instead it’s a buy now, you should also be able to pay without logging into a PayPal account and just pay with a card.


I hope that helps!

Posted: Tuesday Feb 19th, 2013 at 4:42 am #42460

Hi Keith.

This article explains how to customize your pro-form: http://www.s2member.com/kb/pro-forms/#customizing-pro-forms

I would also suggest that you use the [hilite mono]ws_plugin__s2member_during_configure_user_registration[/hilite] hook to catch your custom data and save it during the registration event. That hook is always fired during checkout via pro-forms. http://www.s2member.com/codex/stable/s2member/registrations/package-filters/#src_doc_ws_plugin__s2member_during_configure_user_registration_front_side

Then you can create a must-use plugin file in /wp-content/mu-plugins/ and using that hook you can check [hilite mono]$_POST[/hilite] for your custom fields and store them with [hilite mono]update_user_option()[/hilite]. http://codex.wordpress.org/Function_Reference/update_user_option

I hope that helps. :)

Posted: Tuesday Feb 19th, 2013 at 4:23 am #42458

Hi Jorge.

What you could do is use a level for the monthly membership and the ccap for the lifetime access. ccaps can’t be sold with a subscription, you’re probably already using the levels for that anyway. So use the ccaps for the lifetime access only.

That way, you can edit the EOT behavior code so that on demotion the level is changed to 0, but the ccaps aren’t removed. Please take a look at this: http://www.s2member.com/forums/topic/question-about-ccaps-recurring-payment-and/#post-30257

I hope that helps!

Posted: Saturday Jan 12th, 2013 at 11:25 pm #37203

I’m glad it’s all working now. :)

You can use the Options Export/Import tool, but you’d also get much faster after each time you do it manually. [hilite path]Dashboard -› s2Member® -› Import/Export -› s2Member® Options[/hilite]

Posted: Saturday Jan 12th, 2013 at 8:12 am #37125

Robert, when you entered that IPN URL into your PayPal IPN setting, did you get the URL from s2Member? [hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration[/hilite]

The one you posted seems wrong, the right one is likely to be https://www.commitmentsoftradersanalytics.com/?s2member_paypal_notify=1

Posted: Saturday Jan 12th, 2013 at 8:06 am #37124

I see. That’s odd then, those conditions should be fine… Could you try this conditional taken from the documentation examples? [hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals -> Example 3[/hilite]

[hilite pre_code]

Some premium content for Level 4 Members.

Some premium content for Level 3 Members.

Some premium content for Level 2 Members.

Some premium content for Level 1 Members.

Some content for Free Subscribers.

Some public content.

[/hilite]

[hilite mono]"s2member_leveln"[/hilite] is the WP role, which you can see with a plugin like User Role Editor.
http://wordpress.org/extend/plugins/user-role-editor/
http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_current_user_is%28%29

Posted: Saturday Jan 12th, 2013 at 7:49 am #37121

Something happened to my install awhile back and I had to have the hosting company restore it from a previous point in time, so I think in that restore process something corrupted.

I see, yeah, that’s possible.

Unless you know of any conflicts with buddypress that may be causing it? However, I find that unlikely.

I haven’t seen this reported when BuddyPress is combined with s2Member.

I have s2Member running on another site with almost identical plugins installed, minus buddypress, so I think it is definitely a corruption somewhere in this particular site / wordpress install.

Okay, thanks for confirming it.

If your installation with the problem can’t be fixed, I guess you can try going with rebuilding the site from clean scripts, like you didn with the test installation. Then try to recover the data from the live site, but being careful not to carry over corrupt data. You could export the users, then review the rows to make sure everything’s fine, and then import to the new installation. Once you have the new one working right and no problems can be found, make the switch.

Thanks for your knowledge and efforts. I appreciate it.

No problem, I’m happy to help. :)

Posted: Saturday Jan 12th, 2013 at 7:42 am #37120

Heh, don’t worry. I’ve been working with s2Member for much longer and didn’t know that particular shortcode either. Sorry I didn’t point you to it earlier, I haven’t had much experience with the ccBill integration yet.

I’m very glad it was a simple solution and that you got it working now. Let us know if you have more questions. :)

Posted: Saturday Jan 12th, 2013 at 7:39 am #37119

Thanks for the info, Robert.

I went to your ClickBank account to review the settings, all looked okay this time. I did edit product 3 a little to remove the mobile URLs, since they were the same pages for pitch and thank-you, but you had left out the success redirection URL for the thank-you.

I generated a new test card, went to the pitch page “Landing”, made sure I wasn’t logged in to the admin account, reloaded the page, clicked the order button generated with the s2Member shortcode. Went throught the checkout, was taken to the thank-you page, checked my email and found the s2Member signup confirmation in the Spam box, clicked the access link and got to the registration form. Created the account, checked my email for the password, logged in to your site with the new account, and was shown the Login Welcome. I clicked some of the links to the modules and could load them fine.

Everything went just fine in my test. What part of it did you have a problem with in your latest test?

Posted: Saturday Jan 12th, 2013 at 7:11 am #37118

I’m not sure where you mean when you say “two different times in parts of the code”…

This is what Jason told me some months ago regarding this:

Jason said:
FYI: Another important note. The WP framework sets the PHP ini setting for timezone to UTC. So all date() time() functions in PHP will return GMT/UTC time, and not the time zone configured for the site or on the server, or even in the PHP ini file (e.g. WP overrides all of that). In other words, the custom time zone you configure in your WP Dashboard is used only in dates displayed by your theme (when UTC/GMT is converted to your configured timezone), but not in date calculations. All date calculations in WP are in GMT/UTC time.

Posted: Friday Jan 11th, 2013 at 9:37 pm #37065

Thank you, Thank you, Thank you!
The hack was the culprit. I can’t believe I missed that.

Glad you found the problem. Thanks for the update. :)

I’m fuzzy on how to automatically log a user in once they’ve been redirected to a custom thank-you page.

I haven’t tried it yet, but you could probably try the same login code from the hack, but in a PHP block in the page you redirect the user to on success. You’ll need a PHP execution plugin.

Or, you could add a variable at the end of the success redirection URL and have your hack pick it up from the $_GET array to know when to do the auto-login. Something along those lines I guess.

Viewing 25 replies - 2,226 through 2,250 (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.