Bruce

My Latest Replies (From Various Topics)
Author | Replies |
---|---|
Author | Replies |
Posted: Thursday Dec 6th, 2012 at 3:55 pm #33759 | |
![]() |
|
Hi Abner, When the user enters the coupon, you should do the following (replacing the ccap “test” with whatever ccap you’re using):
When the user presses the button and should no longer have access, do this (again, replacing “test”):
Make sure to use something like this where you have your form to input the coupon (replace “test”):
|
|
Posted: Thursday Dec 6th, 2012 at 3:48 pm #33756 | |
![]() |
|
Hi Claire, You may be able to do through Dashboard -› s2Member® -› API / Notifications -› Payment Notifications if your business directory plugin has an API via URL that you can use. Otherwise, you may want to set up a hack through the |
|
Posted: Thursday Dec 6th, 2012 at 3:44 pm #33754 | |
![]() |
|
Hi Elizabeth, This article may be helpful: Knowledge Base » Offering a Free Coupon Code (100% Discount) |
|
Posted: Thursday Dec 6th, 2012 at 3:42 pm #33753 | |
![]() |
|
Great, glad to hear it.
When you create your Pro Form / Button for access with a trial, add the Custom Capability “trial” to the shortcode, so that you can differentiate between users that signed up with a trial, and those that did not. You can then use the code that I posted to subtract 14 days from the s2Member Paid registration time for users that signed up with a trial. |
|
Posted: Thursday Dec 6th, 2012 at 3:38 pm #33751 | |
![]() |
|
Hi Marc, What exactly shows up when you use a shortcode? Does the plain-text shortcode show up, or is there nothing at all? Try following these Knowledge Base » Common Troubleshooting Tips. |
|
Posted: Thursday Dec 6th, 2012 at 3:36 pm #33749 | |
![]() |
|
Hi Randy, s2Member can be supported by any theme that follows WordPress standards and supports the standard WordPress 3.1+ features (which leaves you with a LOT of themes). On Themeforest, you should not run into any problems at all with incompatibility with s2Member, as these incompatibilities are usually caused by custom themes. When searching for a theme, look for specific reports of:
If the theme has any of the above issues reported, then it probably will cause issues with s2Member. |
|
Posted: Thursday Dec 6th, 2012 at 3:30 pm #33748 | |
![]() |
|
Hi Emmanuel, This article should be helpful: Knowledge Base » Protecting Non-WordPress Content with s2Member |
|
Posted: Thursday Dec 6th, 2012 at 3:28 pm #33745 | |
![]() |
|
Hi David, It sounds like you need to set up dynamic Login Welcome Pages. You can do so under Dashboard -› s2Member® -› General Options -› Login Welcome Page in the text field under the dropdown box. Change the Login Welcome page to –Select– in the dropdown, and use the replacement codes to specify a dynamically-created Login Welcome Page URL. Then make corresponding pages. As an example, if you used
You would then need to set up a Login Welcome Page for each level that you’re using. A page for Level 1 subscribers would have the slug /login-welcome-page-level-1. |
|
Posted: Thursday Dec 6th, 2012 at 3:22 pm #33743 | |
![]() |
|
This is correct. Users will have access to all content for the specified level, as well as the content that you protect with the custom capability. |
|
Posted: Thursday Dec 6th, 2012 at 3:20 pm #33742 | |
![]() |
|
Posted: Thursday Dec 6th, 2012 at 3:14 pm #33739 | |
![]() |
|
Charles, To clarify, you’re putting this code into a mu-plugin, within /wp-content/mu-plugins/a-plugin-file.php, correct?:
I just tested this and it seems to be working correctly. |
|
Posted: Thursday Dec 6th, 2012 at 2:34 pm #33733 | |
![]() |
|
Hi Kelli,
I believe that PayPal donations do not use the PayPal IPN to send users back to your site, but if they do, you should be able to set your PayPal PDT to your site’s homepage instead of the standard s2Member return page, and s2Member should override this change when it sends a user to PayPal. |
|
Posted: Thursday Dec 6th, 2012 at 2:18 pm #33728 | |
![]() |
|
Hi Ayurveda, You can do this by simply creating multiple Pro Forms / Buttons at different prices for the same level. s2Member does not look at the price when verifying the transactions. |
|
Posted: Thursday Dec 6th, 2012 at 2:16 pm #33727 | |
![]() |
|
Hi Ayurveda,
Yes, this may cause conflicts for the page. Instead of using default WordPress functionality for this, you can set up an if() statement for this. Download and install a PHP Execution plugin on your site, and put something like this at the top of your page:
With this, you can send users to
This will allow users to then sign up. |
|
Posted: Thursday Dec 6th, 2012 at 2:10 pm #33726 | |
![]() |
|
Hi Ben, You’d need to do this with some JavaScript. Add a onsubmit action to the Pro Form and create some JavaScript to grab the data and use AJAX to send the data to a URL that saves the data. You can check out the IDs for the s2Member Pro Forms in /s2member-pro/includes/templates/forms/ |
|
Posted: Thursday Dec 6th, 2012 at 2:04 pm #33725 | |
![]() |
|
Hi Charles, What exactly did you put into the must use plugin? |
|
Posted: Thursday Dec 6th, 2012 at 1:59 pm #33724 | |
![]() |
|
Hi Christian,
To change the payment from recurring to One-Time, you’ll want to make sure that you’ve set “src” to 0. With this, the EOT date should be 1 year and 1 day from when the user registered. |
|
Posted: Thursday Dec 6th, 2012 at 1:54 pm #33723 | |
![]() |
|
This post might be helpful for you: http://www.s2member.com/forums/topic/get-users-selected-checkboxes-with-php/ |
|
Posted: Thursday Dec 6th, 2012 at 1:52 pm #33722 | |
![]() |
|
You could try adding the custom capability “trial” to users that signed up with a trial, and not adding it to users that didn’t. Set a variable at the top of the page in PHP, and use that for content dripping instead. Like this:
This is something you’ll have to set up outside of s2Member. You’ll need to edit the loop in your theme.
You will want to use the |
|
Posted: Thursday Dec 6th, 2012 at 1:41 pm #33720 | |
![]() |
|
For logged-in users, your code will work fine. This is because you’re using
This sets the default language to ‘EN’, or English. If you’d rather set this to something else, or use another method to find the correct language for users that are NOT logged-in, you can set
|
|
Posted: Thursday Dec 6th, 2012 at 1:24 pm #33718 | |
![]() |
|
Hi Charles, We recommend putting this code into a Must-Use Plugin, by putting it into your /wp-content/mu-plugins/ directory (create one if you don’t have one). This Must-Use plugin should only house the function that Jason wrote, and not actually display any information. For getting the user’s info I would suggest creating a Post/Page to display this data for users (a private post/page or draft), and then finding the user’s ID or username to use the code. OR If you’re comfortable with it, you can create a custom admin submenu page within your Must Use plugin to house this functionality. Find info on this at WordPress.org >> API >> add_submenu_page() |
|
Posted: Thursday Dec 6th, 2012 at 1:14 pm #33717 | |
![]() |
|
If that’s the case, I believe you won’t need an API to check the coupon, because you’ll know what the coupon’s code is already, correct?
Yes, that’s correct. If my above comments were correct, you should probably set another custom capability after the coupon is used such as “test_used” so that you can tell if a user has already used the coupon code before. |
|
Posted: Wednesday Dec 5th, 2012 at 7:38 pm #33643 | |
![]() |
|
Hi Jakub,
Yes, s2Member would be forced to save info other than the Paid Subsription ID, which could lead to this data being compromised if there was ever a way found to access this data outside of s2Member’s processes. |
|
Posted: Wednesday Dec 5th, 2012 at 7:35 pm #33642 | |
![]() |
|
Hi Christian, s2Member does not set an EOT date until while the subscription to your site is still active, because the user could have access for an undetermined amount of time. If you were to set up a One-Time payment for a specific amount of time, users *would* have an EOT date. Users are also given an EOT date when they cancel recurring billing. |
|
Posted: Wednesday Dec 5th, 2012 at 6:51 pm #33638 | |
![]() |
|
Hi Chad, The success=”” attribute is enabled on the PayPal standard buttons when you have s2Member Pro installed. |