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.

Raam Dev

Staff Member

My Latest Replies (From Various Topics)

Viewing 25 replies - 1,526 through 1,550 (of 2,567 total)
Author Replies
Author Replies
Posted: Friday Jun 29th, 2012 at 3:08 am #17824
Raam Dev
Username: Raam
Staff Member

Hi John,

Please see this thread and follow those instructions for modifying front-end messages. That should do the trick.

Posted: Friday Jun 29th, 2012 at 3:00 am #17823
Raam Dev
Username: Raam
Staff Member

Hi Boudewijn,

I suspect your inability to login to the website is only a coincidence; I cannot think of any reason playing with this code would cause that to happen.

With regards to the code itself, I suspect you may be running into a limitation of the [s2If] [/s2If] shortcode (a conditional shortcode that was created by s2Member with a very basic feature set).

To test this theory, coud you try using the following PHP snippet in your Text Widget (if you’re not running the Exec-PHP Plugin, please install it):

<?php
$lang = get_user_field ("taal_language_sprache");
if($lang == "NL") { 
	echo 'Nederlands';
} else {
	echo 'Language: ' . $lang;
}
?>
Posted: Friday Jun 29th, 2012 at 2:46 am #17822
Raam Dev
Username: Raam
Staff Member

Hi Wayne,

I looked at your logs and here’s what I found in paypal-ipn.log:

The demotions are valid as s2Member received IPN messages from PayPal indicating that a demotion should take place. s2Member will process a demotion for various reasons (cancellation, failed payment, refunds, etc.; it all depends on the IPN message s2Member receives from PayPal).

Looking through your logs, here are some of the reasons I found for demotion:

'initial_payment_status' => 'Failed',
'txn_type' => 'recurring_payment_profile_cancel',
'payment_status' => 'Reversed',
'reason_code' => 'buyer_complaint',
'payment_status' => 'Refunded',
'txn_type' => 'recurring_payment_suspended_due_to_max_failed_payment',

What I did was search the paypal-ipn.log for “demoted” and then scroll up a few lines and look for the reason of the demotion. Each log entry contains details about the IPN message that was received from PayPal and by looking at the details of the IPN message you can determine why s2Member processed the demotion.

If you suspect a demotion is invalid, you should contact PayPal and discuss with them why the IPN message was sent. s2Member only processes demotions based on what messages it has received from PayPal.

Posted: Friday Jun 29th, 2012 at 2:31 am #17821
Raam Dev
Username: Raam
Staff Member

Hi Rita,

Yes, this is possible. Simply add the following bit of CSS to your Post/Page above the Pro-Form shortcode (you’ll want to make sure you’re using the HTML editor and not the Visual editor when you’re inserting the code):

<style type="text/css">
#s2member-pro-paypal-checkout-form-description-div { display: none; }
</style>
Posted: Friday Jun 29th, 2012 at 2:16 am #17819
Raam Dev
Username: Raam
Staff Member

Hi Ralph,

As Cristian mentioned, s2Member provides an API for creating users. See Dashboard -› s2Member® -› API / Scripting -› Remote Operations API.

If you don’t want to use the s2Member Pro API, then you will need to consult with the WordPress.org Support Forums for help with creating WordPress users directly via the database (there’s also the WordPress wp_insert_user() function that may be of interest).

Assisting with custom code outside of the s2Member plugin is beyond the scope of our support policy (please see s2Member® » Support Policy » Outside Scope).

Posted: Friday Jun 29th, 2012 at 2:10 am #17817
Raam Dev
Username: Raam
Staff Member

Hi Christopher,

If your CSV file contains User IDs (the first column in the CSV file), then s2Member will attempt to update those users when you run the import, not create them. If you want to create those users, you need to leave the User ID column empty.

Please see the first note under Step 2 on this KB article.

Posted: Friday Jun 29th, 2012 at 2:07 am #17816
Raam Dev
Username: Raam
Staff Member

Hi Terri,

Here are a few things you can try:

* Remove the Page and URI restrictions, test again to confirm you have access, then add the Page and URI restrictions back in

* Deactivate the s2Member plugin (make sure you’ve enabled Deactivation Safeguards in Dashboard -› s2Member® -› General Options -› Deactivation Safeguards) and then reactivate the plugin

* If you’re using a caching plugin such as QuickCache or WP Super Cache, empty the cache

* Clear your web browser cache and cookies

