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,626 through 2,650 (of 2,703 total)
Author Replies
Author Replies
Posted: Thursday Sep 6th, 2012 at 1:58 am #24261
Bruce
Username: Bruce
Staff Member

Hi David,

I’ve just started working with the project and have no prior knowledge of the S2Member plugin. Is S2Member capable of replicating the user permission levels from the root site to the sub-directory site? In other words, will a user who has paid to have level 2 access automatically have it on both sites? If not, does anybody know of a plugin that will allow for this to happen?

I’m assuming that the site within the sub-directory is not a child site of their site #1. If it is, then WordPress already has built-in functionality for adding users to multiple sites within a MultiSite installation. You could find out about it at http://wordpress.org/


If you’re talking about two totally different installations of WordPress, s2Member does not currently support this, but we have a hack lined up to be written on this within the next 1-2 weeks that could help you out with this.

Basically, what you’l need to do is run a script from site #1 to site #2, and have it validate user data by $_POSTing information on the user back and forth. s2Member simply builds onto the core WordPress user structure, so hooking into user_register and create_user() should be all you need to do.

I’ll post the link to the Knowledge Base article as a reply as soon as it’s posted. :)

Posted: Thursday Sep 6th, 2012 at 1:48 am #24260
Bruce
Username: Bruce
Staff Member

Hi Dean,

Your saying that Paypal should be able to see the error in my Payflow account’s history?

The issue seems to be brought up by the time your PayPal account was created, because PayPal has been updating it’s API, different users have different standards to follow, which can lead to issues when s2Member’s contacting PayPal and PayPal is set up to take different variables. PayPal should be able to fix the problem by upgrading the version of the API they’re using on your specific PayPal account.

I would suggest emailing them the error you’re getting, and the below link for information regarding the issue, if you cannot get it resolved using the tips Jason lined up within the post:

http://www.s2member.com/forums/topic/urgent-error-36-transaction-failed/#post-22378

Let me know how it goes :)

Posted: Thursday Sep 6th, 2012 at 1:42 am #24259
Bruce
Username: Bruce
Staff Member

Hi Randy,

It does sound like the way you’re modifying your forms would require you to turn off this validation, however that could lead to some errors being thrown. However, if you’re willing to create another way of validation I believe you’ll need to edit the file that creates the Pro Forms itself to ‘turn off JavaScript validation’. You can find information on this within our FAQs.

Let me know if I can help you in any other way.

Posted: Thursday Sep 6th, 2012 at 1:34 am #24257
Bruce
Username: Bruce
Staff Member

Hi Jorden,

To upgrade users within s2Member, you need to set up Billing Modification Forms from within your dashboard under s2MemberJ -> PayPal® Pro-Forms -> PayPal® Pro Billing Modification Forms. There you can set up forms to upgrade to different Membership Levels, and display different forms based on conditionals within your page. You can check out Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals for information on how to set those up.

s2Member will then update the billing information for the user’s subscription to match the one they just upgraded to.

If I have a “gold” level member @ $200 and they want to upgrade to a Platinum membership which is $450, how does S2member handle this?

To do this, you would put something like this within your page:

[s2If current_user_is(s2member_level_3)]
	[s2Member-Pro-PayPal-Form modify="1" level="4" ccaps="" desc="$250 USD / One Time ( for lifetime access, non-recurring, no trial )" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="mysite.com" ta="0" tp="0" tt="D" ra="250" rp="1" rt="L" rr="BN" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]
[/s2If]

Let me know if you need anything else clarified :)

Posted: Thursday Sep 6th, 2012 at 1:34 am #24256
Bruce
Username: Bruce
Staff Member

Hi Dean,

Is there a way where I can look up what the user’s Paypal e-mail address is (without having to ask user) so I can ask Paypal support to look into the issue?

Unfortunately s2Member does not store this information anywhere other than the logs, and since logging was disabled you would have to ask the customer.

However, I don’t see why PayPal would need the customer’s PayPal email address, because the issue is between s2Member and your PayPal account.

