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,451 through 1,475 (of 2,567 total)
Author Replies
Author Replies
Posted: Thursday Jul 5th, 2012 at 4:25 am #18364
Raam Dev
Username: Raam
Staff Member

Hi Charles,

If the member signs up using a free registration form (Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms), their account will never expire (i.e., EOT). (You can override this by creating a Free Registration form that only gives access for a limited time-frame; see the tip at the bottom of the form generator.)

s2Member only EOTs an account when it receives an IPN message from a payment gateway for that account indicating it should expire for some reason (payment failure, end of term, cancellation, etc.), or if you’ve sold the member something where you specified they should only have access for a limited amount of time (this can be set when generating the forms).

If you want to manually set when an account should expire, you can do so by entering the date into the Automatic EOT Time field on their profile:

EOT = End Of Term. ( i.e. Account Expiration / Termination. ).

If you leave this empty, s2Member will configure an EOT Time automatically, based on the paid Subscription associated with this account. In other words, if a paid Subscription expires, is cancelled, terminated, refunded, reversed, or charged back to you; s2Member will deal with the EOT automatically.

That being said, if you would rather take control over this, you can. If you type in a date manually, s2Member will obey the Auto-EOT Time that you’ve given, no matter what. In other words, you can force certain Members to expire automatically, at a time that you specify. s2Member will obey.

Valid formats for Automatic EOT Time:

mm/dd/yyyy
yyyy-mm-dd
+1 year
+2 weeks
+2 months
+10 minutes
next thursday
tomorrow
today

* anything compatible with PHP’s strtotime() function.

Posted: Thursday Jul 5th, 2012 at 4:16 am #18363
Raam Dev
Username: Raam
Staff Member

Hi Charles,

Yes, this is possible through the use of Custom Capabilities. You can give pieces of content (i.e., posts or pages) specific Custom Capabilities and then sell those capabilities to existing users through the Capability Buy Now form (Dashboard -› s2Member® -› PayPal® Pro Forms -› Capability (Buy Now) Forms). Whatever Custom Capabilities the user has on their account will determine what content they’re allowed to access.

Please see the video below for more information on Custom Capabilities.

<Embed Playlist>
Posted: Thursday Jul 5th, 2012 at 4:13 am #18361
Raam Dev
Username: Raam
Staff Member

Hi Jim,

The [s2If] shortcode was a feature added by s2Member for very basic conditionals. I don’t believe it’s possible to check a value inside it the way you want to.

However, you can certainly install a plugin like Exec-PHP and then use a snippet of PHP code in place of the [s2If] shortcode:

<?php if (S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED == 0) { ?>
Sorry you're not allowed to download.
<?php } else { ?>
Yes, downloads are allowed.
<?php } ?>
Posted: Thursday Jul 5th, 2012 at 4:07 am #18358
Raam Dev
Username: Raam
Staff Member

Hi Hamid,

We do not currently have a points or credits system and I don’t know of any immediate plans to add such a feature. However, if there is enough interest we will certainly consider it for a future update.

Posted: Thursday Jul 5th, 2012 at 4:05 am #18357
Raam Dev
Username: Raam
Staff Member

Hi Charles,

s2Member Pro offers the Pro-Coupon feature (Dashboard -› s2Member® -› Pro Coupon Codes), which allows you to create coupon codes that apply a discount to a membership upon checkout. However, those coupons require a minimum purchase of $0.01 — they cannot be used to create “free” memberships.

If you want to offer a voucher code that provides access to a free membership, you can do so with a little custom work. What you’d do is create a page where you display a free registration form (Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms). Then, you add some PHP code to that page that looks for the presence of a pre-defined voucher code.

Please see this KB article for more information on this: Knowledge Base » Offering a Free Coupon Code (100% Discount)

It sounds like you want to generate multiple voucher codes that other members can give out, as well as package those voucher codes into a membership package. This would require maintaining a database of voucher codes and marking when they’ve been used.

While s2Member doesn’t have this feature, the tools for creating such an extension to the plugin are there and we make all the plugin source code available. If this is a crucial feature, you may want to hire a programmer to add it in for you. We recommend jobs.wordpress.net.

Posted: Thursday Jul 5th, 2012 at 3:54 am #18355
Raam Dev
Username: Raam
Staff Member

Hi Tomer,

We don’t currently have a video tutorial for setting up Clickbank, but we will consider making one.

Regarding Clickbank integration: There is a lot of documentation inside the plugin. You’ll first need to enable the Clickbank payment gateway in Dashboard -› s2Member® -› Other Gateways. Then, navigate to Dashboard -› s2Member® -› ClickBank® Options and start filling in the settings in Account Details and follow the instructions in IPN Integration.

Posted: Thursday Jul 5th, 2012 at 3:48 am #18354
Raam Dev
Username: Raam
Staff Member

