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.

About: alancheuk

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 15 topics - 1 through 15 (of 15 total)
Topic Count Last Reply
Dynamic form shortcode stopped working

By:  alancheuk in: Community Forum

voices: 3
replies: 3

3 years ago  cassel

PayPal PDT/Autoreturn Identity Token reset

By:  alancheuk in: Community Forum

voices: 1
replies: 1

3 years, 2 months ago  alancheuk

Stripe – any news on integration?

By:  Roger in: Community Forum

voices: 3
replies: 2

3 years, 2 months ago  alancheuk

s2Member slow because of ajax-loader.gif

By:  alancheuk in: Community Forum

voices: 2
replies: 1

3 years, 5 months ago  Bruce

PayPal SSL Certificate Upgrade

By:  Marco Pakoeningrat in: Community Forum

voices: 7
replies: 6

3 years, 5 months ago  Mike (Volunteer Moderator)

Auto login and redirect query

By:  Christian Finn in: Community Forum

voices: 3
replies: 10

3 years, 10 months ago  Cristián Lávaque

Verify terms and conditions on server-side

By:  alancheuk in: Community Forum

voices: 3
replies: 11

3 years, 11 months ago  alancheuk

Force Terms & Conditions at Checkout

By:  Mike Whitney in: Community Forum

voices: 3
replies: 3

4 years ago  alancheuk

Tracking customer lifetime value

By:  alancheuk in: Community Forum

voices: 4
replies: 3

4 years ago  Bruce

Use email as username

By:  alancheuk in: Community Forum

voices: 3
replies: 3

4 years, 2 months ago  Cristián Lávaque

Users can't upgrade free to paid on WPEngine

By:  alancheuk in: Community Forum

voices: 2
replies: 3

4 years, 3 months ago  Raam Dev

Multistep registration/payment with Pro Forms

By:  alancheuk in: Community Forum

voices: 3
replies: 6

4 years, 5 months ago  alancheuk

Specific Page Restrictions – Purchase vars

By:  alancheuk in: Community Forum

voices: 2
replies: 1

4 years, 6 months ago  Cristián Lávaque

Import configuration – Error (live to test)

By:  alancheuk in: Community Forum

voices: 2
replies: 5

4 years, 7 months ago  Cristián Lávaque

Viewing 15 topics - 1 through 15 (of 15 total)

Topics I've Started

Viewing 11 topics - 1 through 11 (of 11 total)
Topic Count Last Reply
Dynamic form shortcode stopped working

By:  alancheuk in: Community Forum

voices: 3
replies: 3

3 years ago  cassel

PayPal PDT/Autoreturn Identity Token reset

By:  alancheuk in: Community Forum

voices: 1
replies: 1

3 years, 2 months ago  alancheuk

s2Member slow because of ajax-loader.gif

By:  alancheuk in: Community Forum

voices: 2
replies: 1

3 years, 5 months ago  Bruce

Verify terms and conditions on server-side

By:  alancheuk in: Community Forum

voices: 3
replies: 11

3 years, 11 months ago  alancheuk

Tracking customer lifetime value

By:  alancheuk in: Community Forum

voices: 4
replies: 3

4 years ago  Bruce

Use email as username

By:  alancheuk in: Community Forum

voices: 3
replies: 3

4 years, 2 months ago  Cristián Lávaque

Users can't upgrade free to paid on WPEngine

By:  alancheuk in: Community Forum

voices: 2
replies: 3

4 years, 3 months ago  Raam Dev

Multistep registration/payment with Pro Forms

By:  alancheuk in: Community Forum

voices: 3
replies: 6

4 years, 5 months ago  alancheuk

Specific Page Restrictions – Purchase vars

By:  alancheuk in: Community Forum

voices: 2
replies: 1

4 years, 6 months ago  Cristián Lávaque

Import configuration – Error (live to test)

By:  alancheuk in: Community Forum

voices: 2
replies: 5

4 years, 7 months ago  Cristián Lávaque

Viewing 11 topics - 1 through 11 (of 11 total)

My Latest Replies (From Various Topics)