Posted: Thursday Sep 6th, 2012 at 1:19 am #24254
Bruce
Username: Bruce
Staff Member

Hi Dean,

Sorry to hear you’re having trouble.

Are you using Recurring Billing with PayPal Payflow?

There has been a report similar to this one in the past, you can see what Jason said here.

If you could also send over your PayPal Logs from the transaction, x-ing out personal data (if you have logging enabled), that would be great. You should be able to find the logs from within /wp-content/plugins/s2member-logs/


Sorry you’re having these issues, PayPal has been updating it’s API and different users have different APIs based on the time they joined PayPal. As mentioned by Jason in the linked post, it may be in your best interest to contact PayPal and ask them about the error.

Thanks

Posted: Thursday Sep 6th, 2012 at 1:11 am #24253
Bruce
Username: Bruce
Staff Member

Hi Ian,

Ah, sorry about that. I didn’t realize you were running both Google Checkout and ClickBank. No, this shouldn’t cause any errors.

I did some browsing through your site and I couldn’t find anywhere where a direct link to ClickBank could be. When you had ClickBank as an option (as I’m assuming you took the ClickBank button from access to the general public), did you have any direct links to your ClickBank URL (as in, copied from an s2Member shortcode, created directly from ClickBank, or anything NOT created in the page, directly by an s2Member shortcode?

The one at http://getsowl.com/offer/ should be perfectly functional, as it has the s2vars within the link. But, just to check, you may want to run a test transaction, if possible.

If your test transaction does not go through, please send me info for your website in our s2Member® » Private Contact Form.

Thanks

Posted: Wednesday Sep 5th, 2012 at 9:28 pm #24239
Bruce
Username: Bruce
Staff Member

Hi David,

s2Member does pass variables as an array in the URL of the page when it has to redirect users to the Membership Options Page. However, it does require some PHP within your Membership Options Page to make use of these variables.

You can find information on these variables within your Dashboard under s2Member->API / Scripting->Membership Options Page / Variables. Let me know if you need any help with setting something up. :)

Another Thought:

You may want to put a $_GET[] variable on the end of the URL the script I posted to be able to tell when a user is just directly accessing the Membership Options Page, and when they have been redirected through that script.

Posted: Wednesday Sep 5th, 2012 at 8:32 pm #24227
Bruce
Username: Bruce
Staff Member

Hi David,

Sorry, I had forgotten to re-upload the file.

Should work now.

Posted: Wednesday Sep 5th, 2012 at 6:19 pm #24208
Bruce
Username: Bruce
Staff Member

Thanks Andrew, glad to hear you’ve got it working. :)

Let us know if you need anything else.

Posted: Wednesday Sep 5th, 2012 at 4:13 pm #24203
Bruce
Username: Bruce
Staff Member

Hi Gabor,

Currently s2Member doesn’t support this functionality within the core framework. However, you could build onto it through creating your own Cron Job. You can find out information on this within s2Member->PayPal® Options->Automatic EOT Behavior.

I’m putting this on the list of things to cover in Knowledge Base Articles within the next 1-2 weeks. :)

Posted: Wednesday Sep 5th, 2012 at 3:53 pm #24202
Bruce
Username: Bruce
Staff Member

Hi David,

Thanks for the information

I have uploaded the following code to your website within an s2hacks.php file in /wp-content/mu-plugins/

I tested this on your site and it seems to be working correctly. Let me know if you have any issues.