If you’re manually making changes to the roles using a Role Editor Plugin, there are lots of different things that could go wrong there. As a last resort, I’d recommend resetting all the roles to their defaults and testing again.

Posted: Friday Jun 29th, 2012 at 2:02 am #17814
Raam Dev
Username: Raam
Staff Member

Hi Toni,

It sounds like there might be some JavaScript conflict going on somewhere, perhaps with your theme or with another plugin.

Can you give us a link to the page where the Level 2 form is located so we can test further?

Posted: Thursday Jun 28th, 2012 at 7:36 am #17755
Raam Dev
Username: Raam
Staff Member

Glad I could help! :)

Posted: Thursday Jun 28th, 2012 at 7:34 am #17754
Raam Dev
Username: Raam
Staff Member

Hi Jeff,

The user does not need to login for the EOT to take effect. When the EOT time is reached, s2Member takes action on its own. If I’m not mistaken, this happens through the cron system that’s built into WordPress (there’s nothing you need to configure to run this; it’s something that WordPress makes available to plugins for scheduling events).

Posted: Thursday Jun 28th, 2012 at 7:29 am #17753
Raam Dev
Username: Raam
Staff Member

Hi Adam,

No, this is not currently possible. To my knowledge, the only way to offer a refund would be through the PayPal account itself.

Posted: Thursday Jun 28th, 2012 at 7:24 am #17750
Raam Dev
Username: Raam
Staff Member

Hi Pete,

That code that Jason provided will only work with s2Member Pro-Forms. It will not work with the default WordPress registration form (which is what you’re probably using if you set it up using the free version of s2Member, since Pro-Forms are not available with the free version).

If you’re using the [s2Member-Profile /] shortcode to allow users to edit their profiles and you want to add an s2Member Custom Registration/Profile field that, when edited on their profile using the [s2Member-Profile /] shortcode, updates the user_url field, then you’ll need to use the ws_plugin__s2member_after_handle_profile_modifications hook instead.

The code might look like this:

Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
( these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins )

<?php
add_action('ws_plugin__s2member_after_handle_profile_modifications', 'my_profile_function');
function my_profile_function($vars = array())
{
	$user = $vars['user']; // A WP_User object instance.
	update_user_option($user->ID, 'user_url', $_POST['my_value']);
}
?>

You’ll need to change $_POST[‘my_value’] to match the name of the s2Member Custom Registration Field that you added for website.

Posted: Thursday Jun 28th, 2012 at 7:09 am #17745
Raam Dev
Username: Raam
Staff Member

Hi Matthew,

Yes, all of this is possible with s2Member. Please install the Framework and then visit Dashboard -› s2Member® -› API / Scripting -› Content Dripping.

Posted: Thursday Jun 28th, 2012 at 7:03 am #17744
Raam Dev
Username: Raam
Staff Member

Hi Greg,

Please download this Server Check Tool, upload the PHP file to your WordPress directory, and then load the URL to the file in your browser. It will run a bunch of tests to determine if there’s anything amiss on the server-side.

If all of those things check out fine, then I would suggest testing with a live PayPal account instead of the SandBox. We’ve seem some strange issues with PayPal’s Sandbox and sometimes it behaves unexpectedly. Testing $0.01 transactions on a live account will be a much better test of your final setup.

Posted: Thursday Jun 28th, 2012 at 7:01 am #17743
Raam Dev
Username: Raam
Staff Member

Hi Lisa,

Yes, the best way to test the plugin compatibility will be to install both plugins and then see if there are any conflicts.

We don’t currently have a release date set for the next major release, but we’re hard at work on it — hopefully within the next month we’ll be able to make an announcement.

Posted: Thursday Jun 28th, 2012 at 6:59 am #17742
Raam Dev
Username: Raam
Staff Member

Hi Bob, Frank,

You said:

Once there, they can see the page URL at the top (along with a lot of other information) and if they copy the URL and strip out all the “excess” information they can come back to that page whenever they want.

That is actually not true. If you restrict a page with Specific Post/Page Access Restrictions Dashboard -› s2Member® -› Restriction Options -› Specific Post/Page Access Restrictions, the only way someone will be able to access the page is through the special link they are emailed. All that “excess information” that you mentioned actually contains special keys that are necessary to access the page. Once the amount of access time has passed, those keys will no longer work and the person will need to purchase access again.

If you were testing the Specific Post/Page restrictions, make sure that you are fully logged out of WordPress before testing. In fact, you should also clear your browser cache and cookies to make sure there’s no way s2Member is detecting that you’re an administrator trying to access the page (because in that case, you will always have access).

