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.

Jason (Lead Developer)

Staff Member

My Latest Replies (From Various Topics)

Viewing 25 replies - 976 through 1,000 (of 1,909 total)
Author Replies
Author Replies
Posted: Sunday Jan 13th, 2013 at 1:35 pm #37282
Staff Member

Thanks for the follow-up :-)

OK. Well with that s2-hacks.php file, the log entry is wrong. It should say: “Redirecting Customer to a custom URL after modification: http://www.merrilldance.com/calendar/“, but it’s does NOT say that.

Something is off somewhere. Please submit a Dashboard login and I’ll run diagnostics for you. Please use this private contact form: s2Member® » Private Contact Form

Posted: Sunday Jan 13th, 2013 at 1:20 pm #37277
Staff Member

I have an awesome programmer by the way. He has written a plugin that works with s2m and MC. He could possibly write a plugin for this.

That’s awesome! Tell him to use our Customer Support Forums and Codex if he needs assistance with something related to s2Member’s source code. We’re happy to help.

But, only I can delete Users, so…if they tried to get another free week, I could redirect them to a special upgrade page. ??

Sorry, I’m not sure I understand completely. But if you have a systematic way of approaching this, and you catch someone doing this, I don’t see why not. This would most likely need to be coded into the custom code that you write to handle this scenario. Catch them, and then redirect them to a Post/Page which contains an s2Member payment Button (or Pro Form) where they can “pay” instead of getting in free.

Posted: Sunday Jan 13th, 2013 at 1:12 pm #37275
Staff Member

Thanks for the heads up on this thread :-)

Please help as previous message, why aren’t any emails being sent to new members with their new login details? This is in regard to using the registration form (not pro form).Why is it in pro form it sends out login details no problems but not in the registration form method?

deactivated all plugins
changed theme
installed email logger plugin — S2 not sending emails
re configured S2 from scratch

Still same problem any ideas??

Please submit a Dashboard login for me to review. It sounds to me like your PayPal IPN Integration is not yet completed, or is failing for some reason. Logging needs to be enabled on your installation as well, so you can track what’s really going on here.

Please see: Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging
Please use: s2Member® » Private Contact Form

Posted: Sunday Jan 13th, 2013 at 1:07 pm #37274
Staff Member

Thanks for the follow-up :-)

Another question. How do I prevent them for signing up for a free trial more than once. I know it tracks IP address. If a customer tries to use a different email address, will the system recognize the ip address?

s2Member’s Unique IP Restrictions work very well for Users/Members and various other access points that a registered User/Member might be using on your site. It does NOT however, offer any protection against repeated registrations on your site. If the customer chooses to register under multiple email addresses and usernames, s2Member won’t do anything to stop that.

If you wanted that type of protection, unfortunately, you would need to custom code that portion. I see this being difficult though, because IP Restrictions are really something that have to be monitored over a long term, just because many people access things from multiple computers, or from mobile devices with dynamic IPs. Preventing repeated registrations is rather difficult to accomplish in my opinion.

Posted: Sunday Jan 13th, 2013 at 1:02 pm #37272
Staff Member

Thanks for your inquiry. ~ We appreciate your patience :-)

Note. In this line of the code, please update this to use the “wp” action hook instead. The video is a little outdated now, and this hook is a more reliable option with newer WordPress installations. The “template_redirect” comes later, and “wp” is a better one to use please.
add_action ("wp", "my_custom_capabilities");

Also, I’m curious if in the above code, does redirecting to S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL mean that the user will be blocked, or meaning that they will be let through?

You’re blocking access, and instead redirecting them to your Membership Options Page, so they can pay you for access. Feel free to change that to whatever you prefer. If you have a special page that will display information more specific to this scenario, please use that instead. Just hard-code a URL of your choosing if you like.

1. Have a restricted set of pages, which I’ve already set in the S2Members settings, which are only accessible with Level 2 or higher. Level 2 is the all access level. (I know this probably should be level 1, but let’s leave it if that’s cool)

2. Be able to assign custom capabilities to users who are not Level 2, so they can access bits and pieces. Level 2 would be all access.