<?php
/**
* Hack authored by Bruce (Support Rep) on the s2Member Forums.
* If problems persist, add a topic reply to http://www.s2member.com/forums/topic/bp-redirect-not-working-for-create-blog/ or create a new topic
*/
add_action('wp_loaded', 's2hack_redirect_buddypress_404_create');
function s2hack_redirect_buddypress_404_create()
	{
		if($_SERVER&#91;"REQUEST_URI"&#93; === '/microsites/create/' && !bp_blog_signup_enabled())
			{
				header('Location: http://'.$_SERVER&#91;'SERVER_NAME'&#93;.'/options/');
				exit();
			}
	}
?>
For other users having this problem:

I will be creating a Knowledge Base Article on this within 1-2 weeks outlining ways to overcome BuddyPress’s 404 error here.

If you have any further problems, please reply here. :)

Posted: Wednesday Sep 5th, 2012 at 2:52 pm #24190
Bruce
Username: Bruce
Staff Member

Hi Nick,

We can help you out with any problems you have writing the code, as long as it doesn’t violate our s2Member® » Support Policy » Fine Lines, but, unfortunately we do not have the resources available to write the scripts for you.

Sorry about that.

Posted: Tuesday Sep 4th, 2012 at 10:48 pm #24115
Bruce
Username: Bruce
Staff Member

Hi Jorge,

The only way to do this would be to set up a hook within a mu-plugin on site #2 so that you could send the user data to that site from site #1 and create_user() on that site. A developer familiar with WordPress could use the ‘user_register’ hook within WordPress to make this work.

If you’d like to keep an eye out on the s2Member Knowledge Base, we may post some information and sample code for this within a couple weeks.

Posted: Tuesday Sep 4th, 2012 at 10:07 pm #24109
Bruce
Username: Bruce
Staff Member

Hi Maksym,

I’ve seen this happen before due to a change in the folder your theme is in, or the deletion of the theme you’re currently using. You might try accessing the page Appearance->Themes within your Dashboard and see if it pops up any errors at the top of the page if problems persist.

Posted: Tuesday Sep 4th, 2012 at 8:01 pm #24088
Bruce
Username: Bruce
Staff Member

Hi David

From my last post:

I’m going to look into this within the following day and see what might be happening here within s2Member’s code (I’m not familiar with this occurrence). If I cannot get you a resolution for this within the next 1-2 days I’ll contact Jason once again to get his opinion on it.

Investigation Complete.

From looking at the file /includes/classes/cache.inc.php, it appears that the variable $cache_needs_updating is set from within the file based on if() statements. This variable being undefined does not affect anything because it is only checking to see if the variable is TRUE.

I’m going to contact Jason about changing the code slightly within this file so that the above error does not show up within the debug, as it is not affecting anything.

Posted: Tuesday Sep 4th, 2012 at 7:38 pm #24085
Bruce
Username: Bruce
Staff Member

Hi Ian,

Thanks for the follow-up

This is a clickbank product / button so I am not using the PayPal part of S2.

s2Member runs all of the transaction data through it’s PayPal processor, as it says in the logs:

3 => 'IPN reformulated. Piping through s2Member\'s core/standard PayPal® processor as `txn_type` ( `web_accept` ).',
4 => 'Please check PayPal® IPN logs for further processing details.',

I don’t see anything out of order within your Signup Page, as the s2vars are being passed to ClickBank within the page. However, under further investigation within your site, it appears that you have linked to ClickBank within your home page in a strange way. Your link is:

http://yoursite.com/?s2member_pro_google_co=1&amp;co%5Blevel%5D=1&amp;co%5Bccaps%5D&amp;co%5Bdesc%5D=S.O.W.L.+Soon-to-be+Skinny+Membership+%28LIFETIME+ACCESS%29&amp;co%5Bcc%5D=USD&amp;co%5Bcustom%5D=getsowl.com&amp;co%5Bta%5D=0&amp;co%5Btp%5D=0&amp;co%5Btt%5D=D&amp;co%5Bra%5D=197.00&amp;co%5Brp%5D=1&amp;co%5Brt%5D=L&amp;co%5Brr%5D=BN&amp;co%5Bimage%5D=http%3A%2F%2Fgetsowl.com%2Fwp-content%2Fuploads%2Fbutton-197.png&amp;co%5Boutput%5D=anchor&amp;_s2member_sig=1346801505-980317cd83087e0f8ea5ff5e7680b4a8

This is where your problem lies. All clickbank links MUST be created through an s2Member shortcode. To fix your issue, simply change that link to your Membership Options Page.

Posted: Tuesday Sep 4th, 2012 at 6:54 pm #24081
Bruce
Username: Bruce
Staff Member

Hi David,

Sorry for the delay

I took another look at the BuddyPress code for the /create/ page, and it appears that it is actually controlled by the BuddyPress theme you are running. In the default BuddyPress theme, when the user accesses the create blog page, they are given the message “Site registration is currently disabled”. I would take a look into the file within your theme called /blogs/create.php, and run a search for 404. If there is a trigger for the 404 page, you can post the code here, within a reply to this post and we’ll see if we can fix it.

How have other customers responded to this? Any leads appreciated.

A lot of people would conditionally hide links to the registration page using something like get_site_option('registration'); # if this == 'none' then they cannot make any more sites.. This can also be used for your site.


s2Member only controls the “On/Off switch” for the BuddyPress site creation functionality. Therefore, if your theme gives the user a 404 if it is off, then the same will happen when they run out of “credits” to create a site.

*I know I’ve mentioned this before, I’m getting this from debug:
NOTICE: wp-content/plugins/s2member/includes/classes/cache.inc.php:97 – Undefined variable: cache_needs_updating

I’m going to look into this within the following day and see what might be happening here within s2Member’s code (I’m not familiar with this occurrence). If I cannot get you a resolution for this within the next 1-2 days I’ll contact Jason once again to get his opinion on it.

Thanks for your patience.

Posted: Tuesday Sep 4th, 2012 at 2:08 pm #24053
Bruce
Username: Bruce
Staff Member

Hi Andrew,

Normally Raam’s suggestion would work, but because of how BuddyPress is working with it, you have to do this:

div#sidebar div#sidebar-me{
display: none;
}

