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 - 7,026 through 7,050 (of 7,376 total)
Author Replies
Author Replies
Posted: Tuesday Mar 13th, 2012 at 5:47 am #7960

Thanks cassel!

Hi Fender.

She’s right, you can use ccaps.
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Custom Capabilities[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Custom Capability & Member Level Files[/hilite]

This video can help understand them:

If you still prefer to use levels, you could do it using conditionals in posts, but you wouldn’t have a way to protect downloads from users with a higher level.
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals -> Example #3[/hilite]

I hope that helps!

Posted: Tuesday Mar 13th, 2012 at 5:35 am #7958

The sharing would only share the link to the page, not the content. It’s like getting a backlink, not posting your page elsewhere. If someone without access followed the link, s2Member would treat them as any other visit.

Since the content won’t be available even to the service, e.g. Facebook, make sure you have a snippet and image that will be used for the share, or it’ll just be empty.

Let us know how it goes if you try it, please. :)

Posted: Tuesday Mar 13th, 2012 at 5:32 am #7957

Hi Gerard.

Right, you should be able to do that with the free version. The Notification API is what you may want to use.
[hilite path]Dashboard -› s2Member® -› API / Notifications[/hilite]

About the registration and payment part, you can have them pay first and register second, or the other way around.

If you want to have them register and pay in the same step, you would need the Pro add-on to use a pro-form.
Pre Sale FAQs » To use s2Member® Pro Forms, will I have to use PayPal® Pro?

I hope that helps! :)

Posted: Tuesday Mar 13th, 2012 at 5:26 am #7956

Hi Sunny.

Nothing specific to phpBB in the current s2Member, but we are working on the new major release of s2Member, which may make it possible to do something with it. I can’t go into details about it right now, though.

I know I’m not saying much, but I hope it’s not a long wait, hopefully a month or so. :)

Posted: Tuesday Mar 13th, 2012 at 5:24 am #7955

Hi Kent.

Great question. This is really up to Google. I think you’ll have to ask them about it. I’m not sure if they have a system to update the payment info or if they’ll need to create a new subscription for the new card.

Please let us know what they tell you! :)

Posted: Tuesday Mar 13th, 2012 at 5:20 am #7954

Hello Sher.

Thank you so much for the kudos! We’re glad you’re developing with s2Member. :)

I’ll email Jason your question, in case he has a suggestion to make for your develper.

Posted: Tuesday Mar 13th, 2012 at 5:12 am #7952

Hi José.

I don’t know about shopping carts to recommend. Maybe you can search the old forums to see if you find mentions of particular scripts that other users reported as compatible with s2Member.
http://www.primothemes.com/forums/viewforum.php?f=4

s2Member doesn’t have shopping cart features yet, I’m sorry. :/

Posted: Tuesday Mar 13th, 2012 at 5:08 am #7951

This is part of a conversation I had with Jason some months ago regarding JavaScript conflicts.

Cristián: I still don’t understand how the JS conflicts work… If the library is the same in both plugins, why is there a conflict? Same var names?

Jason Caldwell: Well, I call it a conflict. Sometimes it’s a conflict in jQuery because of a bad plugin, which attempts to load jQuery on it’s own, instead of doing it the WP way. Or sometimes, it just a bad plugin that causes a JavaScript error, which may result in all JavaScript failing (the nature of JavaScript). Not really a “conflict” in that case, really an error due to a bad plugin/theme.

Jason Caldwell: I’ve also see some conflicts between frameworks. That’s rare, but there are some plugins that use the ProtoType framework, and combined with another framework like MooTools, there is a possibility for a conflict to arise. Rare though, and it’s usually attributed to the way their loaded (i.e. by a bad plugin/theme).

Cristián: Does WP load JQuery already? If so, why do plugins load it too?

Jason Caldwell: Yea, WP already loads it. But some plugin authors don’t know that, or they just hard code it into their plugin not realizing that. Other times they’ll try to include a dependency on jQuery, but they name it wrong, and WordPress gets confused.

Cristián: Does s2Member load it again or uses WP’s?