I see your dilemma. These two concepts really conflict with each other, because content protected at Level #2 or higher, is based on Membership “Levels”, whereas Capabilities provide more control, and grant access to specific things. So in this scenario, the fact that you have content blocked (and it requires Level #2), really goes against what you’re trying to accomplish in my opinion.

I suggest that you unblock the content from Level #2, and instead require Level #1 only. Then go back to your Custom Capabilities and do what you need to do with those. This way anyone that IS a Member (i.e. they have a Level #1 Membership), can gain access of some kind, based on your Custom Capabilties.

Now, in your Custom Capabilties, you might have two of them.

  • Custom Capability “all”, which provides access to anything/everything, so long as they ARE a paying Member at Level #1 or higher.
  • Custom Capability “limited”, which provides access to a subset of information on your site.
  • You could of course, create additional Custom Capabilities that might break down what “limited” really means (i.e. music, videos, or something more specific if you like).

So you might end up with a custom script like this:

add_action ("wp", "my_custom_capabilities");

function my_custom_capabilities ()
	{
	if(has_tag("smartbuying") && !current_user_can ("access_s2member_ccap_all") && !current_user_can ("access_s2member_ccap_limited"))
		{
		header ("Location: ".S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
		exit();
		}
	}
Posted: Sunday Jan 13th, 2013 at 12:44 pm #37270
Staff Member

Thanks for your inquiry.

~ We appreciate your patience :-)

I’m sorry. I’m not sure I completely understand the question.

I created 3 levels:
1: Users not registered
2: Free registered users
3: Premium paid members

Only Membership Level #0 is free (i.e. Free Subscribers are at Level #0). All other Membership Levels require paid access. So I’m not sure I understand this exactly. Please feel free to elaborate so that I’ll understand better.

Now, if I restrict a certain post category, to the level 2, I won’t be able to select the level 1.

So, what I need is to leave all the categories open, and having dropdown to the level 2 as default for the new posts.

s2Member does not come with a feature that would allow you to define a default value for the meta-box in the Post/Page editing station. However, you can accomplish what you need to with Category or Tag Restrictions. Have you given Tag Restrictions any thought yet? That’s one of my favorite ways to protect content.

If you’re looking for something MUCH more flexible, I recommend using Custom Capabilities instead of Levels.
Video » s2Member (Custom Capabilities)

Posted: Sunday Jan 13th, 2013 at 12:33 pm #37268
Staff Member

So will the Pro Forms work even if I dont have Paypal Pro….I mean for my other levels. I only have Paypal standard.

That is correct. Free Registration Forms will work regardless.

However, the use of PayPal Pro Forms to charge customers for paid access, does require that you have a PayPal Pro account, in order to facilitate on-site credit card processing through a Pro Form. So if you’re planning to charge for access to Level #2, you will need to use a PayPal “Button” instead of a Pro Form. Or, you can read over this article about how to get Pro Forms working without a PayPal Pro account, via Express Checkout (free).

See: http://www.s2member.com/faqs/#s2-faqs-paypal-pro-not-required

Posted: Sunday Jan 13th, 2013 at 12:27 pm #37267
Staff Member

Thanks for your patience.

FYI – we updated to the latest version of s2m but the problems have not been corrected. Perhaps they are related – since paid (level 1 ) members are being interpreted by s2m as level 0 they are getting the expired/renew page. Perhaps that is why the custom thank you page redirect is not working either – because successful registrants are being interpreted as level 0 members?

No, I really don’t think this is the issue.

After a careful review of your report here, I suspect the following issue.

You’ve reported the sale is going through (reflected by your log entries), but the success="" attribute is not working, and the customer is really unable to gain the appropriate access once the sale is completed. So the entire process is not fully functional on your installation yet.

It appears to me that your site is still in TEST mode. Do you require any cookie in order to access this site at the present time (i.e. is the site locked down from public access in any way)?

The underlying issue I believe, is that s2Member’s post-processing routines are not being called upon, due to a connection failure that occurs between the Pro Form, and s2Member’s core PayPal processor, which is what lies underneath all payment gateways integrated with s2Member (including Authorize.Net Pro Forms).

If you look in your logs directory, you should also have a file with this name:
/s2member-logs/paypal-ipn.log

