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.

Home Forums Bruce

Bruce

Staff Member

My Latest Replies (From Various Topics)

Viewing 25 replies - 2,426 through 2,450 (of 2,703 total)
Author Replies
Author Replies
Posted: Wednesday Dec 5th, 2012 at 6:46 pm #33636
Bruce
Username: Bruce
Staff Member

Now, before we go ahead and do that, I just wanted to last time confirm that it is indeed the only solution; is there no way for s2Member to manage the recurring subscriptions itself and use PayPal Direct Payment each month to handle the payments, instead of relying on PayPal managing them thus requiring the additional $30/month service? Please advise.

Unfortunately this is the only way to *automatically* charge users on a recurring basis. Users have to input their PayPal info and sign up for your service again if you do not have DPRP enabled. If you’d rather not pay for the PayPal service, you could set up s2Member to work using one-time payments for a specific amount of time, and then have users pay for more time to be added to their accounts once they are demoted.

This might result in less repeat business however, and in my personal opinion it is worth it to pay the extra money to PayPal to automatically charge users for access.

Posted: Wednesday Dec 5th, 2012 at 6:39 pm #33635
Bruce
Username: Bruce
Staff Member

Hi Chad,

You can use the success=”” attribute in your shortcode to send the user to a different page on your site. You can find info on this attribute in Dashboard -› s2Member® -› PayPal® Pro Forms -› Custom Return URLs Upon Success.

Posted: Wednesday Dec 5th, 2012 at 6:35 pm #33633
Bruce
Username: Bruce
Staff Member

Hi Rick,

To test I just created a test user on your account “s2test”, and it registers that I have no yet activated my account, and when there is no password. This leads me to believe that this is most likely an issue with your cookies, or because you are using a subdomain site setup.

If you have FTP access to your site, I recommend changing the folder name of /wp-content/plugins/s2member so that it will temporarily disable s2Member. If you still cannot log in, contact GoDaddy and see if they can fix your cookies for your subdomain.

EDIT: Just received activation email. Can sign in with regular account. Perhaps this is a problem with a corrupted admin account? Try following these instructions to create a new admin account through mySQL and see if you can log in that way:

http://www.dnawebagency.com/how-to-add-an-admin-user-to-the-wordpress-database

  • This reply was modified 4 years, 1 month ago by  Bruce.
Posted: Wednesday Dec 5th, 2012 at 6:22 pm #33631
Bruce
Username: Bruce
Staff Member

Hi Robb,

Development on the next major version of s2Member has been taking longer than expected due to all of the new API changes that have been going on PayPal and the many bug fixes that have revolved around these changes. Our development team is doing their best to both keep the current stable of s2Member working correctly, *and* work on developing the newest version of s2Member (which, as more features are requested, is becoming a greater task).

We understand your frustration as we too share it. For the time being I would suggest using a different solution provided by s2Member while we are completing the newest version of s2Member, which should be made available somewhere between early and mid 2013.

Thank-you for your patience.

Posted: Wednesday Dec 5th, 2012 at 6:16 pm #33630
Bruce
Username: Bruce
Staff Member

Hi Abner,

It sounds like you will need to set some custom code up outside of s2Member. Perhaps you could set up the page to be protected with a custom capability, and add or remove the ccap whenever it is needed (i.e. when the user puts in a valid coupon, and when they click the submit button on your eCard). You can do this by getting the user’s ID, then doing this:

<?php
$user = new WP_User($id);

$user->add_cap('access_s2member_ccap_test'); // Adds custom capability "test"
$user->remove_cap('access_s2member_ccap_test'); // Takes it away

For verification of the coupon that the users gets sent, the website you are receiving the coupon from most likely has an API that you can check it with. You will need to use this API to check the code and then add the capability. Then, you will want to remove the capability later.

Posted: Wednesday Dec 5th, 2012 at 4:00 pm #33618
Bruce
Username: Bruce
Staff Member

Hi Rick,

Is subdomain.whydoiddate.com a site connected to whydoidate.com through WordPress Multisite?

