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,176 through 1,200 (of 2,567 total)
Author Replies
Author Replies
Posted: Thursday Aug 2nd, 2012 at 3:14 am #20973
Raam Dev
Username: Raam
Staff Member

Hi Steph,

You’d need to modify the relevant core file in /includes/classes/gateways/ (exactly which file will depend on what you’re using to checkout; if you’re using PayPal, I recommend searching the PHP files in there).

Once you find the exact message in the code, you may be able to use this method for changing front-end messages instead of modifying the core file (note that you must find the exact message in the code, as it may be different from what you see on the web page; if you use the technique for changing front-end messages, the exact message is needed).

Posted: Thursday Aug 2nd, 2012 at 3:06 am #20972
Raam Dev
Username: Raam
Staff Member

Hi Barry,

Thanks for the KUDOS! :)

The s2Member Pro Coupons unfortunately cannot be used to offer Free Registration, so you’d need to implement a different voucher/coupon system. This has been described in Knowledge Base » Offering a Free Coupon Code (100% Discount).

The way I’d implement this functionality in your scenario would be to create a page that contains a Free Registration form that only gives access for 24 hours (see the Optional Tip under Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms).

I would also configure that Free Registration form to assign specific Custom Capabilities to that user when they sign up (perhaps even doing it dynamically basing the Custom Capability on the voucher code that was used, so each event gets its own Custom Capability). Then, you’d create pages/posts for that event and restrict them to that Custom Capability.

To restrict access to that page with the free registration form, I’d implement a voucher code system like the one described in the Knowledge Base article above. For greater security, you may want to implement a system of dating voucher codes, allowing them to only be used up until a specific date (for example, within 5 days of the event where you handed out the code).

Posted: Thursday Aug 2nd, 2012 at 2:54 am #20971
Raam Dev
Username: Raam
Staff Member

Hi Vincent,

Are you editing this page with the Visual editor or the HTML editor? If you have PHP code on the page, you can’t use the Visual editor — you must use the HTML editor, otherwise the code will get corrupted.

Posted: Thursday Aug 2nd, 2012 at 2:52 am #20970
Raam Dev
Username: Raam
Staff Member

Hi Lisa,

I’m not sure what you mean by “how do i get the existing members into their already imported user accounts??” If the accounts are already imported, then what are you trying to import?

You should be able to use the s2Member Import/Export feature for this task (Dashboard -› s2Member® -› Import/Export). If you want to mass-update existing accounts, you can simply run the export, edit the export file, then import that file — all the accounts will be updated.

Please see Knowledge Base » How to Migrate to s2Member Pro from Other Software for more information.

Posted: Thursday Aug 2nd, 2012 at 2:48 am #20969
Raam Dev
Username: Raam
Staff Member

Hi,

You said,

… and selected the option to allow zero level members to access it thereby making it public…

The s2Member Level 0 is *not* for public access… Level 0 is for free members. If you protect something to Level 0, you will still need to login to access it.

If you want something to be public, simply don’t restrict it at all.

Administrators *can* access protected content… as an administrator, you automatically have access to all the content protected by s2Member. If you’re having trouble viewing protected content, then you’re probably not logged in as an administrator.

Posted: Thursday Aug 2nd, 2012 at 2:43 am #20968
Raam Dev
Username: Raam
Staff Member

Hi Chris,

Have you seen the video below?

<Embed Playlist>
Posted: Thursday Aug 2nd, 2012 at 2:41 am #20967
Raam Dev
Username: Raam
Staff Member

Hi Hamid,

You should be able to simply add your modified styles to your theme’s style.css file. You may need to use the !important rule.

However, if you’re trying to change that bold label to normal, you’ll want to remove the <strong> tags surrounding that text. You can do that by editing the profile template.

Posted: Thursday Aug 2nd, 2012 at 2:33 am #20966
Raam Dev
Username: Raam
Staff Member

Hi Allan,

Have you enabled logging (Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging)? The next step would be to look at the logs to see if anything is amiss there.

Posted: Thursday Aug 2nd, 2012 at 2:29 am #20965
Raam Dev
Username: Raam
Staff Member

Hi Dean,

It sounds like a problem with your server. What happens if you move those URI restrictions back to Level 0?

