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,176 through 2,200 (of 7,376 total)
Author Replies
Author Replies
Posted: Sunday Feb 24th, 2013 at 7:47 am #43090

Hi Angela.

You’re doing the var_dump before adding the other values.

And you seem to be using the methods incorrectly. For example, the role would be set like this:

[hilite pre_code]
$new_user->set_role($role);
[/hilite]

Knowledge Base » Changing Roles/Capabilities via PHP

I hope that helps. :)

Posted: Sunday Feb 24th, 2013 at 7:41 am #43089

Hi Thomas.

s2Member isn’t integrated with Paymill, but you could try integrating it yourself. The PayPal IPN with Proxy Key may work for you, or you can try the Remote Operations API.

[hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration -> IPN w/ Proxy Key[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Remote Operations API[/hilite]

I hope that helps. :)

Posted: Sunday Feb 24th, 2013 at 7:36 am #43087

No problem! I hope it does. :)

Posted: Sunday Feb 24th, 2013 at 7:34 am #43086

Glad I could help! :)

Posted: Saturday Feb 23rd, 2013 at 5:32 pm #43066

Found the problem. Your [hilite mono]$context[/hilite] string for this translation is wrong, it should be [hilite mono]'s2member-front paypal-button-lang-code'[/hilite].

[hilite pre_code]
if ($context === 's2member-front paypal-button-lang-code') {
if ($original === 'en_US')
$translated = 'zh_CN';
}
[/hilite]
Posted: Saturday Feb 23rd, 2013 at 8:48 am #43035

Hi Angel.

There isn’t a date for it yet, bu it’s in our list of features to implement. It’ll likely be in the new generation of s2Member being developed, but there isn’t a release date for it.

There’s a hack to store ccaps in MailChimp as merge fields, with which you can segment your list. I think you can do something similar with AWeber. But this is probably a bit advanced for you, so it may not be the solution you’re hoping for.

Posted: Saturday Feb 23rd, 2013 at 8:09 am #43012

Thanks for the code.

Do the other lines for translations work? Is it only the ‘en_US’ string the one giving you trouble?

I see you’re using elseif’s. If one of those conditions is true, then none of the remaining ones will be evaluated. So if one of the other strings got translated, you’ll never reach the ‘en_US’ one. You may want to use just if’s or a switch. http://php.net/manual/en/control-structures.switch.php

As a test, could you remove all other translations and leave just the ‘en_US’ one and see if it works?

Also, try replacing all [hilite mono]===[/hilite]‘s with [hilite mono]==[/hilite]‘s.

Posted: Saturday Feb 23rd, 2013 at 7:30 am #43001

I’ll add a few comments to Bruce’s comprehensive reply:

Levels give incremental access, but you can edit the roles to remove the access caps to lower levels, or use conditionals in your pages/posts or a hack.

Ccaps are powerful, but don’t protect category, tags or URIs yet, although you could write a hack to do it. Video » s2Member (Custom Capabilities)

And s2Member only deals with a single EOT for all access, there isn’t yet a separate EOT for each access. So if you sell separate access to content, you would not be able to end each separately without some extra hacking.

If you protect a post/page with level and ccaps, then both will be needed, and if you protect with more than one ccap, all will be required. This is the AND logic Bruce mentioned. I think you could have a hack with your own OR conditions and bypass the default behavior.

So, basically, you can do almost anything with some hacks, and that’s what I love most about s2Member. If you can integrate a new payment gateway, then I’m guessing that altering the access restrictions won’t be too hard for you.

I hope that helps. :)

Posted: Friday Feb 22nd, 2013 at 10:59 pm #42894

Glad you solved it! Thanks for the update. :)

Posted: Friday Feb 22nd, 2013 at 10:44 pm #42891

Could you post inside code tags, the whole hack you’re trying and isn’t working? I’d like to review the code and try it myself. Thanks!

Posted: Friday Feb 22nd, 2013 at 7:16 pm #42873

Thanks!

Posted: Friday Feb 22nd, 2013 at 6:35 pm #42870

Oh, that’s great! Thanks for the update. I’m very glad you solved it. :)

I’ll tell Jason too, maybe our Server Check tool can have a way to tell what mode it’s in and warn based on that too… Could you tell me what mode it was in and which you changed it to now?

Posted: Friday Feb 22nd, 2013 at 11:49 am #42847

No need to generate a new one, you can edit that one manually. Just change the [hilite mono]rt[/hilite] to [hilite mono]L[/hilite] (lifetime): [hilite code]rt="L"[/hilite].

Try it and let me know if you still have the problem after that. :)

Posted: Friday Feb 22nd, 2013 at 11:44 am #42845

Okay. Yeah, that’s a weird behavior.

I would suspect a conflict, so it’d be good if you did the tests suggested in the troubleshooting article I linked to earlier.

Posted: Friday Feb 22nd, 2013 at 11:41 am #42843

Hi Julie.

1) How do I get the login box into the body of the page, instead of in a widget/sidebar? I read a bit about a Pro Login Widget via PHP, but when I pasted this code into the HTML of my post…