If you don’t (which would be my guess), that’s the problem. You should have this file too.

Please submit a Dashboard login privately so I can run diagnostics on your installation. I’ll be happy to help you resolve this. Please use: s2Member® » Private Contact Form

Posted: Sunday Jan 13th, 2013 at 12:00 pm #37264
Staff Member

Thanks for reporting this important issue.

In the log entry you posted, an existing User/Member is making a purchase. So this is NOT a new customer, it’s an upgrade for an existing User on your site. The success="" attribute only deals with NEW paying customers, it is not designed to support upgrades, which should really lead the customer back to their account.

Dashboard -› s2Member® -› PayPal® Buttons -› Shortcode Attributes (Explained)
success="" Success Return URL ( optional ). s2Member handles this automatically for you. However, if you would prefer to take control over the landing page after checkout ( i.e. your own custom Thank-You Page ), you can. If supplied, this must be a full URL, starting with http://. Note, s2Member will NOT use this value if an existing account holder is being modified. s2Member handles account updates ( i.e. billing modification ) in a more dynamic way. Your Success Return URL is only applied to (new) Customers.

That being said, s2Member does expose a filter for this scenario that you’ve encountered. If you’d like to customize the URL that a customer is redirected to upon modifying their existing account, please follow the instructions below.

Please create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
(NOTE: these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins)
(See also: http://www.s2member.com/kb/hacking-s2member/)

Please let us know if problems persist :-)

Posted: Sunday Jan 13th, 2013 at 11:46 am #37263
Staff Member

Thanks for the follow-up :-)

Great! Please update this thread with a short note letting me know it’s been sent. Thanks!

Posted: Sunday Jan 13th, 2013 at 11:43 am #37259
Staff Member

Awesome. That’s great to hear.

Yes, please let us know if you have any trouble with the other issue.
Feel free to create a new topic for that. Thanks!

Posted: Sunday Jan 13th, 2013 at 11:36 am #37256
Staff Member

Thanks for the follow-up :-)

I never did gain access to your Dashboard. The login credentials that I have for your hosting account function properly, and I was able to assist you with only that before. However, the Dashboard credentials that I have are still not working properly. If you’d like to check those again and send us another private email, please do.

That being said, this is pretty simple to accomplish..

With s2Member Pro installed, go to s2Member -> Other Gateways, and activate PayPal Pro. Refresh the page and you’ll have a PayPal Pro Forms option in the s2Member menu on the left side.

It’s fine if you don’t have a PayPal Pro account yet, because Free Registration Forms work regardless. You’re not actually selling anything with a Free Registration Form, so no payment gateway needs to be integrated for that to work properly.

Posted: Sunday Jan 13th, 2013 at 11:28 am #37254
Staff Member

Thanks for reporting this important issue.

It sounds to me like these are byte-range requests coming from mobile devices. When you’re trying to reach a large audience and support multiple devices, I would strongly encourage you to integrate s2Member with both Amazon S3 and CloudFront for maximum compatibility where audio/video are concerned.

From what you’ve described, it sounds to me like a byte-range request is being performed by a mobile device, and since s2Member’s default WordPress-based file server does not support byte-range requests, the file is being served again from the beginning, instead of from a specific byte-range.

In other words, the mobile device is not trying to download the file ONE time, it’s trying to download it multiple times, but starting at different byte-ranges each time, until it gets the entire file. s2Member’s default file server does not support this yet. However, it is supported by s2Member through Amazon CloudFront integration.

Dashboard -› s2Member® -› Download Options -› Amazon® S3/CloudFront CDN Storage

This has only recently come to our attention, that mobile devices have started making more and more requests like this. While we have every intention of updating s2Member’s default file server to support this, we’re not there yet. Even so, I would still encourage you to integrate with CloudFront for the best experience, from both a site owner’s perspective, and also from a customer’s perspective. CloudFront is going to be faster, more reliable, and more compatible across different kinds of devices. And, since s2Member is already integrated with CloudFront, it’s really a great way to go.

Or, if you’d prefer to wait, we’re working to release an update that adds byte-range support to the default WordPress-based file server that comes with s2Member. Hopefully our next update will resolve this for you.