Hi Marc,

Try setting PayPal to use the WooCommerce plugin IPN URL. As explained in the multiple site configurations link, s2Member sets the IPN URL automatically when you generate a PayPal button/form from within s2Member. So, even if you set PayPal to use the WooCommerce plugin IPN URL, your s2Member PayPal buttons should still work properly.

Posted: Thursday Jul 5th, 2012 at 3:40 am #18353
Raam Dev
Username: Raam
Staff Member

Hi Alexander,

Unfortunately s2Member is not designed to support multiple merchant accounts in the way that you described. You can only have one merchant account.

Posted: Thursday Jul 5th, 2012 at 3:30 am #18352
Raam Dev
Username: Raam
Staff Member

Hi Fabrice,

Regarding translations, please see Pre Sale FAQs » Can s2Member® be translated into other languages?.

Regarding providing limited access: Yes, s2Member supports this through the Specific Post/Page access feature (see Dashboard -› s2Member® -› PayPal® Buttons -› Specific Post/Page (Buy Now) Buttons).

Posted: Wednesday Jul 4th, 2012 at 8:47 am #18290
Raam Dev
Username: Raam
Staff Member

Hi Joe,

What you’re describing sounds like a shopping cart, where members add multiple things to their cart with certain items discounted if they’re already purchasing other items. s2Member was originally designed as a membership plugin using the subscription-model. However, we’ve added features to account for the needs of selling individual items or additional “capabilities” on top of memberships. We call this feature Custom Capabilities.

You can sell individual Custom Capabilities on a one-time basis, or sell them packaged together with a membership. However, if you want a shopping cart type system that discounts specific Custom Capabilities depending on which membership the user is purchasing, you’ll need to write the necessary PHP code for that customization. (All of the source code is available and we provide many hooks/filters for customization.)

Posted: Wednesday Jul 4th, 2012 at 8:36 am #18289
Raam Dev
Username: Raam
Staff Member

Hi Mike,

It looks like another support member reset your password and sent you an email with the new details. Let us know if you’re still unable to login.

Posted: Wednesday Jul 4th, 2012 at 8:32 am #18288
Raam Dev
Username: Raam
Staff Member

How does this relate to s2Member?

Posted: Wednesday Jul 4th, 2012 at 8:31 am #18286
Raam Dev
Username: Raam
Staff Member

Great! Glad to hear it. :)

Posted: Wednesday Jul 4th, 2012 at 8:30 am #18285
Raam Dev
Username: Raam
Staff Member

Hi Pete,

This is not an s2Member thing: you’d need to modify your theme template (probably comments.php) and add target=”_new” to the anchor tag that surrounds the PHP code that outputs the users name.

Posted: Wednesday Jul 4th, 2012 at 8:27 am #18284
Raam Dev
Username: Raam
Staff Member

Glad I could help! :)

Posted: Wednesday Jul 4th, 2012 at 8:26 am #18283
Raam Dev
Username: Raam
Staff Member

Hi Samia,

You can drip content to specific Levels (S2MEMBER_CURRENT_USER_ACCESS_LEVEL), but if the user signed up for Level 1, then upgraded to Level 2, and then again to Level 3, there is no way to check what date the user upgraded to Level 2 or Level 3.

Posted: Wednesday Jul 4th, 2012 at 8:21 am #18281
Raam Dev
Username: Raam
Staff Member

Hi Eric,

You’d need to use a hook/filter to achieve that. This should point you in the right direction. If you need further help with this, I suggest hiring a developer. This type of custom coding is outside the scope of our support policy.

Posted: Wednesday Jul 4th, 2012 at 8:14 am #18279
Raam Dev
Username: Raam
Staff Member

Hi Stephen,

Thank you for the reply. I did a bit more research and I was indeed wrong: the s2Member Custom Capabilities are in fact built upon the WordPress Capabilities. However, the documentation states that “Custom Capabilities are an extension to a feature that already exists in WordPress®”.

s2Member has extended its use of Custom Capabilities to work on a per-user basis. The WordPress use of Capabilities is limited to Roles (at least from a UI standpoint; I checked the WordPress documentation and it also makes no mention of assigning capabilities to users)

By being able to assign individual capabilities to users, s2Member allows you to effectively sell features on a one-time basis, adding and removing Custom Capabilities as necessary.

s2Member’s UI does not allow you to assign its Custom Capabilities to Roles; it expects that you will be using them on a per-user basis. That’s why when you generate a Pro-Form that includes Custom Capabilities, you need to explicitly state that you want to remove all existing Custom Capabilities from the user signing up (or upgrading) with the form before adding the new ones (if that’s actually what you want to happen).

If you click the question mark next to the Custom Capabilities box on one of the Pro-Form generators (Dashboard -› s2Member® -› PayPal® Pro Forms), here’s what it says:

