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 - 4,951 through 4,975 (of 7,376 total)
Author Replies
Author Replies
Posted: Friday Jul 13th, 2012 at 6:56 am #19153

I just noticed that there’s a WP role named “Author”. I’d make a note of the capabilities it has and then add them to the s2Member Level role you’re trying to have publish posts.

I hope that helps. :)

Posted: Friday Jul 13th, 2012 at 6:51 am #19150

Thanks for the kudos, Scott! Glad you’re liking s2Member so much.

I’ll keep your request in mind when we work on adding this to s2Member. :)

Posted: Friday Jul 13th, 2012 at 6:31 am #19149

I don’t know…

Did you ask in the JW Player forums if they know why this may happen?

I’m assuming your video file is in an S3 bucket protected by s2Member. Did you try it with an unprotected S3 bucket to see if the same happens?

Could you post a link to the page with the video? Or send it privately: s2Member® » Private Contact Form

Thanks.

Posted: Friday Jul 13th, 2012 at 6:28 am #19148

I’m not familiar with the WP capabilities. :/

I’d ask in the WP forums what capability is needed or what you need to do for the user to be listed as an author.

Posted: Friday Jul 13th, 2012 at 6:12 am #19145

I got your email.

Logged in to your WP but couldn’t see the admin side, got a white page with a 500 error.

I found some pages in your site that’d give me a “not found” error. They seem to have in common that they all seem to be children of another one according to the URL. If the slug is right /page it works, but if it’s /members/page or some other “directory” in the URL, then it gives the problem.

I could login to the FTP but couldn’t tell much from that. I see you serve everything over HTTPS, don’t know if that causes a problem or not.

I’d first try to get access to the admin area to then check the slugs for those pages that have the problem. Did you update other plugins when you started having the problem? I’d try removing those temporarily as a test, you can do it via FTP, and see if you can then access the admin side.

Posted: Friday Jul 13th, 2012 at 5:41 am #19142

Great! :)

Posted: Friday Jul 13th, 2012 at 5:40 am #19141

Yes, you should be able to. But if one of the things you used in your customization causes a JavaSript problem, the pro-form may not work correctly.

So one of the things you can test is deactivating other plugins one by one and refreshing the pro-form page after each to see if the problem is gone. Once you spot the plugin causing trouble, if there is one, you’d try to fix or replace it to prevent the problem it caused.

Posted: Friday Jul 13th, 2012 at 5:35 am #19140

Great. :)

Posted: Friday Jul 13th, 2012 at 5:34 am #19138

I’ll ask, will let you know when I get a reply.

Are you using live transactions when you test? It’s better to do live 1 cent transactions than using the PayPal Sandbox, which many times has its own bugs, which are pointless to resolve if they won’t be present in the actual service.

I don’t know if another plugin may be causing a conflict. Some weird problems were found to come from this, so it may be worth testing for it. Deactivate other plugins one by one and test after each to see if the problem is gone, please.

If you’re okay with it, could you send the login info to your WP and FTP to take a look? s2Member® » Private Contact Form

Posted: Friday Jul 13th, 2012 at 5:29 am #19137

The funnel is complete! The logic worked perfectly

Awesome! So the item number in the custom field is now added when starting the second subscription, not replacing the previous one? And your demotion only removes the subscription cancelled, not both? Great. :)

