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.

About: Sam Lee

Sorry, I've not written a description yet. I'll get to it soon!


My Favorite Topics

Viewing 4 topics - 1 through 4 (of 4 total)
Topic Count Last Reply
Sell content as membership and pay per view

By:  Jamey Turcic in: Community Forum

voices: 3
replies: 3

3 years, 4 months ago  Kevin Murphy

Multilingual Profile Page

By:  Sam Lee in: Community Forum

voices: 2
replies: 7

4 years, 4 months ago  Cristián Lávaque

Protect the_content() only?

By:  Synergy WP in: Community Forum

voices: 3
replies: 2

4 years, 4 months ago  Cristián Lávaque

Members Only but with Pay-per-view option

By:  Paul Smith in: Community Forum

voices: 2
replies: 4

4 years, 9 months ago  Raam Dev

Viewing 4 topics - 1 through 4 (of 4 total)

Topics I'm Subscribed To

Viewing topic 1 (of 1 total)
Topic Count Last Reply
I just purchased a single license but…

By:  apmeyer in: Community Forum

voices: 3
replies: 3

4 years, 5 months ago  Elizabeth (Support Rep)

Viewing topic 1 (of 1 total)

Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Membership and pay-per-post symbiosis

By:  Sam Lee in: Community Forum

voices: 2
replies: 3

4 years, 2 months ago  Raam Dev

Multilingual Profile Page

By:  Sam Lee in: Community Forum

voices: 2
replies: 7

4 years, 4 months ago  Cristián Lávaque

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 8 replies - 1 through 8 (of 8 total)
Author Replies
Author Replies
Posted: Thursday Nov 29th, 2012 at 11:44 am #32916
Sam Lee
Username: innocsrlee

We ended up using custom capabilites in the end, which turned out to work quite well.

Membership and pay-per-post symbiosis

  • This reply was modified 4 years, 1 month ago by  Sam Lee.
Posted: Wednesday Nov 7th, 2012 at 12:16 pm #30918
Sam Lee
Username: innocsrlee

Thanks a lot Raam, for bringing up the option of capabilities, that might actually provide an alternative.

Not wanting to generate buttons for each premium post, we could probably create PP form buttons in the template and target everything based on IDs, to differentiate between conditionals.

The issues that I’m foreseeing are:

  1. If using capability buy-now buttons, it doesn’t seem possible to limit the access time, rather it would grant perpetual access to that capability/premium content
  2. It would require membership, so each time a previous capability customer wants to purchase again, they need to login as otherwise they’ll probably add same account details again and it wont work in WP/S2Member as an account with those details already exists

To get around the first issue, I guess one could set an account limit, so that the account expires within a certain time, but that would get messy if they want to buy more capability access to other content within this timeframe.

But it’s a step forward, although I’m still not sure it’ll completely solve our issues.

On a different note, I’ve not had a chance to look into how capabilities are displayed in the member admin, but can one output a list of all the capabilities they have access to? Since we’ll use post IDs for those, we could then use the ID to get the permalink and be able to display a list of all their premium post access.

Posted: Friday Nov 2nd, 2012 at 6:07 am #30408
Sam Lee
Username: innocsrlee

We are trying to achieve this very thing. We’ve got posts/pages that are accessible to all, but with conditionals, we are hiding part of the content to anyone who is not logged in.

We would also like to sell single-post access, so that if someone views a post, reads the teaser, they can opt to buy access to that single post.

Would be really interested in knowing if there is a hack to achieve this!

Posted: Thursday Sep 6th, 2012 at 9:30 am #24315
Sam Lee
Username: innocsrlee

In terms of the other issue, of where the confirmation email links point to, that’ll be relevant to us later, as we’ll use buttons instead of pro forms (since we need to use AliPay as well).

If it’s not possible to send customers slightly different URLs (with a language variable) in the confirmation email, then we’ll have to work around it by setting up custom payment gateway return pages.

The interest in having s2Member fully and conveniently multilingual (compatible with WPML, qTranslate etc) is probably not something a lot of people would use, but it’d be a great addition to your excellent plugin!

