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: Jennifer Davis

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


My Latest Replies (From Various Topics)

Viewing 21 replies - 1 through 21 (of 21 total)
Author Replies
Author Replies
Posted: Wednesday Mar 13th, 2013 at 9:45 am #44485

Thanks for replying. I upgraded to s2Member Pro. Using s2Member Pro Forms now and dispensed with the Welcome page. I set up my client’s membership site so that when members log in, they go directly into the WordPress Dashboard (which I had to modify). But my client wanted members to upload a photo (not a gravatar) and I could not find a way to do that using s2Member’s profile page.

This is the one big request I would have for future release of s2Member – find a way to allow members to upload a photo to the s2Member profile page!

Posted: Thursday Jan 31st, 2013 at 10:16 am #40145

Stewart – I was unable to get s2Member to do what my client needed and they switched to a different product (aMember Pro), which granted, is more expensive, but allowed them to set up their online membership registration.

Posted: Wednesday Jul 25th, 2012 at 9:42 pm #20260

Cristian – all that part of it worked, but what didn’t work is the success message upon returning from PayPal. Your test installation might have the buyer entering their credit card info on the registration form. I have that part hidden, since my client didn’t want that. They want users to be directed to the PalPal site to enter credit card information.

Posted: Tuesday Jul 24th, 2012 at 10:43 am #20085

Thanks Cristian for trying. The array items should be ended with commas rather than semi-colons and a semi-colon is needed after the closing array parenthesis.

But the same problem exists. No message displays to the user indicating the registration was successful.

I have come to the conclusion that s2Member cannot display membership levels or types in a dropdown or radio buttons. And this ends my attempts.

My client cannot wait any longer so we will be purchasing aMember Pro which does exactly what we need right out of the box. Yes, aMember Pro is more expensive than s2Member. But I am disappointed with how much time I have tried to make s2Member work and for something that should be so simple.

Posted: Tuesday Jul 24th, 2012 at 10:01 am #20082

Robert – it turned out to have a flaw. Because the s2Member shortcode was “hidden” with CSS, the success message generated by s2Member upon a user’s successful registration doesn’t display.

Posted: Monday Jul 23rd, 2012 at 10:39 am #19991

by changing the php code on my membership page to this:

<?php if($_POST["submit"]) { ?>
[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="<?php echo esc_attr($_POST["desc"]); ?>" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.jdaviswebdesign.com" ta="0" tp="0" tt="D" ra="<?php echo esc_attr($_POST["ra"]); ?>" rp="1" rt="Y" rr="1" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]
<?php } ?>

I solved the problem of the shortcode not being completed at runtime. However, the s2Member error “Invalid form configuration. Missing “desc” attribute. Please provide a Description for this form.” still exists. The variables in the s2-hacks.php are not being input into the php code on the membership page.

Posted: Monday Jul 23rd, 2012 at 10:31 am #19990

Raam – Okay, I fixed that, but I still can’t get the registration form to show without errors. I get the error “Invalid form configuration. Missing “desc” attribute. Please provide a Description for this form.” And at the end of the registration form is this:

); ?>” ps=”paypal” lc=”" cc=”USD” dg=”0″ ns=”1″ custom=”www.jdaviswebdesign.com” ta=”0″ tp=”0″ tt=”D” ra=”” rp=”1″ rt=”Y” rr=”1″ rrt=”" rra=”2″ accept=”paypal” accept_via_paypal=”paypal” coupon=”" accept_coupons=”0″ default_country_code=”" captcha=”0″ /]

So there must be something wrong with the php code on my membership page? I am guessing something with single quotes and double quotes since s2Member seems to only be reading the shortcode up to the first php variable.

<?php if($_POST["submit"]) {
echo '[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="<?php echo esc_attr($_POST["desc"]); ?>" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.jdaviswebdesign.com" ta="0" tp="0" tt="D" ra="<?php echo esc_attr($_POST["ra"]); ?>" rp="1" rt="Y" rr="1" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]';
} ?>
Posted: Saturday Jul 21st, 2012 at 9:01 pm #19918

And this is in my s2-hacks.php file …