Posted: Sunday Jan 13th, 2013 at 11:07 am #37251
Staff Member

Thanks for the follow-up :-)

I want it to be a completely free trial. Having to create a Paypal acct for a free trial will turn some away. After the one week free trial, then they can decided if they want to become a monthly subscriber and then go through the payment stuff. I can’t subscribe to Paypal Pro right now, but hope to in the future.

I would suggest that you use s2Member’s Pro Forms for this. Specifically, the Free Registration Pro Form. You’ve probably seen this already. You can generate a Free Registration Pro Form from your Dashboard here.

Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms

What you might NOT realize, is that a Free Registration Pro Form can be configured to terminate access automatically, after X number of days, weeks, months, years. Please take a look here in your Dashboard, at the Shortcode Attributes that are available to use.

Dashboard -› s2Member® -› PayPal® Pro Forms -› Shortcode Attributes (Explained)

For example, in your case, you need a Free Registration Form that allows people to come in at a Membership Level of (let’s say Level #1) but only for 1 week. If they decide to purchase in that week, they will get bumped up to Level #2, and the automatic expiration will be nullified, because they’ve paid you now. If they don’t, they will simply lose Membership access, and be demoted automatically back down to a Free Subscriber at Level #0.

So, the outline I’m suggesting is as follows…

  • Level #1 will represent your free trial Members. Anyone at this Level is in their trial period. They ARE a Member, but only for a short time (1 week).
  • Level #2 will represent your paid Members. These are members who upgraded during their trial, or after their trial expired. They’ve now moved up to Level #2, a full Member now.
  • Level #0 will represent your Free Subscribers. These are people who have been demoted back down to Level #0, after having completed their trial period; and perhaps they’ve not paid for additional access yet.

Here is your Free Registration Form Shortcode that allows 1 week at Level #1.

[s2Member-Pro-PayPal-Form register="1" level="1" ccaps="" desc="Signup now, it's Free!" custom="www.example.com" tp="1" tt="W" captcha="clean" /]

Be sure to change custom="www.example.com" to your own domain name.

You can create a Pro Form for Membership Level #2 Access here, and charge whatever you like.
Dashboard -› s2Member® -› PayPal® Pro Forms -› Membership Level # Forms

I would also like to have a page for ONLY those whose free trial has expired, that they are redirected to when they login in. They would be demoted to a level 0 member after their trial is over.

If you need to display certain messages, or certain types of forms, or change prices, perform redirections, etc. depending on what Level a Member is currently at, please use Conditionals for this. s2Member supports both Simple Shortcode Conditionals, and it also supports Advanced PHP Conditionals.

Once you understand how Conditionals work, you can setup a redirection for Members that login and hit your Login Welcome Page (as configured with s2Member). Upon landing on your Login Welcome Page, you can have a Conditional that detects they’re at Level #0 and redirect them to a page of your choosing. Or, perhaps you could just show them something different on the Login Welcome Page. That would be easier it seems to me.

See: Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals
See: Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals

Please let me know if you have any other questions/concerns.

Posted: Sunday Jan 13th, 2013 at 10:44 am #37250
Staff Member

Thanks for the follow-up :-)

You can access this via PHP using the s2Member global options array.

Posted: Sunday Jan 13th, 2013 at 10:39 am #37249
Staff Member

Thanks for the follow-up :-)

The code for the [s2Member-Profile /] Shortcode is in this file.
/s2member/includes/classes/sc-profile-in.inc.php

There are several hooks/filters in that file you could use to inject custom snippets of your own before/after each field that is being edited. I would warn you NOT to make any changes to this file directly, because that will make it more difficult for you to upgrade your installation of s2Member in the future, as new versions are released. Instead, I suggest using the hooks/filters in that file to add what you need, if at all possible.

Please take a look at the instructions we’ve provided about how to hack s2Member :-)
Knowledge Base » Hacking s2Member® Via Hooks/Filters

Posted: Sunday Jan 13th, 2013 at 10:24 am #37247
Staff Member

Thanks for your inquiry.

~ We appreciate your patience :-)

