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,851 through 1,875 (of 7,376 total)
Author Replies
Author Replies
Posted: Tuesday Mar 12th, 2013 at 2:26 pm #44414

Thanks. Can I see the shortcode you’re using for it?

Or are you using a button created over at PayPal’s site? If so, did you integrate it with s2Member? Knowledge Base » Using Buttons Generated @ PayPal.com

Also, did verify that your s2Member-PayPal integration is fully/correctly done? [hilite path]Dashboard -› s2Member® -› PayPal® Options[/hilite]

Posted: Tuesday Mar 12th, 2013 at 2:12 pm #44411

Hello Lisa.

Are you using the s2Member buttons for PayPal Standard, or pro-forms for PayPal Express Checkout?
[hilite path]Dashboard -› s2Member® -› PayPal® Buttons[/hilite]
[hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms[/hilite]

Could you show me the shortcode you’re using?

Posted: Tuesday Mar 12th, 2013 at 2:09 pm #44410

Hi Paul.

You can register users at Level 2 for free using the free registration pro-form. [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms[/hilite]

Keep in mind that levels give incremental access, so the Business levels would have access to the Consumer content protected at Level 1.

if that’s not good enough, you can either edit the s2Member Level roles, or you can use custom capabilities instead. Video » s2Member (Custom Capabilities)

I hope that helps. :)

Posted: Tuesday Mar 12th, 2013 at 2:06 pm #44409

Ah, I see. You can add your custom styles to the theme’s CSS file, if you edit the s2member.css file in the plugin folder, it’ll be overwritten on update.

Posted: Tuesday Mar 12th, 2013 at 2:01 pm #44408

Thanks for reporting that, Randy. I’ll forward it to Jason to fix them. :)

Posted: Tuesday Mar 12th, 2013 at 1:49 pm #44407

so the plug for multisite blog farm doesn’t meet my needs.

It’s not a plugin for multisite blog farm, the plugin is still the s2Member Framework. The license is not the plugin, but the license to use the Pro add-on in the network where users get their own blog.

I will ask about adjusting the license, not because s2Member doesn’t work, but because it’s not the one you needed for a couple of blogs in the network, since you’re not giving users their own blogs. I did say that the Network License would be needed if users got their own blog in the network, so if you knew that wasn’t the case, you didn’t need to purchase that one. But I could have understood better what you were trying to do and told you to get the Unlimited Sites one specifically.

When users go to http://www.site1.com to login in, they will be logging into and have access to members.site1.com.

This is something WordPress multisite itself doesn’t do, and s2Member doesn’t modify it or claims to. It’s not impossible, though, but it’ll require a plugin or hack for it.

Posted: Tuesday Mar 12th, 2013 at 1:33 pm #44405

please have payment adjusted because the module doesn’t work. in the previous post when i stated user signs up at www and gets “ACCESS” to member, it implicitly means that they get to login the subdomain after signing up on the main domain.

If the user registers with wp-signup.php and creates a child blog, then he’ll have access to that child blog as its admin, but even then, his login session in the main www blog won’t work in his own child blog, he’d have to login there as well. This is the way WordPress multisite works, it’s not handled by s2Member, so it’s not something not working in s2Member.

Can you do what you want with WordPress multisite without s2Member installed? Can you login to the main site and have that log the user into a child blog as well?

And the free version of s2Member already has the multisite integration, e.g. controlling how many child blogs if any, the user would get depending on the level. The Pro add-on doesn’t change the s2Member multisite features. The license is to use the pro add-on in the network, since it’d make it available to all user child blogs too.

To clarify what license you need to use s2Member Pro in the multisite network, could you tell me if member.mysite.com in your other post represents a single child blog for all users, or a blog for each user? Thanks.

Posted: Tuesday Mar 12th, 2013 at 1:20 pm #44403

Well, first enable the transitions here: [hilite path]Dashboard -› s2Member® -› API / List Servers -› Automate Unsubscribes/Opt-Outs[/hilite]

Then you’d use [hilite mono]process_list_servers[/hilite]. http://www.s2member.com/codex/stable/s2member/list_servers/c_ws_plugin__s2member_list_servers/#src_doc_process_list_servers%28%29

See this too: http://www.s2member.com/forums/topic/s2member-mailchimp-and-ccaps/#post-17078

Posted: Tuesday Mar 12th, 2013 at 1:14 pm #44401

Ah, I see what we talked.

Well, we weren’t talking about login sessions between blogs in the network in that other thread, which is the problem you seem to be having from what we talked in this thread. Login sessions are not managed by s2Member, but WordPress. You can test this even without s2Member.

That said, after re-reading your other thread, I realize I may have misunderstood what you said there. You mentioned sending the user to member.mysite.com, and I understood that member was a placeholder for each member’s name. That’s why I said that “if the users will have a child blog, then the blog farming license would be needed”.

