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,676 through 2,700 (of 2,703 total)
Author Replies
Author Replies
Posted: Wednesday Apr 18th, 2012 at 2:40 pm #11138
Bruce
Username: Bruce
Staff Member

Thanks for the follow-up.

Glad to hear you got it fixed.

Posted: Wednesday Apr 18th, 2012 at 1:56 pm #11134
Bruce
Username: Bruce
Staff Member

Hello,

The way the text inputs for the Pro Forms are styled are based on your theme. Therefore if you want to change the way the forms look, you will need to edit the style.css file for your theme, or switch to a different theme.

I would assume that because your theme’s background is black, the text is automatically white, so I would suggest putting this code into your theme’s style.css file.

input[type="text"]
{
color: black;
}

Let me know if that works for you.

Posted: Tuesday Apr 17th, 2012 at 1:12 pm #11019
Bruce
Username: Bruce
Staff Member

Hi Jordan,

Unfortunately, PayPal requires you to send the data to its servers and have the user confirm the changes on their side without PayPal Pro. s2Member has tried to keep all of the data input on your side to keep it as simple as possible on PayPal, but to keep the user on your site completely, you will need to get PayPal Pro.

Sorry for the inconvenience.

Posted: Tuesday Apr 17th, 2012 at 1:00 pm #11017
Bruce
Username: Bruce
Staff Member

Hi! Thanks for your inquiry!

You can learn about how to customize the Pro Forms in FAQS >> Is it possible to modify s2Member® Pro Form templates?

Let me know if you need any further assistance!

Posted: Tuesday Apr 17th, 2012 at 12:56 pm #11015
Bruce
Username: Bruce
Staff Member

Hi David, thanks for your inquiry!

It looks like it could be a problem with the JavaScript on your site.

Are you running any caching plugins?
– It’s possible that you could be having problems with the way the caching program is handling the JavaScript for the form. Could you try disabling the plugin if you have one, and seeing if it works then?
– If it is the caching plugin, you can try QuickCache instead. It’s made my WebSharks, Inc. and works perfectly with s2Member.

Do you have any custom JavaScript running through the forms?
– If you do, try disabling it.

If no to both of those, can you try reverting to Twenty-Eleven and seeing if it works with that installed?
– This is the most likely cause of the problem.

Thanks, and let me know if you get the problem fixed.

Posted: Tuesday Apr 17th, 2012 at 12:37 pm #11013
Bruce
Username: Bruce
Staff Member

Hi David, thanks for your inquiry!

s2Member sends data about the page the user was redirected from to the Membership Options Page when they are redirected. You can use the $_GET[‘_s2member_seeking’] array in the URL to create a form that will do this.

Here’s an example of a simple form that works this way (remember that to do this you need a PHP Execution plugin installed to use PHP in a WordPress page/post)

<?php
$s2member_seeking = $_GET&#91;'_s2member_seeking'&#93;;