Here are some details about how EOTs work (it says PayPal, but the EOT behavior settings are the same for all gateways): [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior[/hilite]

*Some Hairy Details* There might be times whenever you notice that a Member’s Subscription has been cancelled through PayPal®… but, s2Member continues allowing the User access to your site as a paid Member. Please don’t be confused by this… in 99.9% of these cases, the reason for this is legitimate. s2Member will only remove the User’s Membership privileges when an EOT ( End Of Term ) is processed, a refund occurs, a chargeback occurs, or when a cancellation occurs – which would later result in a delayed Auto-EOT by s2Member.

s2Member will not process an EOT until the User has completely used up the time they paid for. In other words, if a User signs up for a monthly Subscription on Jan 1st, and then cancels their Subscription on Jan 15th; technically, they should still be allowed to access the site for another 15 days, and then on Feb 1st, the time they paid for has completely elapsed. At that time, s2Member will remove their Membership privileges; by either demoting them to a Free Subscriber, or deleting their account from the system ( based on your configuration ). s2Member also calculates one extra day ( 24 hours ) into its equation, just to make sure access is not removed sooner than a Customer might expect.


Now i just noticed that the plugin has an automatic login behavior.
Maybee if i kill that s2 will take on its flow.

Right, another plugin or theme applying its own redirection on login would prevent s2Member’s.

I just watched the video on ccaps, the only issue I have with them for my situation is I need 2 levels
to identify 2 subscriptions. ccaps does not offer flexibility in that reguard. Unless Im missing something

You’re correct. It completely slipped my mind that subscriptions work with levels, not ccaps yet… That said, you’d still have to give the user an s2Member Level role to use the ccaps, and you’re adding the subscriptions to an s2Member Level, so you may still use them.

Anyway i stil cant test demotion untill my clickbank products are live – still under approval process.

Maybe you can… I once tested a CB subscription with their test card and after that, I kept receiving “payment” notification emails for some months. You could try creating a test daily subscription, if CB allows such a short term, and see if you can do the cancellation in some way.

You could also ask CB support if they have a way to test cancellations without waiting for the real thing.

Posted: Thursday Jul 12th, 2012 at 11:25 pm #19107

Cool. :)

Posted: Thursday Jul 12th, 2012 at 8:38 pm #19095

Can I replace that with wp_redirect to the upsell page?

Yes, you can do that. That’s actually how I had it before the last revision, but I had to change it to that so that the Login OTO redirections worked.

Also After the second checkout what happens when it realizes they are logged in
where would they be redirected to, the Home Page?

The second checkout will happen with the user already registered and logged in, so the hack won’t apply there.

To send the person to a specific page after checkout, you’d use the URL for the Thank-you page for that product in ClickBank. [hilite path]Dashboard -› s2Member® -› ClickBank® Options -› Thank-You Page Integration[/hilite]

I have Buddy Press installed which wants to activate the account? Im new to buddy press
so you know of a way to disable that behavior.

I don’t know how to disable that. You’ll need to ask the BP guys that question. :/

Thanks for all the informative responses you have given me. A++ Without your help here id be stuck
in this code for much longer :)

Anyway thanks for the outstanding help. I think im almost there man :)

Thanks for the kudos! I’m glad I can help you, although many parts weren’t something I was familiar with. I know how it’s been for me when I needed to customize something and got help or not.

Also I understand Code/Marketing I have been marketing/coding for over 11years now
and I also use that knowledge when writing code. I always advise good programmers
to learn a little marketing it will help them be more of a company asset

Yeah, I know what you mean. I started to learn PHP about 11 years ago myself. Was part of the SMF open source project for years. Then I did some real estate business, and studied internet marketing some years, and when I wanted to create a membership site and studied the options, found s2Member and ended up joining the project. :)

Posted: Thursday Jul 12th, 2012 at 6:43 pm #19088

This is the ‘remote’ call that ends up with a 4020 return value. The PDT is fine and the tx is fine… can’t work out why it would fail?

If your PDT token is correct, then I’m not sure why the 4020. Maybe it’s a mod_security problem? I’m not familiar with it, but would be worth checking it to make sure it’s not part of this trouble you’re having. Knowledge Base » Mod Security, Random 503/403 Errors

Did I mention that I can’t change the ipn url for older transactions and hence can’t use the central ipn.

The way I understnad it, you’d put the central IPN script in the URLs that the PayPal subscriptions point to for IPN, then the script would forward it to s2Member in a way that they’ll work with s2Member.

Posted: Thursday Jul 12th, 2012 at 6:13 pm #19084

if you have any experience of new subs going to the ‘grey’ page with the ‘post vars could not be verified’ I would really appreciate some ideas..

I know that happens when there’s a problem with allow_url_fopen or cURL, but those seem to be fine in your installation or the server check tool would have warned you about them.

I researched the error some more and found mentioned in one place that it may be caused by bad PDT Identity Token. Could you check that you have entered the PDT Identity Token correctly? [hilite path]Dashboard -› s2Member® -› PayPal® Options -› PayPal® PDT Integration[/hilite]

For older IPN’s from Your Members, the custom field does not contain the domain at the start and hence the server host check fails.

Ah okay, I didn’t know you had transactions from a previous plugin there.