If so, can you log into the WordPress Dashboard by going to Network Admin -> Sites -> Dashboard ?

Posted: Wednesday Dec 5th, 2012 at 3:48 pm #33616
Bruce
Username: Bruce
Staff Member

Hi Christian,

For example, if I want the membership to last for 1 year, I would add the following to the “advanced variables” box in the PayPal button generator:

p3=1
t3=Y

Yes that’s correct. A certain amount of trial-an-error is also needed to get this going correctly.

Posted: Wednesday Dec 5th, 2012 at 3:40 pm #33614
Bruce
Username: Bruce
Staff Member

Hi Abner,

It sounds like it might be in your best interest to use Dashboard -› s2Member® -› PayPal® Pro Forms -› Specific Post/Page (Buy Now) Forms instead of standard s2Member forms. This way s2Member can handle almost all of functionality for you.

Otherwise, you may want to set up API Notifications (Dashboard -› s2Member® -› API / Notifications -› Payment Notifications) to handle this.

Posted: Wednesday Dec 5th, 2012 at 3:36 pm #33613
Bruce
Username: Bruce
Staff Member

Thanks for your response. Are you suggesting we modify the PHP in the plugins to link the two? If so, is that something that you can help us with?

It sounds like you will need to set up some custom registration fields within s2Member under Dashboard -› s2Member® -› General Options -› Registration/Profile Fields, and then set up some custom code to fill in the possibilities for the Store Locator Plus plugin.

I’m unsure how the API works for the Store Locator Plus plugin, but I’m guessing that it’s most likely stored in a WordPress option value. I recommend setting up hooks onto the WordPress hooks user_register and profile_update. If you’re uncomfortable working with PHP, you may want to post your job on http://jobs.wordpress.net/.

Posted: Wednesday Dec 5th, 2012 at 3:28 pm #33612
Bruce
Username: Bruce
Staff Member

Hi Mindy,

Yes. This is very possible with s2Member. This capability is outlined within Dashboard -› s2Member® -› PayPal® Buttons -› Membership Level # Buttons and also Dashboard -› s2Member® -› PayPal® Pro Forms -› Membership Level # Forms. You will want to fill in the first line of forms with I’ll offer the first 4 months @ $0.00.

Posted: Wednesday Dec 5th, 2012 at 3:24 pm #33611
Bruce
Username: Bruce
Staff Member

Hi Yvette,

Glad to hear you figured out what the problem was.

s2Member does not have any special features for integrating with bbPress’s user fields (s2Member uses default WordPress functionality, and extends it so any plugin can add custom fields), and I am unfamiliar with how they work with bbPress. Perhaps there is a way to disable the custom fields from showing up on registration, or changing the way they work within bbPress.

Posted: Wednesday Dec 5th, 2012 at 3:21 pm #33609
Bruce
Username: Bruce
Staff Member

Hi Cheryl,

s2Member currently does not support all of the information that you need, as it is meant to be a way to connect to Affiliate programs and other sotware outside of WordPress that would have no use for this information.

Therefore, instead of using API Notifications, I recommend just using the core WordPress functionality to get the user’s data, and querying PayPal for subscription info.

Instead of using s2Member’s API Notifications it may be easier to just hook into WordPress’s user_register hook. This hook should give you all the info you need to send your email. Make sure to use a lower priority than s2Member, however. s2Member uses the default 10 priority, so using something like this should work, in a Must-Use Plugin within your /wp-content/mu-plugins/ directory (create it if you don’t have it):

<?php
add_action('user_register', 's2hack_user_register_email', 20, 1);