1. I want my site to be a membership site, with 2 levels of membership – free and paid. The main aim of my site is to offer paid members technical advice via a Q&A. The way I want it to work is for paying members only to be able to view the Q&As, a paying member can ask a question but ONLY I can respond to the question.
Does s2Member support this, and what Q&A plugin would best suit my needs?

I can’t offer any specific advice about a Q&A plugin, because really, I’ve not spent any length of time testing a bunch of existing plugins for something like this. Generally speaking, I would suggest building something like this for yourself, or with help from a freelancer at sites like Elance.com, where you might find someone you can hire to help with this. I say that, simply because it does’nt sound like anything really complex that you need (e.g. not real expensive), but you ARE looking for some specific functionality, and having a coder helping you, will give you that.

s2Member can most definitely be integrated with things like this. Aside from basic Restriction Options in the Dashboard, s2Member also provides both Simple Conditionals, and Advanced PHP Conditionals. We call them advanced, because most aspects of s2Member are point and click. However, the Advanced Conditionals are NOT hard to work with either.

For instance, if you have a particular section of your site that needs to be protected (i.e. only YOU can access the form that allows you to answer the question, or something else like this, even if it’s related to a User/Member), you would wrap that section of your site (in the code), with a Conditional expression.

<?php if(current_user_is('administrator')){ ?>
	Display the form to post an answer to this question.
<?php } else if(current_user_can('access_s2member_level1')){ ?>
	Display a box where the customer can ask a question.
<?php } ?>
You will find all of the details and documentation on this inside your Dashboard, even in the free version of s2Member. References to this documentation are inside the Dashboard of your WordPress installation.

Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals
Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals
Dashboard -› s2Member® -› API / Scripting -› Advanced Query Conditionals

All of s2Member’s API Functions are documented online for developers:
http://www.s2member.com/codex/stable/s2member/api_functions/package-summary/

2. Subscription options: I want an introductory offer where new members sign up to a reduced rate for their first year, but to pay monthly. This will allow me to increase the rate after the first year. At the moment it appears that the Paypal options are for ongoing monthly subscription, without a fixed term.

s2Member supports a whole bunch of different options/scenarios, above and beyond what you see in the UI where the PayPal Button Generator is. Please take a look down below in that same page of your Dashboard, at the Shortcode Attributes. s2Member can certainly handle fixed-term subscriptions for you.

See: Dashboard -› s2Member® -› PayPal® Buttons -› Shortcode Attributes (Explained)

That being said, it is NOT currently possible to start your customers on a monthly payment plan, where the first year is billed at one rate, and the second year is billed at another. Actually, you could do this, but it would require the customer to stop paying for the original subscription, and then signup again under the new terms for the second year.

If you’re looking to make this a seamless transition from the first year to the second, where you’re simply changing the price, it’s not possible to do this with s2Member or with s2Member Pro. This is due to limitations in the payment gateway APIs that s2Member integrates with, and can be attributed mostly to consumer safety. Payment gateways generally don’t like you to setup a billing plan and then change the price on a customer, because that leads to chargebacks and confusion in some cases.

3. I’m having trouble testing my site, as I can only log on as 1 user (admin). I want to be able to view the site as a visitor, a free member and a paid member. Is there a way of doing this?

You would just create users manually from the Dashboard so you can login as someone else. From your Dashboard, go to: Users -> Add New, and give them a Role, of whatever Level you want to test as. It’s helpful to setup usernames like “subscriber”, “level1”, “level2”, so you can just login with those test accounts and view things from their perspective.

Please let us know if you have any other questions/concerns.

Posted: Sunday Jan 13th, 2013 at 9:54 am #37243
Staff Member

Thanks for the follow-up :-)

I’m not sure I completely understand the question, because the SQL query is in that file. So you can just remove the LIMIT from the end of that SQL query and run it in phpMyAdmin if you like. Or, if you want to just remove the LIMIT from the end of the SQL query in that file, you’ll have s2Member Pro pulling ALL members without any limit, and you would not need to use phpMyAdmin.

I’ll do the best I can to answer your question here though.

This example assumes that you have a database prefix of “wp_”, which is the default DB prefix.

SELECT `wp_users`.`ID` FROM `wp_users`, `wp_usermeta` WHERE `wp_users`.`ID` = `wp_usermeta`.`user_id` AND `wp_usermeta`.`meta_key` = 'wp_capabilities'