Posted: Thursday Sep 6th, 2012 at 9:22 am #24313
Sam Lee
Username: innocsrlee

Thanks for your reply Cristián!

The penny finally dropped in terms of my problem with the profile pages and why they wouldn’t translate (the way the pro forms do). Since I had set up a different level for each language group (to be able to have custom fields in different languages), when showing the profile page, it would show all those custom fields relative to the user’s level. So if a user used the English form to sign up (level 1), they would see their custom fields in English, regardless of whether they viewed the profile page in English or Chinese.

That makes sense. What I did was to check which level a user belongs to when they get to the profile page, then redirect them to the profile page in their level’s language. Now any level 1 (English) users who try to access the Chinese profile page, simply get redirected to the English profile page.

<?php
// If user is LEVEL 1 (EN) and visit CN profile (1063), redirect to EN profile (1061)
if ( current_user_is("s2member_level1") && is_page(1063) ) {
	header( 'Location: ' . get_permalink(1061) );
// If user is LEVEL 2 (CN) and visit EN profile (1061), redirect to CN profile (1063)
} elseif ( current_user_is("s2member_level2") && is_page(1061) ) {
	header( 'Location: ' . get_permalink(1063) );
} ?>

Not an ideal setup really in terms of multiple languages, but this solves the issue of custom fields and profile pages.

Posted: Wednesday Sep 5th, 2012 at 11:49 am #24170
Sam Lee
Username: innocsrlee

I should perhaps add that the above is for Pro Forms, when users sign up for free. Level 1 is used for English, and level 2 for Chinese users. On the whole it works fine, apart from the above issues.

In the near future, we’ll require paid membership however, and will use both PayPal and AliPay. Since AliPay is buy-now-button only, we’ll set things up to use buy-now-buttons for PayPal as well.

This throws up a couple of other translation issues – some of these might be due to WPML, we’re investigating these.

But I’m also trying to translate the return-pages when coming back to the site (those grey s2Member pages) and finding that I can’t translate many of them. Looking in the plugin code, I’m seeing a lot of:

_x ("Continue", "s2member-front", "s2member");

I don’t know gettext all that well, but wondering if these aren’t wrong? Will it still work with a space between _x and ( ? Shouldn’t it be:

_x("Continue", "s2member-front", "s2member");

If I can’t translate these return pages, I might bypass them altogether with the success shortcode. What I’m not sure about though, is how it works with registration access links that are sent out by email – do these point to the s2Member return pages, or to the success-URL? If bypassing the return pages, I’d like to send people straight from PayPal/AliPay to the account creation pages (that are otherwise disabled), but I don’t know if that works for the email links as well..

Posted: Wednesday Sep 5th, 2012 at 6:02 am #24143
Sam Lee
Username: innocsrlee

Sorry, I missed the reply – thanks for your input!

This is what the registration page looks like for Chinese users: http://dl.dropbox.com/u/27590792/register.jpg

It doesn’t seem possible to edit the “Additional information”, “Security code” and some other texts, but at least all the input fields/labels are translated.

On the profile page, it currently looks like this for Chinese users: http://dl.dropbox.com/u/27590792/profile.jpg

I’ve added two forms here. At the top, it’s using:

[s2Member-Profile /]

which is what I’d like to use, but it’s showing everything in English.

At the bottom, I’ve just pasted in:

[s2Member-Pro-PayPal-Form register="1" level="2" ccaps="" desc="" success="http://oursite.com" custom="oursite.com" tp="0" tt="D" captcha="clean" update="1" /]

to test what it’s rendering. And here it’s showing the form similar to the registration page (makes sense, since it’s using the same pro form).

So for some reason, any translated fields/labels that the pro forms can handle, doesn’t seem to be translated by the s2Member-Profile function.

Hope that explains things a bit better.

Posted: Monday Jul 16th, 2012 at 4:39 am #19329
Sam Lee
Username: innocsrlee

Hi,

I just purchased a single S2Member license, but I did not receive a confirmation email with a receipt or invoice. Have been able to install plug-in successfully so account is active. Can you help me with this?

Thanks,
Mindy

Viewing 8 replies - 1 through 8 (of 8 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.