function s2hack_user_register_email($id) {
	$user = new WP_User($id);
	
	$subscr_id = get_user_option('s2member_subscr_id', $id); // User's current PP subscription ID.
		$paypal = array ('METHOD' => 'GetRecurringPaymentsProfileDetails', 'PROFILEID' => $subscr_id); // API call configuration.
		
	if (($paypal = c_ws_plugin__s2member_paypal_utilities::paypal_api_response ($paypal)) && !$paypal['__error'])
				$type = $paypal['BILLINGPERIOD']; // The billing period for the 
	
	$to =  $user->user_email; // 'cdelcolliano@earthlink.net' ;
        $headers[] = 'From: Inside Music Media <jdelcolliano@earthlink.net>';
        $headers[] = 'Cc: paul@wordfresh.com';
        $subject = 'New Member Notification';

	### USER DETAILS ###
	$first_name = $user->first_name;
	$last_name = $user->last_name;
	$email = $user->user_email;
	### USER DETAILS ###

	if($type === 'Month') {
		// This is a monthly subscriber.
	}
	elseif($type === 'Year') {
		// This is a yearly subsriber.
	}
}

The user_register code gives you the user’s ID, which allows you to then get all of their info by creating a new WP_User(). Find info on this at:

http://codex.wordpress.org/Class_Reference/WP_User

This code also performs a query to PayPal to find info on their billing cycle. Find info on the data recieved here:

https://www.x.com/developers/paypal/documentation-tools/api/getrecurringpaymentsprofiledetails-api-operation-nvp

This code would only work for users that are creating an account. So if you have free registration enabled, or if you have the ability for users to upgrade their accounts, this would need to be tweaked a bit.
Posted: Wednesday Dec 5th, 2012 at 2:40 pm #33599
Bruce
Username: Bruce
Staff Member

Hi Rick,

That’s interesting. Sometimes this error occurs when you mix www. and without. What might be happening is that if you went to, say, http://example.com/wp-admin/, and you have your site set up to use http://www.example.com/, your site is redirecting you to the non-www site on login, where you are not logged in, and therefore sending you back to your login screen over and over.

Check out this article: Knowledge Base » Don't mix www and without

To test before going through the .htaccess tricks, try going straight to http://yoursite.com/wp-login.php and logging in.

Posted: Wednesday Dec 5th, 2012 at 2:29 pm #33597
Bruce
Username: Bruce
Staff Member

Great. Let us know if you have any issues with that.

Posted: Wednesday Dec 5th, 2012 at 2:28 pm #33596
Bruce
Username: Bruce
Staff Member

Yvette,

Sorry about that. I didn’t realize that s2Member was not showing you the custom registration forms. This means that there are some forms being created by a plugin outside of s2Member. Can you try disabling all plugins except s2Member and see if that helps? You should then be able to reactive plugins one-by-one and find the source of the other custom registration forms.

Regarding moving the forms, you should be able to do this using the grey arrows that are on the left of all of the forms in Dashboard -› s2Member® -› General Options -› Registration/Profile Fields & Options. Does that work?

Posted: Wednesday Dec 5th, 2012 at 2:27 pm #33594
Bruce
Username: Bruce
Staff Member

Hi Steve,

I believe that s2Member only saves the URL of your site in the database for references to CSS, as it custom-generates CSS for the Pro Form using PHP. You should be okay in the future, but if not please let us know and we can show you how to update the database itself to stop this from happening.

Posted: Wednesday Dec 5th, 2012 at 2:22 pm #33592
Bruce
Username: Bruce
Staff Member

Hi Mary,

Glad to hear that fixed it. I will keep an eye out for what might be causing these paragraph tags to be automatically generated as they were in your installation.

EDIT: 01/8/13 – Problem founds to be a problem with the wpautop feature. Disabling this feature fixes the issue.

See: http://codex.wordpress.org/Function_Reference/wpautop

Posted: Wednesday Dec 5th, 2012 at 2:12 pm #33589
Bruce
Username: Bruce
Staff Member

Hi Peter,

Glad to hear you figured out the problem.

Posted: Wednesday Dec 5th, 2012 at 2:11 pm #33588
Bruce
Username: Bruce
Staff Member

Hi Christine,

That looks like the correct PayPal IPN URL for s2Member. If, however, GiftCardCafe is set up to use the same PayPal account, this could cause issues. This URL will have queries sent from both GiftCardCafe, AND s2Member, which could cause the IPN URL for s2Member to fail some of the time.