The central IPN script would require that I change the url on each transaction which I am unable to do. Instead I have rewritten the requests to point at the s2member url and forced a match on server host.

I see. Well, in the central IPN script you can add the domain name to the custom value. Then s2Member would work as usual. This would be better than hacking s2Member in all the places where it’d check the custom value.

Take a look at the thread I pointed you to earlier, these posts in particular:
http://www.s2member.com/forums/topic/help-with-paypal-central-ipn-php-and-ipn/#post-16326
http://www.s2member.com/forums/topic/help-with-paypal-central-ipn-php-and-ipn/#post-16698


I hope that helps. :)

Posted: Thursday Jul 12th, 2012 at 5:40 pm #19080

I didnt know that you can | custom or i would have not hacked it that way LOL
anyway – what variables are the stored in after the PIPE? Are they accessable on ALL
RTN and NOTIFY scripts?

Sorry, since you were talking about the piped values, I thought you knew about them, so I didn’t think of mentioning it earlier. The whole string for the custom attribute gets saved in usermeta, including the piped values. Look here: [hilite path]Dashboard -› s2Member® -› API / Scripting -› PHP/API Constants -> S2MEMBER_CURRENT_USER_CUSTOM[/hilite]

S2MEMBER_CURRENT_USER_CUSTOM
This will always be a (string) containing the current User's Custom String; 
associated with their s2Member Profile. Empty if not logged in.

<?php echo S2MEMBER_CURRENT_USER_CUSTOM; ?>
This may output something like: www.yourdomain.com|cv1|cv2|cv3
(this is the input field value for the custom="" attribute in your Shortcode)

But that constant may not be available right when the user returns from ClickBank. It most probably will be available in the s2 Vars, though. [hilite path]Dashboard -› s2Member® -› ClickBank® Buttons -› s2 Vars (Explained)[/hilite]

Now, I haven’t checked if the custom attribute is sent by CB with each notification afterwards, like with the recurring payments or cancellations/refunds, you’ll need to test this. If it doesn’t, you’ll need to save in usermeta the CB transaction/subscr ID, whatever CB identifies the subscription with in its IPNs, and include the item’s number.

Knowing the item number you’ll be able to remove that level/ccap when the user cancels/refunds.

ccaps What are these and How do I use them in my implimentation above.

This video explains them quite well:

You will still want to read the documentation for them here:
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Custom Capabilities[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Custom Capability and Member Level Files[/hilite]
[hilite path]Dashboard -› s2Member® -› ClickBank® Buttons -› Capability (Buy Now) Buttons[/hilite]

That said, now that I saw your upsell path, I realize these are not subscriptions that you’d sell independently. One would be an upsell to the first one, so Levels will work fine for access, since it’s incremental too. Unless you plan to sell Level 2 without requiring Level 1, then you’ll need to separate them with ccaps.

So with that being said.. is there a way to create the registration somewhere so that when UPSELL LEVEL2
is presented.. atleast s2Memebr can function on its normal routines?

The funnel I’d try would be:

Level 1 -> CB checkout -> Registration -> Auto login -> Upsell Level 2 -> CB checkout

For the auto-login after registration I have a hack you can try:

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

[/hilite]

Then you can set the first login to redirect the person to your upsell sales page. [hilite path]Dashboard -› s2Member® -› General Options -› One-Time Offers (Upon Login)[/hilite]

this code was really not though through in a marketing perspective I gotta say.

Right, it wasn’t. It started over 2 years ago as a simple plugin to restrict certain things and sell access to them through PayPal, but Jason is not a marketer. Since it was good, it became very popular and with feature requests, Jason kept expanding what it does, but always limited by what the original framework permits.

Year and a half ago I started working with him and I do have a marketing background, and being in charge of support I’ve dealt with what users have trouble with. So about a year ago we started talking about a rewrite of s2Member, and about 6 months ago he started working on it, the last 4 months almost exclusively on it.

The new version takes care of most of the known limitations s2Member has, permits to do what most users have requested, and opens up some possibilities that no one has even asked for yet. It won’t be perfect and we’ll still be improving it, but it’ll be a quantum leap from what it now is, and it already is quite decent even with it’s current limitations.

Posted: Thursday Jul 12th, 2012 at 4:27 pm #19073

Grace Solivan said:
You make my life so much easier :) Yay!

Glad to help. :)

Did the single line one work?