<?php add_filter ("ws_plugin__s2member_pro_paypal_checkout_post_attr", "my_paypal_pro_checkout_form_attr");
    function my_paypal_pro_checkout_form_attr ($attr = array ()) {
            if ($_POST["membershiplevels"] === "level1") {
					$attr["desc"] = "Student/Senior $20 USD per year";
                    $attr["ra"] = "20.00"; /* Adjust price dynamically. */
            }
            if ($_POST["membershiplevels"] === "level2") {
					$attr["desc"] = "Basic $35 USD per year";
                    $attr["ra"] = "35.00"; /* Adjust price dynamically. */
            }
            if ($_POST["membershiplevels"] === "level3") {
					$attr["desc"] = "Not-For-Profit $50 USD per year";
                    $attr["ra"] = "50.00"; /* Adjust price dynamically. */
            }
            if ($_POST["membershiplevels"] === "level4") {
					$attr["desc"] = "Business $75 USD per year";
                    $attr["ra"] = "75.00"; /* Adjust price dynamically. */
            }
            if ($_POST["membershiplevels"] === "level5") {
					$attr["desc"] = "Patron $50 USD per year";
                    $attr["ra"] = "100.00"; /* Adjust price dynamically. */
            }
            if ($_POST["membershiplevels"] === "level6") {
					$attr["desc"] = "Benefactor $500 USD per year";
                    $attr["ra"] = "500.00"; /* Adjust price dynamically. */
            }
            return (array)$attr;
        } ?>
        
Posted: Saturday Jul 21st, 2012 at 9:00 pm #19917

I’m trying to include this again … This is what is on my membership page

Please select membership level:

<form action="" method="post" name="form1"><select name="mlevel"> <option></option> <option value="level1">Student/Senior $20.00 yearly</option> <option value="level2">Basic $35.00 yearly</option> <option value="level3">Not-For-Profits $50.00 yearly</option> <option value="level4">Business $75.00 yearly</option> <option value="level5">Patron $100.00 yearly</option> <option value="level6">Benefactor $500.00 yearly</option> </select> <input type="submit" name="membershiplevels" value="Select" /></form>

<?php if($_POST['membershiplevels']) {
echo '[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="<?php echo esc_attr($_POST["desc"]); ?>" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.jdaviswebdesign.com" ta="0" tp="0" tt="D" ra="<?php echo esc_attr($_POST["ra"]); ?>" rp="1" rt="Y" rr="1" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]';
} ?>
Posted: Saturday Jul 21st, 2012 at 11:24 am #19905

I am trying this AGAIN with the s2-hacks.php. I removed the white space. Now, my membership page gives the following error:

Invalid form configuration. Missing “desc” attribute. Please provide a Description for this form.

But “desc” is one of the attributes defined in my s2-hacks.php:

Posted: Saturday Jul 21st, 2012 at 11:02 am #19903

This is my s2-hacks.php …

Posted: Saturday Jul 21st, 2012 at 11:02 am #19902

If I use the s2-hacks.php, what do I put on the membership page? I have the following, but then it gives an error because the s2member shortcode doesn’t have values for the php variables yet. If I use php code to only show the s2member code AFTER the user selects a membership type from the dropdown, then the success message doesn’t display on the page once the user is routed back from PayPal.

Please select membership level:

Student/Senior $20.00 yearly Basic $35.00 yearly Not-For-Profits $50.00 yearly Business $75.00 yearly Patron $100.00 yearly Benefactor $500.00 yearly

