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 - 1,901 through 1,925 (of 7,376 total)
Author Replies
Author Replies
Posted: Sunday Mar 10th, 2013 at 1:10 am #44189

Ah, I see, you have a customized installation. I’m not familiar with this, sorry. Have you tried asking the developer of that plugin about it?

Or you can just try using PHP to list the files in the directory… https://www.google.com/search?q=php+list+files+in+directory

Posted: Sunday Mar 10th, 2013 at 1:06 am #44188

Ah ok, thanks for the update. :)

Posted: Sunday Mar 10th, 2013 at 1:05 am #44187

Hi Rob.

The login session accross the network is not something s2Member handles, you’ll need to search how it’s done in WP multisite, I’m not very familiar with that.

This article may help with the role change using PHP: Knowledge Base » Changing Roles/Capabilities via PHP.

Actually, it may be better if you found to share the users between the blogs in the network, so it’ll be the same account with the role across the network. Maybe there’s a plugin for that?

Sorry I couldn’t help more with this.

By the way, are you giving blogs to the users or you just use multisite to manage your content and users don’t get their own blogs? If you use s2Member Pro in a network where users get their blogs, you’ll need the Network Support license. http://www.s2member.com/prices/#s2-terms-blog-farming

If you need to upgrade, you can do it just paying the difference with the one you have. You’ll find an upgrade link in your Account page. http://www.s2member.com/account/ :)

Posted: Sunday Mar 10th, 2013 at 12:53 am #44186

Hi Patryk.

Thanks for sharing your solution. :)

$user_capabilities[0]=="review"

For that condition, you may prefer to use:

[hilite pre_code]
current_user_can('access_s2member_ccap_review')
[/hilite]
Posted: Sunday Mar 10th, 2013 at 12:38 am #44184

Hi Garry.

If I understood correctly, what you want is to sell videos individually (one-time payment, lifetime access) or in a membership (montly payment, access ends with subscription cancellation).

You can sell the custom capabilities individually if they’re a one-time (buy now) payment. [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Capability (Buy Now) Forms[/hilite]

Set the Auto EOT Behavior to not remove custom capabilities on demotion when a subscription ends. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior -> Remove all Custom Capabilities[/hilite]

Don’t protect the video pages with a custom capability or level restriction, since you want to use both and s2Member will expect the user to have both to give access, not just one of them. Instead, in the page’s content, use conditionals with the OR condition for the ccap or level you require. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals[/hilite]

These conditionals would also need to take into account the subscription time to drip the access. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Content Dripping[/hilite]

The link to the protected videos, since they may be accessed by one with a level or ccap, will need to have a download key. [hilite path]Dashboard -› s2Member® -› Download Options -› Advanced Download Restrictions[/hilite]

I hope that helps. :)

Posted: Saturday Mar 9th, 2013 at 11:45 pm #44182

Hi Simon.

Sorry for the delay, we’re having a pretty busy week here. Thanks for your patience. :)

We want to demote them all to free types (but only restrict their on-site capabilities) not lose their extended Profile data. We want to contact them all and ask them to return to their account to pay to upgrade it again to one of the paid types.

Is this feasible ?

The role change will normally only affect their access. The custom profile fields will only be affected if the fields were only for the higher level and not enabled for level 0. If the field is for all levels, then it’s fine. In the profile field editor, look for the “Applicable Membership Levels” setting.

You can try with a test account to see how it’ll behave before doing it with your users.

To demote several users, you can change their role in bulk from the Users list, or editing each profile separately. [hilite path]WP Admin -> Users[/hilite]

I hope that helps. :)

Posted: Saturday Mar 9th, 2013 at 11:36 pm #44181

Hi Govo.

No, you don’t need PayPal Pro to use button encryption, it’s for PayPal Standard. What does the error say?

Posted: Saturday Mar 9th, 2013 at 11:35 pm #44180

Hi Craig.

Since s2Member hasn’t changed, it’s something else introducing the problem. Could you please try the suggestions in this article? Knowledge Base » Common Troubleshooting Tips

Also make sure logging is enabled and monitor the entries for the transactions with the problem, see if any error or problem is shown there. [hilite path]Dashboard -› s2Member® -› Log Files (Debug) -› s2Member® Log Viewer[/hilite]

I hope that helps. :)