Jason Caldwell: Hmm, not really, because in the Dashboard, it’s already loaded by WordPress. s2Member enques scripts that is uses, which rely on jQuery being present. In the call to wp_enqueue_script(), s2Member will list jQuery as a dependency, which forces WP to load it, though it’s already loaded in the Dashboard anyway. That’s the proper way to handle it.

On the front-end of a site, s2Member will load jQuery if it’s not already loaded, but again, using the same technique. A call to wp_enqueue_script() with a dependency on jQuery forces WP to load jQuery. If 10 plugins all do it this way (i.e. the right way), WordPress loads jQuery in the proper order and only one time.

Cristián: Ah, got it. I understand WP has a QC team, don’t they check this?

Jason Caldwell: Not in my experience. They look mostly for security issues and really bad code. They usually don’t catch minute details like this.

Cristián: I see. Well, they do look at how the db is used, iirc.

Cristián: I see, but these details do cause trouble for the users. Maybe it’d be good to write an article about JS conflicts as you explained above and post it in the forums, and then show it to the QC guys for consideration to include in their quality checklist.

Jason Caldwell: Yea, that’s a good idea. On the WP side though, they’re aware of this problem, and that’s why they created the wp_enqueue_script() wp_enqueue_style() functions. Although, I wish this were more prominent in this article: http://codex.wordpress.org/Writing_a_Plugin#Plugin_Development_Suggestions

It is mentioned, but it’s all the way at the bottom:

Try not to echo [hilite mono]script[/hilite] and [hilite mono]style[/hilite] tags directly – instead use the recommended [hilite mono]wp_enqueue_style()[/hilite] and [hilite mono]wp_enqueue_script()[/hilite] functions. They help eliminate including duplicate scripts and styles as well as introduce dependency support. See posts by the following people for more info: Ozh Richard, Artem Russakovskii, and Vladimir Prelovac.

I hope it helps you recognize what the theme is doing wrong and fix it. :)

Posted: Tuesday Mar 13th, 2012 at 5:00 am #7950

Ah, sorry I didn’t understand earlier.

Yeah, if the recurring ones are prefixed with an I-, then your code should be fine.

About suggesting a variation, it’d probably be to make it shorter, if you care about that:

[hilite pre_code]
if (strstr(S2MEMBER_CURRENT_USER_SUBSCR_ID, '-', true) == 'I')
echo 'you are a recurring payer.';
else
echo 'You are a single payer.';
[/hilite]
Posted: Tuesday Mar 13th, 2012 at 4:38 am #7949

Hi Joanne.

This is a bit over my head, so I’m emailing Jason.

That said, have you tried raising the IPs limit in your settings?
[hilite path]Dashboard -› s2Member® -› Restriction Options -› Brute Force IP/Login Restrictions[/hilite]

Posted: Tuesday Mar 13th, 2012 at 4:36 am #7948

Hi David.

Could you post the URL you’re using that’s giving the 403?

Thanks!

Posted: Tuesday Mar 13th, 2012 at 4:30 am #7947

Invalid Regular period. You must specify valid values for the A3, P3, and T3 parameters for a subscription.

Hmm… I only remember having seen that error come up for a user that had trouble with parsing in the page where the button’s shortcode was. It could be a plugin or the theme doing it.

As a test to find which is causing the problem, you could try the default theme and see if now it works and if not, deactivate other plugins and try after each.

Another option would be to generate a button over at PayPal, integrated with s2Member following these instructions:
Knowledge Base » Using PayPal created buttons

I hope that helps!

Posted: Tuesday Mar 13th, 2012 at 4:24 am #7946

So you have a multisite network? Will you be giving blogs to your users or just using it that way to organize your site?

s2Member will be usable in all the blogs if you activate that, but each instance will be independent of the rest. Not because you have s2Member set up in one, will it share its settings with s2Member in another.

I’m not very familiar with advanced multisite setups, but have seen some users find this thread useful:
http://www.primothemes.com/forums/viewtopic.php?f=36&t=1414