Could you confirm if it’s a single members installation for all members, or if each member gets his own blog? If it’s a child blog for each member, then the Network Support license is fine. If it’s a single members blog for all members, then the Unlimited Sites license would be enough because you have two (www and members) and I’ll ask Elizabeth in billing about adjusting your payment.

Posted: Tuesday Mar 12th, 2013 at 12:30 pm #44398

Hi Margaret.

I included the http://mydomain/?s2member_paypal_notify=1 as my auto-return URL

That’s the IPN URL, the return one would be http://mydomain/?s2member_paypal_return=1
[hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® PDT Integration[/hilite]

See if that helps solve the problem. :)

Also, to specify a custom page to show the user after the transaction, you could use the success attribute in your shortcode. [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Custom Return URLs Upon Success[/hilite]

Posted: Tuesday Mar 12th, 2013 at 12:27 pm #44397

it’s useless, nothing new appears at s2member registration form. So, what am I missing?

Pro-forms have templates which you can customize. See:

Knowledge Base » s2Member® Pro Forms » Customize
Knowledge Base » s2Member® Pro Forms » Custom Data

Posted: Tuesday Mar 12th, 2013 at 12:22 pm #44396

Hi Lee.

No, there isn’t a free upgrade pro-form yet, the free registration one is for registrations only.

If you want to give free upgrades, you’d have to create a customization where loading a certain URL would upgrade their account.

These should help:
Knowledge Base » Changing Roles/Capabilities via PHP
Knowledge Base » Hacking s2Member® Via Hooks/Filters

To edit their profiles you could show them to a profile form. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Member Profile Modifications[/hilite]

Maybe you could have your hack check if the person edited the profile and filled out the field you want to require for the upgrade.

You can check the custom profile fields with [hilite mono]get_user_field[/hilite]. http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_user_field%28%29

I hope that helps. :)

Posted: Tuesday Mar 12th, 2013 at 12:16 pm #44394

If you don’t have a mu-plugins folder under wp-content, then you don’t have must-use plugins and that’s not where the problem is.

I can understand you’d prefer to avoid creating a new installation for tests.

Yes, the htaccess code you show me there looks correct.

Okay, let’s see what your webhost says.

Posted: Tuesday Mar 12th, 2013 at 12:09 pm #44392

Hi Angela,

I need to create category restriction automatically. I have the correct action hook, so please let me know how to insert category restriction automatically.

I haven’t tried this yet, have you searched the s2Member files/codex?

I think you’d edit the global that has the category IDs protected at the level you’re requiring: [hilite code]$GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_catgs"][/hilite] (where [hilite mono]$n[/hilite] is the level number).

Not sure what stores that in the database, though. You could browse your db to find the categories you protected, to see where they are and then figure out how to edit it with your hack. Unless you want to do it dynamically, then you can do it from a must-use plugin, I guess.

Also, instead of binding it to a specific level, I want to sell it once like specific page/post, but unfortunately, I have not found that configuration in button generation page.

You’d need your customization to get all the post/page IDs from that category and protect it with the Specific Post/Page Restriction. This may help with the access link generation: http://www.s2member.com/codex/stable/s2member/sp_access/c_ws_plugin__s2member_sp_access/#src_doc_sp_access_link_gen%28%29

[hilite pre_code]

[/hilite]
I hope that helps.

Posted: Tuesday Mar 12th, 2013 at 11:50 am #44388

It would be very nice to be able to query custom fields with wp_user_query like you can for native usermeta fields.

In the meantime this may help: http://www.primothemes.com/forums/viewtopic.php?f=4&t=15658&p=48878#p48878

Posted: Tuesday Mar 12th, 2013 at 11:49 am #44387

Excellent! Thanks for the update. :)

Posted: Tuesday Mar 12th, 2013 at 11:43 am #44386

Hi Jino.

1] I am getting recurring = 5 in logs (It is taking the value of mc_amount3) even if I set recurring=1 in notify url.
Is this normal?

Thanks for reporting this. I’ll ask Jason about it because it looks weird to me too, but I’m not familiar with the IPN w/ Proxy Key.

2] If the above behaviour is normal, how do I process the recurring payments? Do I need to create a system to monitor and trigger the recurring payments?

These would need to be done by your payment gateway, since it’s the one that has the payment info, and notify s2Member.

Posted: Tuesday Mar 12th, 2013 at 11:25 am #44378

Hi Emily.

There isn’t an interface for it, but you can do it with a hack. http://www.primothemes.com/forums/viewtopic.php?f=4&t=10368&p=33365#p33365

Posted: Tuesday Mar 12th, 2013 at 11:24 am #44376

Hi Emily.