Viewing 19 replies - 1 through 19 (of 19 total)
Author Replies
Author Replies
Posted: Monday Dec 23rd, 2013 at 1:49 am #62094
alancheuk
Username: alancheuk

Bump

Posted: Monday Oct 21st, 2013 at 2:04 pm #60500
alancheuk
Username: alancheuk

Since I fixed it a few days ago, it has already stopped working again. I fixed it again by copying the PayPal PDT Identity token from paypal to my s2member installation. What’s going on?

Posted: Thursday Oct 17th, 2013 at 6:06 pm #60441
alancheuk
Username: alancheuk

+1

Posted: Friday Jul 26th, 2013 at 5:17 pm #54177
alancheuk
Username: alancheuk

I got this email too. Please let us know if we need to do anything to about this!

Posted: Tuesday Mar 12th, 2013 at 8:45 am #44355
alancheuk
Username: alancheuk

Thanks, it works great!

Posted: Monday Mar 11th, 2013 at 8:50 pm #44293
alancheuk
Username: alancheuk

I found the same problem with my use of the hack. Could you please post the fix or send it to me?

Posted: Monday Jan 14th, 2013 at 7:34 pm #37545
alancheuk
Username: alancheuk

Thanks Jason, it works great. I totally missed the conditional statement in your code, I just assumed the only thing that changed in the code block from Ryan’s suggestion was the hook. My mistake.

Posted: Saturday Jan 12th, 2013 at 4:56 pm #37183
alancheuk
Username: alancheuk

Dear Jason,

Thank you. Unfortunately that action is too soon. I tried it. It runs the check when the registration form is loaded on /wp-login.php?action=register, and fails, preventing users from registering.

I ended up successfully using the “pre_user_login” wordpress filter instead.

Alan

Posted: Friday Jan 11th, 2013 at 7:50 am #36965
alancheuk
Username: alancheuk

Dear Bruce,

I tried it out the code you gave (with the correct custom field name) and it still doesn’t work. I get the error message, but the account is still made… Is there an earlier hook that I can use that will get hit before the user is created?

add_action('ws_plugin__s2member_before_configure_user_registration', 'ss_registration_validation');
function ss_registration_validation($vars = array()) {
	$_p = $_POST;

	if(!isset($_p['ws_plugin__s2member_custom_reg_field_agree_terms_conditions']))
		exit('Error: you have attempted to pass an invalid configuration.');
}

Thanks!
Alan

Posted: Sunday Dec 30th, 2012 at 5:20 am #35788
alancheuk
Username: alancheuk

The reason that I suspected that the user is already created at that point is because I already tried throwing an exit(); in the error check, but the user was still being created. I checked again a second ago to make sure.

So here is the code that I am using:

function ss_registration_validation($vars = array())
{
$fields = $vars[‘fields’];
$errors = new WP_Error();
if (empty($fields[‘agree_terms_conditions’]))
{
// Handle error reporting here.
echo “ERROR”;
exit();
}
}
add_action(‘ws_plugin__s2member_during_configure_user_registration_front_side’, ‘ss_registration_validation’);

Then I register a free account without checking the box. The “ERROR” message is output, but I can then go back and login with the new username/password I created.

So how do I stop the user from being created? And is there a way to send back a pretty error message, like the kind you get when there is no email or password entered?

Thanks!

Posted: Friday Dec 28th, 2012 at 7:49 pm #35672
alancheuk
Username: alancheuk

Dear Bruce,

Thank you for the help. Unfortunately, I am not so good at this and could really use a little more guidance.

It looks like by the time that hook is triggered, the user has already been registered. Do I need to unregister the user? How do I pass an error message back out so that it shows up for the user?

Thank you!

Posted: Saturday Dec 22nd, 2012 at 8:49 pm #35383
alancheuk
Username: alancheuk

I added the custom field as described here. However it seems like the verification that the box is checked is only done via javascript and not on the server-side. I want to have both server-side and client-side verification. How do I do this? (perhaps the ms_validate_user_signup hook?)

Thanks!

Posted: Sunday Sep 9th, 2012 at 11:05 pm #24715
alancheuk
Username: alancheuk