You may also want to search the old forum for buddypress in multisite, you may find helpful posts.

I hope that helps.

Posted: Tuesday Mar 13th, 2012 at 4:09 am #7945

I don’t think it can work with the current s2Member, of I believe Jason would have mentioned it in the past. Yes, it’s planned to add it to the PayPal integration after the new major release of s2Member, but I don’t have no date for it.

Posted: Tuesday Mar 13th, 2012 at 4:02 am #7944

Hi Lee. I’m emailing Jason to remind him of this, it probably slipped through the cracks in his inbox.

Posted: Sunday Mar 11th, 2012 at 11:40 pm #7880

:)

Posted: Saturday Mar 10th, 2012 at 1:40 pm #7835

Nice solution. Thanks for sharing it. I’m glad you sorted it out. :)

The major release may be in a month, but it’s not certain yet. We are working on it right now, it’s the main development focus.

Posted: Saturday Mar 10th, 2012 at 2:04 am #7825

Hi! Thanks for the kudos! :)

I think you can do the conditional checking if the subscr ID is empty or not. If not, then the user has a subscription going.
[hilite path]Dashboard -› s2Member® -› API / Scripting -› PHP/API Constants -> S2MEMBER_CURRENT_USER_SUBSCR_ID[/hilite]

Something like this maybe:

[hilite pre_code]
if (current_user_can('access_s2member_level1')
{
if (empty(S2MEMBER_CURRENT_USER_SUBSCR_ID))
// Button for single payment user
else
// Button for recurring payment user
}
[/hilite]

I hope that helps. :)

Posted: Friday Mar 9th, 2012 at 9:47 pm #7824

Who knows why that caused a problem, but I’m glad you fixed it. I hope it doesn’t give you trouble again. :)

Posted: Friday Mar 9th, 2012 at 9:46 pm #7823

:/

Posted: Friday Mar 9th, 2012 at 7:18 pm #7816

If you make BuddyPress work with the same WordPress installation you have s2Member running on, it should be fine.

Posted: Friday Mar 9th, 2012 at 7:16 pm #7815

I understand.

I suggest that you look at how you could use the Membership Options Page variables so you know what file the person tried to download before logging in. You could store this in a cookie and check it right after login to know what to give him.
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Membership Options Page Variables (MOP Vars)[/hilite]

Posted: Friday Mar 9th, 2012 at 6:25 pm #7811

Hi Ohm.

You can protect the downloads at s2Member Level 0, which will make the non-logged in users to be redirected to the Membership Options Page. There you can tell them to login if they have an account, or register if they don’t. Free registration gives them that level of access, so they’ll be able to go back and download the files. You don’t need s2Member Pro for this.

The customization Raam mentioned would be required to make the download start automatically after registration.

I hope that helps. :)

Posted: Friday Mar 9th, 2012 at 6:12 pm #7809

Hi Nola.

It is possible with the pro-forms.
[hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms[/hilite]

Are these levels being sold or you’re just letting people register free? There’s the free registration pro-form, which you can use to register users at any level.
[hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms[/hilite]

If you’re selling, you’d use one of the other pro-forms for the right level, but they’ll require PayPal Pro to work best, although you can do with just Express Checkout but it’ll require all users to have a PayPal account.
Pre Sale FAQs » To use s2Member® Pro Forms, will I have to use PayPal® Pro?

You could sell with the PayPal button the level and use the free pro-form for the registration: Sell access to a specific page and in it use the free registration pro-form.
[hilite path]Dashboard -› s2Member® -› PayPal® Buttons -› Specific Post/Page (Buy Now) Buttons[/hilite]
http://www.youtube.com/playlist?list=PLED64B278374AB72F&feature=plcp

I hope that helps. :)

Posted: Friday Mar 9th, 2012 at 5:40 pm #7801

Not. The thing is that the Specific Page restriction sales are buy-now transactions (one-time payment), not subscriptions (recurring).

In the coming major release it may be possible to sell Specific Page access with a subscription, but not yet.

Viewing 25 replies - 7,026 through 7,050 (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.