GT Drummie said:
I’m not as technical or knowledgeable as Grace…

That’s PHP code, so you’ll need a PHP execution plugin for it to work in your WP post/page. http://wordpress.org/extend/plugins/exec-php/

Then put the code where you want the thing to show, just as you would a WP shortcode.

Posted: Thursday Jul 12th, 2012 at 8:21 am #19032

Ah, right, sorry I forgot to check that. Try this to only show the line if there’s an EOT time:

[hilite pre_code]
Membership expires on ' . date('M-d-Y', $s2member_auto_eot_time) . '

'; ?>
[/hilite]

To have it in a single line, I wrote it in a way I haven’t used before, so if it doesn’t work try this:

[hilite pre_code]
Membership expires on ' . date('M-d-Y', $s2member_auto_eot_time) . '

';
?>
[/hilite]

I hope it helps. :)

Posted: Thursday Jul 12th, 2012 at 8:10 am #19031

Hi Lee.

No, the coupon codes are a feature of the pro-forms. ccBill doesn’t have pro-forms, so it doesn’t get the coupons functionality.

You could create a coupons feature for the buttons, but it’d require some custom code. Adjusting the shortcodes with variables is part of what you’d need to do. http://www.primothemes.com/forums/viewtopic.php?f=36&t=1604

I hope that helps. :)

Posted: Thursday Jul 12th, 2012 at 8:07 am #19030

You can change the description to what you like, just try not to use fancy characters to avoid potential problems. :)

Posted: Thursday Jul 12th, 2012 at 7:52 am #19028

Hi Gaper.

Could you send me the URL to some of the pages with that problem? Login info would also be good so I take a look at what you have. s2Member® » Private Contact Form

I can’t say for sure until I check it, but I’m guessing you may have a wrong [hilite mono]RewriteBase[/hilite] in your .htaccess file, although the couple sites I’ve seen have that problem in the past went completely blank.

Posted: Thursday Jul 12th, 2012 at 7:49 am #19027

My fix was just to skip the paypal[‘custom’] check so it forced a domain (server host) match.

What did you change the condition to, something like just [hilite code]if (true)[/hilite]? I don’t see how that affects the item_number, but I haven’t tried it…

What about the question in the ps i.e. item_number not matching current system expectations?

Are these new purchases you’re testing or old subscriptions? What is the [hilite mono]item_number[/hilite] in the transactions that fail?

Yes I’ve gone through this already.

So you tried the central IPN script already? http://www.s2member.com/forums/topic/error-4020-on-paypal-pdt/#post-18609

and not being able to export the whole database for analysis isn’t helping – any ideas on that as well?

No idea about that. Do you have phpMyAdmin? It has an export tool.

Posted: Thursday Jul 12th, 2012 at 7:34 am #19026

yes Remote Login
yes Permanent redirect (better for your blogger’s pagerank)

I’m not familiar with domain mapping or that plugin. Are those settings the ones responsible for the redirection when I tried to register?

You need to somehow prevent the redirection from happening so that registration is done in the blog that http://innerpeaceinourlife.com/wp-login.php?action=register which is where s2Member would expect it and give the user the Level he paid for.

See if you can adjust your domain mapping plugin settings to have that happen and test your checkout again. I think it’ll work properly then.

Let me know how it goes, please. :)

Posted: Thursday Jul 12th, 2012 at 7:23 am #19025

Hi Jonathon.

Yeah, it’d have complications, but it’s still doable. Here’s a thread that goes over this problem and a solution you could try: http://www.s2member.com/forums/topic/help-with-paypal-central-ipn-php-and-ipn/

I hope it helps!

Posted: Thursday Jul 12th, 2012 at 7:14 am #19024

Masanori-san, if you edit your roles, you may want to read this article too: Knowledge Base » Locking s2Member Roles/Capabilities

I hope it helps. :)

Posted: Thursday Jul 12th, 2012 at 7:12 am #19023

we had the boxpay working with the Free S2 Member. Then I upgraded and it is not working. What can cause this?

The PayPal button doesn’t use JavaScript and the PayPal pro-form does. Maybe something is causing a JS conflict, causing your pro-form to not work properly because of it.

Can I send you a PM with the site access details and you can check it out?

You can use the contact form: s2Member® » Private Contact Form

Viewing 25 replies - 4,951 through 4,975 (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.