Is s2Member Pro active in your site? [hilite path]Dashboard -› s2Member® -› s2Member Pro Info[/hilite]

Do you have a PHP execution plugin installed? Knowledge Base » ezPHP Plugin for WordPress®

2) Would it simplify things if I put the login in the sidebar instead?

Yes, that’d be fine too.

3) How do I get the user redirected back to the same post after logging in?

The widget has a setting to return the person to the same page where he logged in from.

4) How do I get the user redirected back to the same post after creating a new account?

If you use the pro-forms for registration, you can use the success attribute. [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Custom Return URLs Upon Success[/hilite]

If you use the WP registration page, I think you can use the [hilite mono]redirect_to[/hilite] variable.


I hope that helps. :)

Posted: Friday Feb 22nd, 2013 at 11:20 am #42839

in file s2member-a.php. But it can not translate to “zh_CN”, still keep “en_US”, Anybody can help me?

Please read this: http://www.s2member.com/forums/topic/custom-button-on-paypal-pro-form/#post-35211

You can also try using just two equal signs instead of three in the conditions: [hilite code]==[/hilite].

I hope that helps. :)

Posted: Friday Feb 22nd, 2013 at 11:14 am #42837

Hi Justin.

Are you being consistent with the use of www throught your site? Knowledge Base » Don't Mix www, — and Without!

What’s your site’s address? What do you have in your [hilite mono]custom[/hilite] attribute?

Posted: Friday Feb 22nd, 2013 at 11:09 am #42835

Hum, I’m definitely not a coder! So the alternative solution right now is to manually add all the page ID’s that I want block? I can do some URI blocking too I think.

Cool. Yeah, that’d be best then.

You can use URI restrictions for some bulk protection, as well as tag and category restrictions. Then leave out of those the ones you want publicly accessible.

Any ETA on this?

No, none yet.

Posted: Friday Feb 22nd, 2013 at 11:04 am #42834

Thanks for the update.

I see… Have you verified that the IPN setting is correct then? [hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration[/hilite]

I’d also contact PayPal to ask them about these “retrying” notifications. What response are they getting from the server that is resulting in a failure that needs a retry?

Not sure if it’s related but, just in case: Knowledge Base » Mod Security, Random 503/403 Errors

I’d also try these tips, if the above doesn’t help: Knowledge Base » Common Troubleshooting Tips

Posted: Friday Feb 22nd, 2013 at 10:59 am #42833

Hi there.

All (58) | School Admin (1)

Have you tried clicking the “All” link?

If that doesn’t help, you can try the tips given in this article: Knowledge Base » Common Troubleshooting Tips

I hope that helps. :)

Posted: Friday Feb 22nd, 2013 at 10:55 am #42832

Hi Hans.

Have you tried the tips provided in this article? Knowledge Base » Debugging the AWeber integration

I hope that helps. :)

Posted: Friday Feb 22nd, 2013 at 10:46 am #42830

Thanks for all the extra info, Rich.

I’m forwarding this to Jason to look into. Could you please submit your site’s info so he can investigate it? Thanks! s2Member® » Private Contact Form

Posted: Friday Feb 22nd, 2013 at 10:41 am #42828

Hi Damian.

You’d use it prefixing the class to the method, like this: [hilite code]c_ws_plugin__s2member_utils_urls::add_s2member_sig( ... )[/hilite].

I hope that helps. :)

Posted: Friday Feb 22nd, 2013 at 10:29 am #42825

Unfortunately, Pro Forms is not an option, because Payments Pro is not available in my country.

You can use the pro-forms without PayPal Payments Pro, you can use Express Checkout which is most probably available to you. Ask your PayPal support rep about it.

The registration form url is not a dynamic link dependent on the sucess of the transaction?

The return URL will be the s2Member one, s2Member processes the data it receives from PayPal, and then forwards to the URL you specified in the successs attribute. s2Member will set a cookie in the user’s browser and it will be picked up in the WP registration page.

The cookie will allow registration even if Open Registrations are disabled, and it includes the data to set the new account with the correct access the user paid for. The registration page’s URL is not dynamic, the data is in the cookie.

There is a custom registration link sent to the user in the confirmation email after checkout, which includes the data the cookie would have, and this is useful in case the cookie couldn’t be set for some reason.

Posted: Friday Feb 22nd, 2013 at 10:18 am #42822

Hi Luke.

This is not possible in s2Member yet, but it’s in our feature requests list and we plan to implement it in the future.

You could try creating a customization with a hack that checks if the page’s ID is one of those you want to whitelist and, if so, let the user access it. Try using the [hilite mono]wp_loaded[/hilite] hook [hilite mono]get_the_ID[/hilite] function.

Knowledge Base » Hacking s2Member® Via Hooks/Filters
http://adambrown.info/p/wp_hooks/hook/wp_loaded
http://codex.wordpress.org/Function_Reference/get_the_ID

I hope that helps. :)

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