Note that s2Member will pass the correct return URL every time a user uses a Pro Form or PayPal button. Therefore you could set up your PayPal IPN to work with GiftCardCafe and it shouldn’t affect the way s2Member works. This is what I would recommend.

Posted: Wednesday Dec 5th, 2012 at 1:15 pm #33584
Bruce
Username: Bruce
Staff Member

Hi Yvette,

You should be able to control the look and feel of the registration page under Dashboard -› s2Member® -› General Options -› Login Registration Design, and edit specific forms under Dashboard -› s2Member® -› General Options -› Registration/Profile Fields.

To remove a field, just press the “X” button next to it. If you’d like to edit the field, click Edit.

Also, because you are using s2Member Pro, you could ignore the wp-login.php?action=register page, and instead use the Pro Forms provided by s2Member under Dashboard -› s2Member® -› PayPal® Pro Forms -› Membership Level # Forms. For free subscriptions you can use Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms.

These forms will use the design properties (CSS) of your theme.

Posted: Wednesday Dec 5th, 2012 at 1:02 pm #33583
Bruce
Username: Bruce
Staff Member

Hi Mary,

That’s interesting. For a temporary fix, I recommend adding a </p> tag right before the shortcode.

My guess would be that WordPress is adding these <p> tags outside of the HTML editor.

Posted: Tuesday Dec 4th, 2012 at 10:33 pm #33513
Bruce
Username: Bruce
Staff Member

Hi Mary,

I was really excited to finally find the solution, but I don’t have any paragraph tags around my Member’s Pro Form. I wish I did, really I do.

I noticed this issue because, in your source code for you Membership Options Page, you have this code:

<p><form id="s2member-pro-paypal-checkout-form" class="s2member-pro-paypal-form s2member-pro-paypal-checkout-form" method="post" action="/membership-options/">
	
	<!-- Response Section ( this is auto-filled after form submission ). -->
	<div id="s2member-pro-paypal-checkout-form-response-section" class="s2member-pro-paypal-form-section s2member-pro-paypal-checkout-form-section s2member-pro-paypal-form-response-section s2member-pro-paypal-checkout-form-response-section">...

As you can see, there is a <p> tag around the s2Member’s form, which is causing the issue in IE9. Could this be an effect of a visual editor that you’re using? Try deleting any line breaks above the shortcode and see if that fixes the error.

  • This reply was modified 4 years, 1 month ago by  Bruce.
Posted: Tuesday Dec 4th, 2012 at 9:44 pm #33511
Bruce
Username: Bruce
Staff Member

No problem.

Posted: Tuesday Dec 4th, 2012 at 9:42 pm #33510
Bruce
Username: Bruce
Staff Member

Where is this line supposed to go? can’t find the right file.

This code should be used in conjunction with a hack to automatically fill a form that you create. I recommend create a Must Use plugin my uploading a .php file to your /wp-content/mu-plugins/ directory (create one if you don’t have one)

You should be able to use get_user_option('s2member_custom_fields'); to get an associative array of custom field values for your user. Then, you can change the value for your field and update_user_option() to change the value.

Posted: Tuesday Dec 4th, 2012 at 9:36 pm #33509
Bruce
Username: Bruce
Staff Member

Hi Mary,

Investigation Complete.

We have determined that the problem occurs when s2Member Shortcodes are wrapped in paragraph (<p>) tags.

To fix the issue, you need to take a look at your page(s) with s2Member’s Pro Forms in them with the HTML editor. Then delete any and all <p></p> tags surrounding the shortcode.

These tags are not needed, as your theme should already format forms with margins. If, however, you would like extra spacing between you content and your Pro Form, use 1 or more break (<br />) tags.

IE9 standards cause s2Member’s Pro Form to be closed before any data is created inside of the form, therefore causing the form to have no data to submit. This happens only with Internet Explorer 9, and not with IEs previous versions (IE7, or IE8).
This issue does not occur if your theme forces Internet Explorer to run in Compatibility Mode.
Viewing 25 replies - 2,426 through 2,450 (of 2,703 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.