if($s2member_seeking)
    {
        if($s2member_seeking&#91;'type'&#93; === 'post')
            $action = site_url().'/wp-login.php?redirect_to=/p='.$s2member_seeking&#91;'post'&#93;;
        else if($s2member_seeking&#91;'type'&#93; === 'page')
            $action = site_url().'/wp-login.php?redirect_to=/page='.$s2member_seeking&#91;'page'&#93;;
    }
?>
<form method="post" action="<?php echo $action; ?>">
    <input type="text" name="log" />
    <input type="text" name="pwd" />

    <input type="submit" value="Sign In" />
</form>

Remember that the [‘type’] value affects how this work, and you made need to change things to get this to work correctly with your WordPress® Setup!

I hope this helps!

Posted: Tuesday Apr 17th, 2012 at 12:33 am #10974
Bruce
Username: Bruce
Staff Member

Hi Frank,

Yes, you can check out how to do that here:

http://www.tizag.com/javascriptT/javascriptredirect.php

I hope that helps!

Posted: Tuesday Apr 17th, 2012 at 12:23 am #10972
Bruce
Username: Bruce
Staff Member

Hi Frank,

Glad to hear you got it fixed.

Posted: Tuesday Apr 17th, 2012 at 12:14 am #10968
Bruce
Username: Bruce
Staff Member

Hi Frank, thanks for the follow-up

Do you have a PHP Execution plugin installed?

Posted: Monday Apr 16th, 2012 at 11:51 pm #10966
Bruce
Username: Bruce
Staff Member

Hi Dave,

You will need to create the /mu-plugins directory within /wp-content for this to work.

Create the s2hacks.php file, and create that folder/directory and move it into there, so the path would look like:

wp-content/mu-plugins/s2hacks.php
Posted: Monday Apr 16th, 2012 at 11:33 pm #10965
Bruce
Username: Bruce
Staff Member

Hi Frank,

The problem with that code lies within the fact that you put a PHP function ( bp_loggedin_user_domain() ) within parenthesis. So the correct code would look like this:

<?php header ('Location:'.bp_loggedin_user_domain()); ?>

However, because the page content is loaded into the page after the attribute, this code will throw an error. I recommend using a JavaScript redirect instead. You can pop this into the top of the post/page:

<script type="text/javascript"> window.location = "<?php echo bp_loggedin_user_domain();?>"; </script>

I hope that solves your problem.

Posted: Monday Apr 16th, 2012 at 11:22 pm #10964
Bruce
Username: Bruce
Staff Member

Hi Jordan, thanks for the follow-up.

Sorry for this issue.

The problem is caused by a known limitation with the Pro Forms in that you can only have 1 Pro Form per page. This is caused by the fact that forms share the same input IDs. You will need to simply link to the forms in separate pages, and that should solve you problem.

I hope this helps.

Posted: Monday Apr 16th, 2012 at 10:42 pm #10962
Bruce
Username: Bruce
Staff Member

Hi Jordan, thank-you for your inquiry!

You need to set up a Pro Form for Upgrades from Free Users to s2Member Level 1.

You can find these forms under Dashboard -> s2Member -> PayPal® Pro-Forms -> PayPal® Pro Billing Modification Forms.

It may also be wise to set up your Membership Options Page to detect whether or not the user is logged in, and whether or not they are a premium subscriber.

You can learn about how to do this in your dashboard under Dashboard -> s2Member -> API/Scripting -> Simple/Shortcode Conditionals

Using shortcodes, you can detect whether the user viewing the page is already signed in, and if they are s2Member Level 1 already. You could do something like this:

[s2If !is_user_logged_in()]
    The regular PayPal® Pro Form you are currently using
[/s2If]

[s2If current_user_is(s2member_level0)]
    The upgrade Pro Form
[/s2If]

[s2If current_user_can(access_s2member_level1)]
    You're already a premium user. You don't need to upgrade.
[/s2If]

I hope that helps!

Posted: Thursday Feb 23rd, 2012 at 2:28 am #6064
Bruce
Username: Bruce
Staff Member

Hi Amy, thank-you for your inquiry!

Unfortunately, s2Member does not currently support this feature by default directly through WordPress®. However, if you integrated s2Member with MailChimp or aWeber, you can use the functionality of one of these two companies to achieve the desired effect.

This can be set up in the Dashboard under s2Member -> API / List Servers. You should simply be able to sign up only Gold Level members with a specific aWeber / MailChimp mailing list, and send out emails from there.

I hope that helps.

-Bruce

Posted: Thursday Feb 23rd, 2012 at 2:21 am #6061
Bruce
Username: Bruce
Staff Member

Hi Ivan, thank-you for your inquiry!

Unfortunately, s2Member cannot reach as far as WordPress® can, so it’s not possible to access the PHP constants or functions from outside of WordPress. It could be possible to do this from within a forums plugin hooked into WordPress.

I hope that helps in some way.

-Bruce

Posted: Monday Feb 13th, 2012 at 9:52 pm #4981
Bruce
Username: Bruce
Staff Member

Hi Andrew,

I recommend contacting HostGator and ask them if they can change some of the settings with your mail. s2member should use the same settings that WordPress does.

It’s usually a good idea to keep up to date with the s2Member releases.

If HostGator can’t fix the problem, please send a ticket through the form at http://www.s2member.com/contact/, so that we can check your PHP settings and see if we can your problem resolved.

Thank-you,

Bruce

Posted: Thursday Feb 9th, 2012 at 5:03 pm #4677
Bruce
Username: Bruce
Staff Member

Hi Alexander,

After reading back through your previous post I realized that you are actually using the standard PayPal setup, correct?

In this case, s2Member can actually automatically set the IPN on a per-transaction basis, so you will need to leave out a PayPal® IPN and PDT in your settings, and allow s2Member to automatically set it through the buttons it creates.

If you do decide to switch to PayPal® Pro, a central IPN processor will need to be created, as PayPal® Pro does not allow transactions without an IPN set up. s2Member® has an example file in the s2m-pro-extras.zip file you should get with your s2Member Pro files. This can be customized with someone familiar with s2Member to work correctly with your sites.

You can find out more info about this by reading the More Information section under s2Member -> PayPal® Options -> PayPal® IPN Integration

Hope that helps,

-Bruce

Posted: Thursday Feb 9th, 2012 at 1:25 pm #4651
Bruce
Username: Bruce
Staff Member

Hi Alexander,

It’s not currently possible to run multiple websites on one PayPal® account directly through s2Member because PayPal® only supports 1 IPN/PDT setup. It might be possible to run it through one central IPN, and have an auto-filled custom registration form, which you would check after the user is created. And use a custom success=”” attribute in your Pro Forms.

You’d then have to use cUrl or fopen() to send the user data to the appropriate website and have that file create the account on the appropriate website. This would take a significant amount of custom coding, however.

I recommend hiring a Freelancer to set this up for you on http://jobs.wordpress.net/ .

I hope you get your sites up and running as quickly as possible,

Bruce

Posted: Thursday Feb 9th, 2012 at 1:15 pm #4650
Bruce
Username: Bruce
Staff Member

Hi John,

You can create multiple buttons / Pro Forms for the same level, you will just need to have either multiple pages for different buttons / pro forms or have 1 page with multiple forms (it doesn’t matter which).

The simplest way to do it is just to create forms on multiple pages, and have your Membership Options Page link to the different form pages.

If you’d rather have 1 page for a dynamic form, you can use PHP variables and place different values within the shortcodes based on a $_GET or $_POST variable, or just from a dropdown at the top of the page. A freelance developer can do this in a day or so with a basic knowledge of PHP / HTML.

I hope that helps,

Bruce

Posted: Thursday Feb 9th, 2012 at 11:09 am #4634
Bruce
Username: Bruce
Staff Member

Hi Ryan,

You can probably do this through the WordPress hook user_register. You can just check if the
user_is($id, 'subscriber')

So you would do something like this:

<?php
add_action ('user_register', 'my_s2memberlevel0_function');
/**/
function my_s2memberlevel0_function($id) // The hook already passes the id of the user that's created
	{
		if(user_is($id, "subscriber")) // If the user that was created is a free Subscriber
			{
				// Your process (Keep in mind that you cannot echo or print values here)
			}
	}
?>

This code executes right after the user presses the button to create the account, and right before they are redirected to the WordPress® login screen, therefore if you need to echo out any JavaScript, etc. after signup, you’ll need to assign a value (probably through update_user_meta) and check the value after user is logged in, and then delete the user_meta value.

I hope that helps,

Bruce

WordPress® add_action()

s2Member® user_is()

Posted: Thursday Feb 9th, 2012 at 10:32 am #4629
Bruce
Username: Bruce
Staff Member

Hi,

1. Is is possible to create a login form within a page and have it refresh the same page after the user has logged in so they can see the content?

It’s possible to do this with just a little bit of code put into your Membership Options Page. s2Member already passes data into the Membership Options Page whenever a user is redirected that includes if it is a page or post, and the ID/slug of that page or post. It’s very simple to create a code snippet on this page that detects if the user was redirected, and can display a login form, which will redirect the user to the page they originated from.

We would be happy to help you from within the Customer Support Forums on this issue.

2. If a free user has previously registered and then wishes to upgrade to a paid subscription membership and additional Custom Registration/Profile Fields are required for that subscription level, is it possible for the user to then be prompted to fill out the additional custom fields before activating their membership?

With s2Member Pro, all of the data for membership is passed through the Payment Gateway, so after checkout, all the user needs to do is login. You will need to set up Pro Forms (available in the Pro version) which also allow for custom registration forms to be shown.

Hope that helps,

Bruce

Posted: Thursday Feb 9th, 2012 at 10:18 am #4625
Bruce
Username: Bruce
Staff Member

Hi Andrew,

The first thing I would suggest is to isolate the problem. When you create a new user on your site at /wp-login.php/?action=register, does it send you an EMail with the details for the newly created account? If not, then it may be a problem with how you have something set up with your hosting provider.

Have you done any alterations to the form, have any Plugins that could conflict with your mail program (Like WP Mail SMTP)?

Have you or a developer hooked into s2Member in any way through PHP?

If you could answer these questions to your best knowledge then I may be able to help you solve your issue.

Thank-you,

Bruce

Posted: Tuesday Feb 7th, 2012 at 5:56 pm #4402
Bruce
Username: Bruce
Staff Member

Hi B,

Once you add in PayPal or another payment gateway, your other users will be unaffected. Users created beforehand will be able to renew with PayPal if they chose to, and new members could check out with PayPal® as well.

s2Member also has Registration Access Links to help you through the process. You can have users send you money with PayPal in the meantime, and send them a link made specifically for the transaction ID they signed up on. This would take care of EOT dates from PayPal and refunds / charge backs you may get.

Hope that helps.

Posted: Tuesday Feb 7th, 2012 at 5:49 pm #4399
Bruce
Username: Bruce
Staff Member

Hi B,

I’m sorry I didn’t catch that. Yes, you can very easily just add users manually through the WordPress Dashboard. s2Member adds user meta boxes that you can fill in to set the user’s EOT dates etc.

Posted: Tuesday Feb 7th, 2012 at 5:44 pm #4397
Bruce
Username: Bruce
Staff Member

Hi B,

To add a payment gateway other than those that come with s2Member or s2Member Pro, you will need an advanced knowledge of s2Member. It would take reading through the source to find the specific function calls you need to make. s2Member Pro’s system already passes the values from the payment gateways into the PayPal system.

s2Member Pro does support multiple payment gateways by default. You can see an explanation about the payment gateways here:

http://www.s2member.com/faqs/#s2-faqs-payment-gateways

Hope that helps.

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