If you’re selling with a single payment (buy now), you can let s2Member extend the access for you. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior -> Fixed-Term Extensions[/hilite]

If a user (level 1) has a membership ending 2013-12-31, and they renew, EOT should be updated to 2014-12-31. But it currently stays on 2013-12-31.

Is it being updated at all? You could test adding a unique date (one that would not have been added by your code otherwise) to see if it comes up in the profile, e.g.:

[hilite pre_code]
$expire_on = "2020-12-31";
[/hilite]

By the way, since it’s an extension, I’d first get the EOT time in his profile and then add the year to that.


I hope that helps. :)

Posted: Tuesday Mar 12th, 2013 at 11:08 am #44371

Hi Stéphane.

The thing is that, although all profiles have the same subscr. ID, PayPal will only notify one of the s2Member instances, the one the subscription was created with, apparently the main site’s in this case. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration[/hilite]

You’ll need to find how to have the child blogs use the user profile from the main site, I guess. Maybe there is a plugin that does that.

Posted: Tuesday Mar 12th, 2013 at 10:46 am #44364

Thanks for the kudos! :)

2. Orders are coming in through our shopping cart (1shoppingcart). The script above generates a user name with their FULL NAME. Problem is if the “email account already exists” as a member, it says API error, email already exists. In other words, the customer may ALREADY have an account, but under a different username (other than their full-name) with the same email.

You could first check by email address if the user is already registered.

1. For the test, i used custom capability, which I can use to deliver the protected content. But that’s not really how I want to deliver it. I want the give access to the protected Specific Post/Page link. Is there a line I can add in there for that?

You can use s2Member’s method to generate an access link dynamically. http://www.s2member.com/codex/stable/s2member/sp_access/c_ws_plugin__s2member_sp_access/#src_doc_sp_access_link_gen%28%29

Here’s an example: http://www.s2member.com/forums/topic/giving-my-level-1-customers-a-12-hour-link/#post-41816

The code there is all spread out so it’s easier to learn, you can obviously write it like this:

[hilite pre_code]

[/hilite]

Since you already register the user, though, I think custom capabilities are a much better way to go, because you can manage his access better. Access links can’t be cancelled, once you gave it, you can’t remove it before it expires, or without changing the protection itself (which would remove access for every other user too). With ccaps you can just edit his profile and that’s it, but ccaps don’t have individual expirations, so that’s a disadvantage.

Well, there’s a plugin that I think adds ccap expiration… http://www.s2member.com/forums/topic/ccap-drip-timer-drip-multiple-courses/


I hope that helps.

Posted: Tuesday Mar 12th, 2013 at 10:30 am #44360

Hi Kevin.

I’ll forward this question to Elizabeth in Billing, but tell me, what coupon code did you use and when? It may already had expired.

Posted: Tuesday Mar 12th, 2013 at 10:26 am #44359

I think it is a bug for s2member not to respect the activation setting of the bbPress plugin instead of just looking at files, but it works now, so that is what matters.

I’ll ask Jason. I know that he had to deal with bbPress’ recent change in the way they handle capabilities dynamically, which complicated things.

But now another problem has cropped up. i don’t know if this a bbpress issue or an S2 issue. I tried to create a new Administrator and was unable to login to the website as that new Admin. I could login with any existing Admin though. So I reinstalled bbPress yet again and all of a sudden it was working fine again.

That may be related to this problem reported recently: http://www.s2member.com/forums/topic/fao-jason-potential-bug-with-bbpress-2-2/#post-43918

I already forwarded it to Jason to investigate.

I would appreciate help with this. I don’t want bbPress on my site anymore. It’s part of my efforts to clean up unused plugins to speed up a site that’s starting to get a little sluggish.

That’s understandable. I’ll let you know when I hear back from Jason.

Posted: Tuesday Mar 12th, 2013 at 10:21 am #44358

So after 1,000 posts, I’d have 1,000 additional user role capabilities added to my WP database? Or are the custom capabilities you speak of built into S2 only and can be created on the fly on the create post screen?

If they can be created on the fly via that box in the create post screen, that is also a good implementation. Please let me know if that’s the case.

You can add the ccap protection in the post with s2Member’s metabox. Or you can add conditionals to the content itself.

If that’s true, then you could write a custom capability like “post-123″ the in field… then add some PHP into the template to buy the CC, and check user for CC to display.

Right.

I suppose that’s true even the capability is created as part of WP-core.. it just seems like user role capabilities shouldn’t be added in the thousands and reserved for actual capabilities like posting in a forum, etc.

The custom capabilities are added to the user’s account, not to a role.


This video should help: Video » s2Member (Custom Capabilities)

Posted: Tuesday Mar 12th, 2013 at 9:54 am #44357

:)

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