[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.jdaviswebdesign.com" ta="0" tp="0" tt="D" ra="" rp="1" rt="Y" rr="1" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]
Posted: Friday Jul 20th, 2012 at 9:34 pm #19867

Okay, I’m gonna need help with this … just as with another method I followed on this support forum (using CSS and jQuery to “hide” the extra registration forms), the above method fails to display the success message.

I also tried creating the s2-hacks.php as per http://www.primothemes.com/forums/viewtopic.php?f=36&t=1604 and I received an error message about the header already being sent.

Can somebody please provide the actual code for displaying membership types in a dropdown? Somebody MUST have already done this.

Posted: Friday Jul 20th, 2012 at 9:20 pm #19866

This may not be the most efficient way, but I wanted to post how I accomplished having multiple membership types in a dropdown.

(1) Install the WP plugin PHP Execution by Nicolas Zeh (note: this plugin has not been updated in over 2 years, but none of the other php plugins I tried worked with s2Member).

(2) Create a form with select element in HTML view on a WP page. To have the form submit to itself, set action=”” in the form tag.

(3) In the s2Member shortcodes, the only attributes I changed for each membership type was the description (desc) and the amount (ra).

Please select membership level:

Student/Senior $20.00 yearly Basic $35.00 yearly Not-For-Profits $50.00 yearly Business $75.00 yearly Patron $100.00 yearly Benefactor $500.00 yearly

Posted: Wednesday Jul 18th, 2012 at 2:05 pm #19654

Cristian – hiding the credit card section with CSS worked. Thanks.

As for the link you provided, I’d looked at it before, and it makes no sense to me. I don’t even know where to start. Unless there is a tutorial, I cannot do this.

I’ve also discovered two additional abilities that s2Member doesn’t provide. My client wants to be able to search users by the custom fields we created on the Registration Form. The built-in WordPress search box searches ALL fields and that returns too many users we aren’t looking for.

The other ability we want is to be able to export ALL users in one shot (not be limited to 250 at a time).

I’m disappointed that s2Member cannot achieve what we need, particularly because I have already put in SO much time trying to get this plugin to work.

Posted: Tuesday Jul 17th, 2012 at 7:13 pm #19565

Stuart-

Thank you for offering assistance. The client does not have PayPal Pro (which requires a monthly fee). They use the standard free PayPal merchant account (which only charges by the transaction). But according to the instructions with s2Member, one need not have PayPal Pro to use the PayPal Pro forms. But I don’t understand how to create a registration form.

I set up a sandbox account in PayPal and tested it with both a fake PayPal pro account and a fake regular business account. Regardless of which fake account I use, I only get a registration form generated if I use the PayPal pro-forms and not if I use the PayPal button generator. But the registration form generated using the PayPal pro-forms has fields for credit card info that the client doesn’t want on the form. ???

Jennifer

Posted: Monday Jul 16th, 2012 at 2:39 pm #19395

Eduan-

I watched the video and it does not apply to my situation. In the video, Jason shows how to create multiple buttons under Level 1, but it still generates multiple buttons for each payment amount.

We have six membership types. A person who wants to join our organization should be able to select the membership type they wish to pay, fill out the registration form, click Submit, and be routed to PayPal.

Student/Senior $20.00 yearly
Basic $35.00 yearly
Not-For-Profits $50.00 yearly
Business $75.00 yearly
Patron $100.00 yearly
Benefactor $500.00 yearly

I don’t know what ccaps is? Also, I noticed that if I use the s2Member PayPal Pro-Forms, I get the Registration Form with all of my custom fields, but it also asks the member to enter their credit card information directly on the registration form. We do not want that. When I use the s2Member PayPal Buttons to generate the shortcode, there is only a button and no registration form! What we want is a registration form with all of our custom fields that has one submit button which goes to PayPal for the member to enter their credit card information (we don’t have a PayPal pro account). Any advice?

Posted: Monday Jul 16th, 2012 at 10:42 am #19364

I have figured this out, based on reading responses from others who have asked this question. It involves using CSS to hide all six membership forms, then creating a dropdown which lists the membership levels and using jQuery to show the corresponding membership form.

If anyone needs the code, let me know.

Posted: Sunday Jul 15th, 2012 at 3:22 pm #19308

Anne –

Did you ever get this figured out? I am trying to do the same thing. Multiple membership options in a drop-down menu.

Posted: Sunday Jul 15th, 2012 at 2:02 pm #19307
Posted: Sunday Jul 15th, 2012 at 12:55 pm #19306

Okay, I see now where s2member stores the custom values in the users table, but the values are in an array. How do I break the array down, code-wise, in order to display the values? Basically, the custom fields I created are Title, Business Name, FAX (among others), but these are the ones I want referenced. So I don’t need to display EVERY custom field I created on the registration form, but a subset.

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