Also 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 that returns everything OK, then I suggest contacting your web host and asking them about the message.

Posted: Thursday Aug 2nd, 2012 at 2:22 am #20964
Raam Dev
Username: Raam
Staff Member

Hi Ben,

s2Member only supports one recurring subscription per account. It sounds like you’re trying to create multiple recurring subscriptions for a single account, depending on what Custom Capabilities they want. If that’s the case, that is not currently possible.

An s2Member account can have one recurring subscription, and that account can have any number of Custom Capabilities. You can add/remove Custom Capabilities when you offer an Upgrade/Downgrade to an existing member using a Modification Form (see Dashboard -› s2Member® -› PayPal® Pro Forms -› Billing Modification Forms — this also allows modifying the existing recurring subscription), or you can sell additional Custom Capabilities on a one-time basis (non-recurring) using Dashboard -› s2Member® -› PayPal® Pro Forms -› Capability (Buy Now) Forms.

Posted: Thursday Aug 2nd, 2012 at 2:17 am #20963
Raam Dev
Username: Raam
Staff Member

Michael,

I’m not sure what you’re referring to by “Activation key routine”. Could you please explain?

Devra,

Yes, you could do that. That is not a feature of s2Member, so you’d need to handle that additional custom code yourself. If you want to offer different pages/features to different sets of free members, you should use Custom Capabilities.

By assigning different Custom Capabilities to your free users (the Free Registration form can be Dynamically Configured with these custom capabilities), you can control which free users see which pages (then you can even do things like check the Custom Capabilities upon login and redirect them to special login welcome pages).

Posted: Thursday Aug 2nd, 2012 at 2:09 am #20962
Raam Dev
Username: Raam
Staff Member

Hi Janice,

The s2Member plugin works with WordPress Multisite networks, which is what it sounds like you want to create. Please see Multisite Networking on WordPress.org for more information about setting up a WordPress Multisite network.

The s2Member Network Support license allows you to use the plugin within a WordPress Multisite network running a blog farm (please see ‘Definition of a Multisite Blog Farm’ at the bottom of this page).

Posted: Thursday Aug 2nd, 2012 at 1:40 am #20960
Raam Dev
Username: Raam
Staff Member

Hi Vibeke,

The s2Member plugin uses the WordPress database to store all its settings, so as long as you do a proper move of the WordPress database, the s2Member plugin data will move over fine. Just make sure that the s2Member Deactivation Safeguards are enabled in Dashboard -› s2Member® -› General Options -› Deactivation Safeguards.

You may also want to look at the Moving WordPress page on the WordPress Codex for more information about moving WordPress to a new server.

Posted: Thursday Aug 2nd, 2012 at 1:37 am #20959
Raam Dev
Username: Raam
Staff Member

Great! Thank you for the update.

Posted: Thursday Aug 2nd, 2012 at 1:36 am #20958
Raam Dev
Username: Raam
Staff Member

You’re most welcome, Matt! Glad to hear you got it working. :)

Posted: Thursday Aug 2nd, 2012 at 1:35 am #20957
Raam Dev
Username: Raam
Staff Member

Thank you for the update, Derek.

s2Member has many advanced PHP functions that can be used to protect content (see Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals), so you could certainly create a WordPress Page Template that replicates the blog home page (listing the most recent blog posts) and then protect that page with s2Member.

It sounds like the Blog-in-Blog plugin does essentially the same thing, replicating the home-page functionality in a regular page.

Posted: Thursday Aug 2nd, 2012 at 1:32 am #20956
Raam Dev
Username: Raam
Staff Member

Hi Andrew,

The s2Member Level roles are based on the WordPress Subscriber role capabilities, so s2Member users are not given any access to the WordPress back-end. The s2Member plugin also does not provide any features for managing restrictions to WordPress back-end features.

You could use a 3rd party plugin like the Role Editor plugin to manually edit the s2Member levels and give certain levels capabilities to access the WordPress back-end, but this wouldn’t be supported by us.

Posted: Wednesday Aug 1st, 2012 at 2:25 am #20882
Raam Dev
Username: Raam
Staff Member

Hi Marco,

If you’ve installed and activated the Exec-PHP Plugin and it’s still not working, then I would recommend double-checking that you’re pasting in the PHP code using the HTML view on the post editor and not the Visual view (which causes problems with PHP code).