Posted: Saturday Mar 9th, 2013 at 11:32 pm #44179

Hi James.

Do you mean on theme upgrades? s2Member wouldn’t touch the customizations there.

If it’s the return page, you may also want to use a custom success page for it.

Pro-forms: [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Custom Return URLs Upon Success[/hilite]
Buttons: [hilite path]Dashboard -› s2Member® -› PayPal® Buttons -› Shortcode Attributes -> success[/hilite]

I hope that helps. :)

Posted: Saturday Mar 9th, 2013 at 11:30 pm #44178

Hi James.

Thanks for the kudos. :)

During new user reg’n we ask for their first/last names. Why can’t PP provide those to us?

You could probably create a hack for this, but since the PayPal account may be under a different name from the one the person registers as in your site, we chose to leave them separate.

Also, any way to use an email rather than a username for registration?

Yes, there’s a hack for that. See: http://www.s2member.com/forums/topic/user-registration-without-username/#post-31144

I hope that helps. :)

Posted: Saturday Mar 9th, 2013 at 11:23 pm #44177

Hi Yuka.

The email sent is in plain text format, not HTML. That said, many email clients parse URLs in the message and link them automatically.

If you don’t customize the default WP New User email with s2Member, you may find a plugin that lets you send emails in HTML format. I found this one that was just published, you can test if it works without conflicting: http://wordpress.org/extend/plugins/ez-emails/

I hope that helps.

Posted: Saturday Mar 9th, 2013 at 9:24 pm #44175

Hi Vincent.

I’m afraid that other than removing the Unique IP restriction, there won’t be a way to use the same Specific Post/Page Access link for all your customers the way you set it up. And removing the Unique IP restriction, giving that special link is pretty much the same as just using a hidden page with no protection. Users won’t be prevented very much from sharing the link and non-paying users getting to download.

You basically need to have a way to tell each user apart if you want to protect the download properly.

What I suggest is that you have them register on your site to get to the protected download. But this too would be a problem, because you’re selling outside of what s2Member controls, so you’d need to give them an access link to register on your site, but it’d only be good to register once.

You’ll have to integrate the sales process with s2Member so each user gets his own unique registration link or Specific Post/Page link.

You can sell with s2Member’s buttons/pro-forms. This would be the best, because it doesn’t require a special integration with s2Member. But you would need to alter your sales process a bit, since you’re using a cart to sell now.

You could integrate your current process so the return after payment is to s2Member’s URL with the variables it needs, to process the sale and send a unique link to the user. You can use the PayPal IPN with Proxy Key. The guide to create buttons over at PayPal will also help see the variables needed by s2Member.
[hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration -> Proxy Key[/hilite]
Knowledge Base » Using Buttons Generated @ PayPal.com

Or, using the Remote Operations API you can have your system create a account for the user after he purchases. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Remote Operations API[/hilite]

Or create a customization so that after purchase in your cart, an s2Member Specific Post/Page access link is generated for that specific user and send the email with it from your customization, not the autoresponder service.

I hope that helps. :)

Posted: Saturday Mar 9th, 2013 at 8:49 pm #44174

Hi Rena.

So you mean that those users had their account deleted and when they tried to login, or probably when they tried recover their password after not being able to login, they got the error about the email address not being in use?

I have users demoted to level 0 of their payment fails…not deleted!