This example assumes the database prefix is “nnn_”, instead of the default prefix.

SELECT `nnn_users`.`ID` FROM `nnn_users`, `nnn_usermeta` WHERE `nnn_users`.`ID` = `nnn_usermeta`.`user_id` AND `nnn_usermeta`.`meta_key` = 'nnn_capabilities'

This is the SQL query that s2Member Pro uses, which simply pulls all of the User IDs. Then s2Member iterates these IDs and collects/formats additional details for each User as it constructs your export file. If you want more information for each user via phpMyAdmin, you can modify the query to SELECT all columns in the wp_users table, using an asterisk.

SELECT `wp_users`.* FROM `wp_users`, `wp_usermeta` WHERE `wp_users`.`ID` = `wp_usermeta`.`user_id` AND `wp_usermeta`.`meta_key` = 'wp_capabilities'

BTW We’re MORE than ready–VERY MORE THAN READY– to pay a reasonable monthly fee for direct, fast support. And I doubt we’re alone in this. From my last year living in the s2Member forums (my almost daily home away from home), I KNOW I’m not alone. Just think about “additional revenue stream,” and how the support given there would end up being much more direct and clean answers to very specific questions that could be paid for by s2Member customers and end up as VERY HELPFUL answers available to the world.

I will certainly give this some thought/consideration. Thanks for the feedback!

Please let us know if problems persist :-)

Posted: Sunday Jan 13th, 2013 at 9:38 am #37241
Staff Member

Thanks for your patience.

r1) These courses (events) would require on-line registration and payment.

I will leave the actual course registration itself, and how you present the course itself, out of the equation here. Except to say that I’ll assume that your Course/Event will be accessed from either a Post or Page that is created in WordPress one way or another. There are many WordPress plugins available for this type of thing, or if you plan to create one for yourself, that woud be fine too. s2Member will only help you restrict and sell access to this functionality, it’s not going to provide the actual course or events manager for you.

So let’s assume that you have a Post/Page you need to sell access to, which is where a customer gains entry to the Course/Event. As I understand it, this Post/Page would be sold through s2Member, to either a new or existing User/Member of the site, using s2Member’s “Specific Post/Page Access” functionality.

If you need to sell this access at different rates, depending upon the current status of a User/Member (i.e. whether they are already paying you for ongoing membership access or not), you would accomplish this using s2Member Simple Shortcode Conditionals.

All of this stuff is documented within s2Member, but I’ll post a quick example for you here.

[s2If current_user_can(access_s2member_level1)]
	The discounted rate for existing Members at Level #1 or higher.
	[s2Member-Pro-PayPal-Form ... sp="1" ids="123" ra="5.00" /]
[/s2If]

[s2If current_user_cannot(access_s2member_level1)]
	The normal rate for those who are NOT yet Members of the site.
	[s2Member-Pro-PayPal-Form ... sp="1" ids="123" ra="10.00" /]
[/s2If]

Here are the relevant areas in your Dashboard with s2Member installed.
Dashboard -› s2Member® -› Restriction Options -› Specific Post/Page Access Restrictions
Dashboard -› s2Member® -› PayPal® Pro Forms -› Specific Post/Page (Buy Now) Forms
Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals

There is also a video tutorial here that covers this additional layer of functionality.
http://www.s2member.com/videos/ED64B278374AB72F/

r2) They are open to both members and non-members.

I considered this above.

r3) Members would be charged a lower rate.

I considered this above.

r4) There would only be a certain number of spaces available for each course.

This is something you would need to add a counter for. It’s not something that comes with s2Member by default, but it’s not anything difficult to implement either. You can wrap the example I gave above, with an additional check to see how many people have already purchased this in the past. If it exceeds the number of slots you allow, you would display a message, instead of allowing another purchase.

When you get to this point, please let us know if you need further assistance. s2Member comes with API Notifications that make this easy to accomplish with just a couple lines of code, and we can certainly help with that. I wish you luck. Please let us know if you have any additional questions/concerns.

Posted: Sunday Jan 13th, 2013 at 9:20 am #37240
Staff Member