Optional. This is VERY advanced.
See: s2Member -> API Scripting -> Custom Capabilities.

*ADVANCED TIP: You can specifiy a list of Custom Capabilities that will be (Added) with this purchase. Or, you could tell s2Member to (Remove All) Custom Capabilities that may or may not already exist for a particular Member, and (Add) only the new ones that you specify. To do this, just start your list of Custom Capabilities with `-all`.

So instead of just (Adding) Custom Capabilities:
music,videos,archives,gifts

You could (Remove All) that may already exist, and then (Add) new ones:
-all,calendar,forums,tools

Or to just (Remove All) and (Add) nothing:
-all

I hope this clears things up a bit! :)

Posted: Wednesday Jul 4th, 2012 at 7:48 am #18274
Raam Dev
Username: Raam
Staff Member

Hi Joshua,

s2Member makes no distinction around where the transactions come from. If the payment gateway supports transactions from China and s2Member supports the payment gateway, then you can accept payments from China with s2Member using that gateway.

With regards to Alipay: s2Member only supports Buy Now transactions. Recurring billing with Alipay is not supported.

Posted: Wednesday Jul 4th, 2012 at 7:35 am #18272
Raam Dev
Username: Raam
Staff Member

Hi Joel,

Here’s a tricky way around this:

1) Create a Custom Registration Field with the Unique ID middle_name. Set “Field Required?” to no and “Allow Profile Edits” to No (uneditable & totally invisible, both during & after registration)

2) Edit the necessary Pro-Form template in plugins/s2member-pro/includes/templates/forms/ and add the following between the First Name and Last Name sections:

<div id="s2member-pro-paypal-registration-form-middle-name-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-registration-form-div s2member-pro-paypal-form-middle-name-div s2member-pro-paypal-registration-form-middle-name-div">
	<label for="s2member-pro-paypal-registration-middle-name" id="s2member-pro-paypal-registration-form-middle-name-label" class="s2member-pro-paypal-form-middle-name-label s2member-pro-paypal-registration-form-middle-name-label">
		<span>Middle Name</span><br />
		<input type="text" maxlength="100" autocomplete="off" value="" name="s2member_pro_paypal_registration[custom_fields][middle_name]" id="s2member-pro-paypal-registration-custom-reg-field-middle-name" aria-required="false" tabindex="11" class="s2member-pro-paypal-custom-reg-field-middle-name s2member-pro-paypal-registration-custom-reg-field-middle-name" />
	</label>
</div>

Now when that Pro-Form loads and the user submits their Middle Name, it will be stored in the Middle Name custom registration field.

If you want this to show up the same way when you use the [s2Member-Profile /] shortcode, please see this thread.

Posted: Wednesday Jul 4th, 2012 at 6:56 am #18264
Raam Dev
Username: Raam
Staff Member

Hi Toni,

There are various ways of handling that scenario. The easiest way is to have separate pages for your Pro-Forms (for each payment option), then on your Membership Options Page show links that allow the user to select the correct payment option and go to that payment page.

If you want to dynamically control what shows up on the Membership Options Page (for example, user tries to visit content that requires Level 2 membership and when they arrive at the Membership Options page you show them the payment form for Level 2 access), then you can use the Membership Options Page Variables feature (see Dashboard -› s2Member® -› API / Scripting -› Membership Options Page Variables (MOP Vars)). The code examples at the bottom of that page explain the PHP you’d need to use.

This thread also explains how this can be set up to catch specific URLs and redirect to another page.

You will need to install the Exec-PHP Plugin to use PHP on your Membership Options Page.
Posted: Wednesday Jul 4th, 2012 at 5:48 am #18256
Raam Dev
Username: Raam
Staff Member

Hi Zoe,

That error message comes from reCAPTCHA, not s2Member. If you’re receiving that error even when you’re using valid reCAPTCHA keys, then I suspect a problem with reCAPTCHA or the communication between your server and their server.

For a little background, please see this thread where the error was originally discussed.

Regarding the redirection after payment: Looking at your Pro-Form shortcode, you’re not using the success= attribute to tell s2Member where the Thank You page is. Please try adding that attribute with the full URL to the thank you page.

Posted: Wednesday Jul 4th, 2012 at 5:35 am #18253
Raam Dev
Username: Raam
Staff Member

Hi Maxim,

You need to put each option/value pair on a new line like this:

US|United States|default
CA|Canada
VI|Virgin Islands (U.S.)
Posted: Wednesday Jul 4th, 2012 at 5:29 am #18252
Raam Dev
Username: Raam
Staff Member
Posted: Tuesday Jul 3rd, 2012 at 8:07 am #18187
Raam Dev
Username: Raam
Staff Member

Glad to hear you solved it, Brian! :)

Viewing 25 replies - 1,451 through 1,475 (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.