Another good way to mimic a purchase is to use another computer entirely — a computer that have never logged into your WordPress site.

Posted: Thursday Jun 28th, 2012 at 6:03 am #17734
Raam Dev
Username: Raam
Staff Member

Hi Allan,

If it suddenly stopped working with no change on your part, then it’s most likely a problem with communication between your server and PayPal’s server. There are various reasons this could happen, but the most common is related to a missing extension (which can go missing when your web host upgrades the software on the server).

Please download this Server Check Tool, upload the PHP file to your WordPress directory, and then load the URL to the file in your browser. It will run a bunch of tests to determine if there’s anything amiss on the server-side.

Posted: Thursday Jun 28th, 2012 at 5:55 am #17733
Raam Dev
Username: Raam
Staff Member

Hi Brenda,

This is possible, but you’ll need to edit the Pro-Form templates (see Pre Sale FAQs » Is it possible to modify s2Member® Pro Form templates?) and add the necessary JavaScript in there. You’ll need to do something that checks for the presence of your Custom Registration Fields and then copies their values to the billing address fields when the user selects one of the credit card options.

Posted: Thursday Jun 28th, 2012 at 5:51 am #17732
Raam Dev
Username: Raam
Staff Member

Boudewijn,

Have you seen the following thread? It explains how you can use the <!– more –> tag with s2Member: http://www.primothemes.com/forums/viewtopic.php?f=4&t=16079#p56160

Posted: Wednesday Jun 27th, 2012 at 8:20 am #17648
Raam Dev
Username: Raam
Staff Member

Boudewijn,

This code has two bugs:

<? php
    $Taal = get_user_field("taal_language_sprache");
   echo $taal;
?>

Notice the space after <? — that shouldn’t be there. Also, PHP variables are case-sensitive, so $Taal and $taal are different variables. Judging by your code, you meant for them to be the same. Here is the corrected code:

<?php
    $taal = get_user_field("taal_language_sprache");
   echo $taal;
?>

Also, if you’re trying to run PHP code in your WordPress Posts/Pages, you will need to install and activate a plugin such as Exec-PHP Plugin. PHP code will not run by default inside your WordPress Posts/Pages — this is a security feature imposed by WordPress.

Posted: Wednesday Jun 27th, 2012 at 8:12 am #17647
Raam Dev
Username: Raam
Staff Member

Hi Stuart,

Thank you for noting that. We will take this into consideration during the next update.

Matthew,

If you want to generate forms instead of buttons, you’ll need to do so from the Pro-Forms section (see Dashboard -› s2Member® -› PayPal® Pro Forms -› Quick Start Guide). If you continue to have problems, please start a new support thread with your questions.

Posted: Wednesday Jun 27th, 2012 at 8:09 am #17646
Raam Dev
Username: Raam
Staff Member

Hi John,

You should be able to change that in /includes/translations/s2member.pot. Open that file and search for “worries”.

Posted: Wednesday Jun 27th, 2012 at 8:03 am #17645
Raam Dev
Username: Raam
Staff Member

Hi Pete,

You’d need to use an s2Member Pro-Form for registrations and include a Custom Registration field called Website. Then–here’s the tricky part–you’d need to execute some code upon submission of the Pro-Form that calls the WordPress update_user_meta() function to assign the contents of the s2Member Custom Registration field (i.e., the ‘website’ field that the user just filled out on the Pro-Form) to the user_url field in WordPress (see the aforementioned link for an example).

You should be able to accomplish this using an s2Member Hook.

Posted: Wednesday Jun 27th, 2012 at 7:27 am #17643
Raam Dev
Username: Raam
Staff Member

Hi Tuhin,

s2Member currently uses the WordPress authentication system, so any social login plugins that work with WordPress should work with s2Member. You’ll need to install them and test to find out.

Posted: Wednesday Jun 27th, 2012 at 6:52 am #17642
Raam Dev
Username: Raam
Staff Member

Hi Kevin,

Since s2Member uses separate Pro-Forms for PayPal and Authorize.net, your only option would be to ask the user beforehand which payment gateway they want to use and then send them to the correct page. You could also get fancy with JavaScript and provide a dynamic page that allows the user to select the payment gateway and then displays the correct DIV holding the corresponding Pro-Form.

Viewing 25 replies - 1,526 through 1,550 (of 2,567 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.