You are referring to the Auto EOT Behavior setting? [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior[/hilite]

Could you please submit your site info so I take a look at this and the logs? Please include the subscr ID of these users with the problem so I can find them in the log. s2Member® » Private Contact Form

Let me know when you sent it. Thanks!

Posted: Saturday Mar 9th, 2013 at 11:08 am #44159

Hi Wayne.

Since it seems to be related to you removing bbPress, it’d be good to try the reset button Eduán mentioned. [hilite path]Dashboard -› s2Member® -› Other Integrations -› bbPress®[/hilite]

But since it’s related to the Login Welcome page, please see this: Video » s2Member (Login Welcome Page Conflicts?)

And please verify there isn’t a login session problem, which would cause the user not to be allowed to the Login Welcome page, which requires the user to be logged in. Knowledge Base » Logged In, But Am I?

Posted: Saturday Mar 9th, 2013 at 10:17 am #44156

Hi Rich.

It sounds like you’ve had something set the EOT for that date. Maybe a hack? It sounds like something that’s been asked long ago in the forum, even the date… Maybe in your must-use plugins, or some other place?

If a date is set in the user’s profile, then s2Member will ignore subscription notifications from the payment gateway. This field should be empty for s2Member to use the EOT time based on the subscription’s end on the payment gateway.

The only thing we tried to change was to increase the number of levels based on the s2member instructions. But we didn’t get this to work.

That seems unrelated to the EOT thing. But if you want to make it work, could you show me the code you added and the lines before it? Did you follow the documentation instructions exactly? [hilite path]Dashboard -› s2Member® -› General Options -› Membership Levels/Labels[/hilite]

The other thing we found out today was that testing an upgrade from level0 to a paid level, the problem did not show up

The upgrade ends the previous subscription and starts a new one. If the EOT was left blank, maybe you don’t have a hack for that in your installation anymore. Perhaps those users with the June 30 EOT were subscribed when you had a hack for that and then the hack was removed later?

If you want to edit the EOT times for all users, you could export them, edit the EOT time column and then reimport them to update their accounts. [hilite path]Dashboard -› s2Member® -› Import/Export -› User[/hilite]


I hope that helps. :)

Posted: Saturday Mar 9th, 2013 at 10:05 am #44153

I don’t know if s2Member alters that… I’ll ask Jason about it.

I was trying to read through the s2member codex, and I noticed this: users_list_query, and tried to replace wp_user_query with it and also tried this one: c_ws_plugin__s2member_users_list. No dice.

[hilite mono]c_ws_plugin__s2member_users_list::users_list_query[/hilite] attaches to the hook [hilite mono]pre_user_query[/hilite] in the [hilite mono]WP_User_Query[/hilite] class. I don’t think you can use it separately because it expects a [hilite mono]WP_User_Query[/hilite] object by reference.

The code works when s2member is disabled. It doesn’t when s2member is turned back on.

Do you only have s2Member active or are there other plugins? If you have only s2Member active in the WP installation, do you still have that problem?

Posted: Saturday Mar 9th, 2013 at 12:07 am #44138

Cool. :)

Posted: Friday Mar 8th, 2013 at 11:53 pm #44136

Thanks for clarifying that. I’ll wait for Jason. :)

Posted: Friday Mar 8th, 2013 at 11:46 pm #44135

We asked Jason about it and here’s something he suggested:

It’s not something we can standardize in the current release because that email is often sent without having any User ID yet.

In the latest release of s2Member you can use PHP tags in email messages. If you want to test this for yourself (even in the current release), inside your email body do this:

[hilite pre_code]

[/hilite]

Of course you’ll need to add a conditional to see if you actually have a user ID available and adjust the message based on that.

I hope that helps. :)

Posted: Friday Mar 8th, 2013 at 11:40 pm #44134

Disabling the punishment is pretty much disabling the restriction, which is what this hack does: http://www.primothemes.com/forums/viewtopic.php?f=36&t=15784&p=53641#p52446

/wp-content/mu-plugins/s2hacks.php
[hilite pre_code]

Posted: Friday Mar 8th, 2013 at 1:22 pm #44106

You can find them here: [hilite path]Dashboard -› s2Member® -› Download Options -› JW Player® & RTMP Protocol Examples -> PHP Code Examples[/hilite]

Or you can use the shortcode, load the page, copy the output code, paste the code in the editor (text, not visual) and fix the URL.

Posted: Friday Mar 8th, 2013 at 1:17 pm #44104

Hi Rickey.

Did you do something with s2Member when the admin rights were lost, that makes you suspect it? Did you use the user import tool?

You can restore the admin rights without having access to the WP dashboard. Go to your database, look for the user roles and edit your account to set it as “administrator” once more.

Posted: Friday Mar 8th, 2013 at 1:14 pm #44102

Of course, the shortcode is more convenient.

Posted: Friday Mar 8th, 2013 at 1:10 pm #44100

Hi Mary.

No, the only supported CDN for now is Amazon’s. In the future we’ll try to support others, but there’s no date for that.

Thanks for the feedback. I added it to the feature requests. :)

Posted: Friday Mar 8th, 2013 at 1:07 pm #44099

Hi Seth.

No, s2Member doesn’t integrate that way with MailChimp yet, but it’s in our feature requests list and we’ll try to make it possible/easier to achieve in the new s2Member being developed.

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