Investigation completed – thanks for your patience.

I just ran the same test you did, together with the shortcode conditionals as well.

<?php
if(current_user_is("subscriber"))
	echo 'You ARE a Free Subscriber at Level #0.';
 
else if(current_user_is("s2member_level1"))
	echo 'You ARE a Member at Level #1.';
 
else if(current_user_can("access_s2member_level2"))
	echo 'You DO have access to content protected at Level #2.';
	# But, (important) they could actually be a Level #3 or #4 Member;
	# because Membership Levels provide incremental access.
?>

[s2If current_user_is(subscriber)]
You ARE a Free Subscriber at Level #0.
[/s2If]
[s2If current_user_is(s2member_level1)]
You ARE a Member at Level #1.
[/s2If]
[s2If current_user_can(access_s2member_level2)]
You DO have access to content protected at Level #2.
[/s2If]

If I login as a Free Subscriber, I get:

You ARE a Free Subscriber at Level #0.
You ARE a Free Subscriber at Level #0.

If I login as a Level #1 Member, I get:

You ARE a Member at Level #1.
You ARE a Member at Level #1.

In short, I’ve been unable to reproduce this on a clean WordPress installation. It sounds to me like your Roles/Capabilities might have become corrupted in some way. Or, I suppose it’s possible that you have another theme/plugin conflicting with s2Member in some way?

Possible solutions.

  • Go to your Dashboard under this section and click the Reset Roles/Capabilities Button.
    Dashboard -› s2Member® -› General Options -› Membership Levels/Labels
  • Test this on a brand new test installation of WordPress, running the default theme, with only the s2Member plugin active. Can you reproduce it there? I was unable to do this.

Please let us know if problems persist :-)

Posted: Sunday Jan 13th, 2013 at 4:45 am #37236
Staff Member

Thanks for the follow-up :-)

I’m continuing to investigate this. Thanks for your patience.

Could this be related to new S3 or CloudFront versions security? When I set up my s2Member CloudFront integration I copied the contents of my CloudFront key pair’s [*.pem] file into the text field without the “—–BEGIN RSA PRIVATE KEY—–” and “—–END RSA PRIVATE KEY—–” parts. This method worked for me on my previous setup.

No, that’s fine to do that.

QUESTION: Is the Amazon S3 Bucket (tied to your s2Member installation), or the CloudFront Distributions (tied to your s2Member installation), or any other part of your Amazon Console or API being accessed by another service or system? For instance, how do you access the Amazon S3/CloudFront Console when you’re working with your files? Do you use the Amazon website, or another software application? Do you have any other websites interacting with these files?

Posted: Sunday Jan 13th, 2013 at 4:40 am #37235
Staff Member

You’re VERY welcome!

I’ve addressed your other ticket, so we can continue our conversation there on that topic.
http://www.s2member.com/forums/topic/minimum-payment-for-pay-what-you-want/#post-37227

Posted: Sunday Jan 13th, 2013 at 4:38 am #37234
Staff Member

Thanks for reporting this important issue.

Please submit a copy (or sample) of the export file you’re actually working with, so we can understand the problem better. It sounds like there could be a problem on your installation, so if we see the export file that you’re dealing with, it might shed some light. Thanks!

Please submit the export CSV file privately.
s2Member® » Private Contact Form

Posted: Sunday Jan 13th, 2013 at 4:34 am #37233
Staff Member
Thanks. I’m reviewing this now and I will get back to you shortly.
~ Thanks for your patience.
Posted: Sunday Jan 13th, 2013 at 4:30 am #37231
Staff Member

Thanks for the follow-up :-)

Sure :-) Thanks again for reporting that.

One other note, and forgive me if this is apparent somewhere else, as I’m just digging in. The CCBill buttons that are generated from the button generator are not very attractive and they both look identical for the two membership levels I set up. Can I create my own buttons and have them serve the same function? What are my options?

Yes. Please check this section of your Dashboard for full details.
Dashboard -› s2Member® -› ccBill® Buttons -› Shortcode Attributes (Explained)

Excerpt from that section…
image="default" Button Image Location. Or use your own custom button image :-)
Viewing 25 replies - 976 through 1,000 (of 1,909 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.