If it still doesn’t work, then your WordPress theme and/or another WordPress plugin is probably causing a conflict and my only recommendation is to try switching to the default WordPress theme (e.g., TwentyEleven) or and/or disabling other WP plugins.

Posted: Wednesday Aug 1st, 2012 at 2:22 am #20881
Raam Dev
Username: Raam
Staff Member

Thank you for the update, Rakesh!

Posted: Wednesday Aug 1st, 2012 at 2:21 am #20880
Raam Dev
Username: Raam
Staff Member

Hi Derek,

Is that page a regular WordPress page, or is it a special page? By “special page” I mean have you selected that page as your WordPress “Posts Page” or your “Front Page” in WordPress -> Settings -> Reading? If so, you cannot easily restrict those pages.

Try creating a normal WordPress page and then restricting it. Does that work? If not, what happens?

Posted: Wednesday Aug 1st, 2012 at 2:19 am #20879
Raam Dev
Username: Raam
Staff Member

1- Do i still have to remove the mention of the other credit cards as stated in the text above “*PayPal® Pro is NOT Absolutely Required*…..?

If you don’t remove the other credit cards, then someone might click one of those and try to checkout. Since you don’t have PayPal Pro, they will get an error. If you don’t have PayPal Pro, you should disable the credit cards to prevent confusion for your customers (since they can’t use those options on your Pro-Form anyway).

2- Can i still use the pro-form “as is” with a coupon, even if i sell a subscription with recurring payment if i dont have paypal pro but only paypal express checkout?

Yes, the Pro Coupon codes are applied by s2Member on the Pro-Form, so PayPal doesn’t even know about the coupon (PayPal just receives the final checkout amount, after the coupon was applied).

Posted: Wednesday Aug 1st, 2012 at 2:15 am #20878
Raam Dev
Username: Raam
Staff Member

Hi Soosie,

You could export all your users (Dashboard -› s2Member® -› Import/Export -› User/Member Exportation), edit the export file and add EOT dates to the Automatic EOT column, then save the file and reimport it (Dashboard -› s2Member® -› Import/Export -› User/Member Importation). All the users you added an Automatic EOT date to will be updated.

Posted: Wednesday Aug 1st, 2012 at 2:11 am #20877
Raam Dev
Username: Raam
Staff Member

Hi Grant,

You can add the following code to wp-content/mu-plugins/s2-hacks.php to restrict access to a specific URI by Custom Capability:

<?php
// Only allows access to a specific URI if user has the corresponding Custom Capability
add_action ("wp", "my_custom_capabilities", 1);
function my_custom_capabilities() {
	$allowed = TRUE;
	
	if (fnmatch ("/members/", $_SERVER&#91;"REQUEST_URI"&#93;) && !current_user_can("access_s2member_ccap_members")) {
		$allowed = FALSE;
	}
	
	if (fnmatch ("/secret-area/", $_SERVER&#91;"REQUEST_URI"&#93;) && !current_user_can("access_s2member_ccap_james_bond")) {
		$allowed = FALSE;
	}
	
	// If any of the URIs above matched, but the user did not have the necessary ccap, redirect to Membership Options
	if (FALSE === $allowed) {
		header ("Location: " . S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
		exit ();
	}
}
?>

You can add as many if-blocks as necessary to check various URIs against various Custom Capabilities.

Members can have multiple Custom Capabilities, and you can sell existing members additional Custom Capabilities using Dashboard -› s2Member® -› PayPal® Pro Forms -› Capability (Buy Now) Forms.

If you want new members to automatically have certain Custom Capabilities when they sign up, you can simply add those capabilities to the Pro-Form when you generate it in Dashboard -› s2Member® -› PayPal® Pro Forms -› Membership Level # Forms.

Posted: Wednesday Aug 1st, 2012 at 1:42 am #20875
Raam Dev
Username: Raam
Staff Member

Hi Marco,

I will forward this to our account department. Thank you for your patience.

Posted: Wednesday Aug 1st, 2012 at 1:41 am #20874
Raam Dev
Username: Raam
Staff Member

Those are just examples. You would need to modify the code to suit your needs.

If you’re not comfortable with PHP, we recommend posting your job on jobs.wordpress.net.

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