The above is how the theme links to that specific portion of the page itself.

Posted: Monday Sep 3rd, 2012 at 1:44 pm #23956
Bruce
Username: Bruce
Staff Member

Hi Andrew,

Looking at your page here, it appears that the BuddyPress login form is separated into two parts within the HTML. You simply need to display: none; to those IDs within the CSS file.

Like this:

p#login-text {
display: none;
}
#sidebar-login-form {
display: none;
}
Posted: Monday Sep 3rd, 2012 at 1:28 pm #23954
Bruce
Username: Bruce
Staff Member

Hi Rob,

Glad to hear you got that worked out. Sorry you had trouble with it.

Posted: Monday Sep 3rd, 2012 at 12:16 am #23892
Bruce
Username: Bruce
Staff Member

Hi Andrew,

If you can’t take it off from the WordPress Dashboard, then it’s (most likely) a part of your theme.

You can probably edit it out through the sidebar.php file in your theme. Or, if you want to send me a link to your website, I can show you how to hide it with CSS.

Posted: Sunday Sep 2nd, 2012 at 9:35 pm #23887
Bruce
Username: Bruce
Staff Member

Hi Bradley,

Can you post the shortcode you’re using on your site please?

Thanks.

Posted: Sunday Sep 2nd, 2012 at 9:33 pm #23886
Bruce
Username: Bruce
Staff Member

You should be able to do this with get_users().

$users = get_users();
foreach ($users as $user) {
     echo '<li>' . $user->display_name . '</li>';
} 

You could also use $user->ID within the foreach() to get_user_meta().

Posted: Sunday Sep 2nd, 2012 at 9:28 pm #23885
Bruce
Username: Bruce
Staff Member

Hi David,

Sorry for the delayed response

Hi Bruce, I’ve done as you’ve said, changed options page and saved, then set back o options and re saved. Still no change, I get /create/ if user hasn’t exceeded their allowance and 404 if they have.

Thanks for clearing that up.

Jason explained this occurrence above, as a way of BuddyPress protecting its blog creation page. s2Member does not have any control of this, as s2Member only protects content based on Membership Levels / Custom Capabilities. If you’d like to change this, you’ll need to hook into BuddyPress. I believe that the functionality of the /create/ page is within buddypress/blogs/create.php.

Does that answer your question?

Viewing 25 replies - 2,626 through 2,650 (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.