Okay, I think I have an idea what *might* be going on. I was going through s2Member’s PayPal settings, and noticed that under s2Member > PayPal Options > PayPal IPN Integration it says to:

set “IPN URL” to “https://domain.com/?s2member_paypal_notify=1”, and
set “Auto-Return Integration” to “https://domain.com/?s2member_paypal_return=1”

in my PayPal Account Settings. Since domain.com is only faked out on my local machine, PayPal must be communicating with the HostGator server!

But if this is the case… then why do purchases work right, but not upgrades?

If this is the case, then how can I test to make sure that s2Member works before doing the real migration to the new WPEngine server?

Posted: Sunday Sep 9th, 2012 at 1:06 am #24680
alancheuk
Username: alancheuk

WpEngine just passed on an error log for us. It looks like a function within s2Member is throwing off an error:

[Sun Sep 09 02:18:24 2012] [error] [client 72.38.22.18] PHP Warning: file_put_contents(/nas/wp/www/cluster-1262/wpenginedomain/wp-content/plugins/s2member-logs/mailchimp-api.log) [function.file-put-contents]: failed to open stream: Permission denied in /nas/wp/www/cluster-1262/wpenginedomain/wp-content/plugins/s2member/includes/classes/list-servers.inc.php on line 254, referer: https://domain.com/wp-admin/users.php?action=delete&user=828&_wpnonce=1ca7029379
[Sun Sep 09 02:32:43 2012] [error] [client 72.38.22.18] PHP Warning: file_put_contents(/nas/wp/www/cluster-1262/wpenginedomain/wp-content/plugins/s2member-logs/paypal-api.log) [function.file-put-contents]: failed to open stream: Permission denied in /nas/wp/www/cluster-1262/wpenginedomain/wp-content/plugins/s2member/includes/classes/paypal-utilities.inc.php on line 206, referer: https://domain.com/lsat-complete/

Posted: Friday Aug 3rd, 2012 at 3:15 am #21071
alancheuk
Username: alancheuk

I turned off the caching plugin (w3 total cache) and it still does that. I can use the same code to change other text without any problems…

Also, do we have to collect billing information? I notice some websites do not request billing information, or just ask for the zipcode. Can we do that too?

Posted: Thursday Aug 2nd, 2012 at 1:58 am #20961
alancheuk
Username: alancheuk

Hm… Thank you for the guidance. I guess that I will try to think of a simpler alternative.

Regarding the “Submit Form”, I entered that exact code into s2hacks.php, then loaded my page with the Pro Forms payment, clicked on a credit card for payment, and the button on the bottom still reads “Submit Form”. I successfully altered the invalid coupon message by adding another IF statement to the code to ensure that the string replacement function was being loaded.

So the code works fine, it just looks like “Submit Form” is not the right string to search for.

Posted: Wednesday Aug 1st, 2012 at 3:47 am #20888
alancheuk
Username: alancheuk

Thanks for the reply! I did that already. I want to be able to split the checkout form into two pages. Is there an easy way to do that in s2Member? I want to do the payment processing without the account creation in the first page, then the account creation on the next page. Does s2member require them to be done in a single go?

Regarding the “Submit Form” text, I found this:
http://www.s2member.com/forums/topic/removing-your-css-styles-and-your-oops-text/#post-15849

But I can’t figure out what text to search for to replace. Using “Submit Form” doesn’t work for me.

Posted: Sunday May 13th, 2012 at 10:20 am #13339
alancheuk
Username: alancheuk

Okay I found a workaround. It’s some sort of file encoding issue. The text export file is encoded strangely on the server. As a work around, I opened the file in Text Wrangler, copied the text, and pasted it into an export file from the local machine, then imported it. Seems to work.

Posted: Wednesday May 9th, 2012 at 11:35 am #13056
alancheuk
Username: alancheuk

It’s not a CSV file (as it is for members) but a semi colon delimited file (it’s the config options file). It looks like the form requires I send my wordpress credentials. I’d really rather not.

Viewing 19 replies - 1 through 19 (of 19 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.