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.

Home Forums Bruce

Bruce

Staff Member

My Latest Replies (From Various Topics)

Viewing 25 replies - 176 through 200 (of 2,703 total)
Author Replies
Author Replies
Posted: Wednesday Aug 7th, 2013 at 7:27 pm #55376
Bruce
Username: Bruce
Staff Member

Does anyone know what these are exactly and what I can do with them to free up some space?

If you’re not having any problems with your IPN/PDT responses failing, you can (and should) turn off logging. Logging is meant only for debugging these responses. So you will want to first turn off logging:

Dashboard -› s2Member® -› Log Files (Debug) -› Logging Configuration

And then you can delete all of these log files that s2Member Generated via FTP.

Posted: Wednesday Aug 7th, 2013 at 5:48 pm #55372
Bruce
Username: Bruce
Staff Member

Is there a way for me to control all members from one place, see them all, up-sale or cross-sale products and so on?

The best way to accomplish this would be to use domain mapping with WordPress. s2Member cannot link together multiple sites at the same time, so you’ll have to use WordPress Multisite. Domain Mapping allows you to run a site on a different domain, but have it run off of a subsite of your main site, so that your blogs can share Users. There’s tons of information on this here, on the official domain mapping plugin for WordPress (made by the creators of WordPress):

http://wordpress.org/plugins/wordpress-mu-domain-mapping/

If you map your external products’ sites then you can use s2Member to restrict access to downloads and content on your subsites.

Posted: Wednesday Aug 7th, 2013 at 5:37 pm #55371
Bruce
Username: Bruce
Staff Member

Sorry for the delay in response.

Your thread got marked, and didn’t show up on our list. Thanks for your patience.

essentially i want the users integrated into s2 via clickbank handled sale automatically. then sent to download /thankyou page then fianlly the software be able to check s2 member. IE all automatic

s2Member can do this. You just need to set up your ClickBank options and you should see all of the options to do this in your Dashboard with s2Member Pro installed.

See: Dashboard -› s2Member® -› ClickBank® Options -› Thank-You Page Integration

2. i want the software to check if a member of a s2 group “software licensee” via api

You should be able to do this with WordPress’s default functionality. I’m assuming that you’re talking about doing something with custom code. I would say that this WordPress function would work for you:

http://codex.wordpress.org/Function_Reference/current_user_can

You may also want to check out our shortcode conditionals:

Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals

Posted: Tuesday Aug 6th, 2013 at 6:59 pm #55329
Bruce
Username: Bruce
Staff Member

I can confirm this will be in the next version of s2Member. When this is out, you can accomplish this by creating a Must-Use Plugin with the following code in it:

Knowledge Base » Hacking s2Member® Via Hooks/Filters
See Also: http://codex.wordpress.org/Must_Use_Plugins

  • This reply was modified 3 years, 4 months ago by  Bruce. Reason: Missing a comma
Posted: Tuesday Aug 6th, 2013 at 5:25 pm #55322
Bruce
Username: Bruce
Staff Member

Thanks for your patience.

I talked with Jason (Lead Developer) about this. Right now you’re going to have to edit line #151 of this file to accomplish this:

/s2member-pro/includes/classes/gateways/paypal/paypal-checkout-in.inc.php

You’d change this line:

$paypal_set_xco["LANDINGPAGE"] = "Billing";

To this:

$paypal_set_xco["LANDINGPAGE"] = "Login";

Based on the documentation:

I’m submitting a change to the source code to add a filter to this file that will make it possible to change this via filter, as gone over in this article in the next release of s2Member so you don’t have to keep editing this file when s2Member gets updated:

Knowledge Base » Hacking s2Member® Via Hooks/Filters

I’ll update this thread when that’s done. Thanks!

Posted: Tuesday Aug 6th, 2013 at 5:01 pm #55320
Bruce
Username: Bruce
Staff Member
Sorry about the delay in response. I’m taking a look at this now.
Posted: Tuesday Aug 6th, 2013 at 4:59 pm #55319
Bruce
Username: Bruce
Staff Member
I can confirm that the above works in a default installation of WordPress running WordPress’s TwentyTwelve Theme and s2Member within The Loop.
Posted: Tuesday Aug 6th, 2013 at 4:56 pm #55318
Bruce
Username: Bruce
Staff Member

However, I need to be able to tell if the specific article is protected at a certain level. Something like:

Try this:

<?php
if(($protection = is_protected_by_s2member())) { // If this Post/Page is protected by s2Member...
	if($protection['s2member_level_req'] === 0) { // ... and it's protected at s2Member Level 0 ?>
		This post is protected at s2Member Level 0
	<?php } elseif($protection['s2member_level_req'] === 1) { // ... and it's protected at s2Member Level 1 ?>
		This post is protected at s2Member Level 1
	<?php }
}
?>
Posted: Saturday Aug 3rd, 2013 at 10:18 pm #54977
Bruce
Username: Bruce
Staff Member
$voted = 1;
$custom_fields = get_user_option('aaa_s2member_custom_fields');
$custom_fields['district_voted'] = $voted;
update_user_option($user->ID, 'aaa_s2member_custom_fields', $custom_fields);

You don't need to put the prefix in here if you're using update_user_option(). WordPress does this automatically. Try this:

$voted = 1;
$custom_fields = get_user_option('s2member_custom_fields');
$custom_fields['district_voted'] = $voted;
update_user_option($user->ID, 's2member_custom_fields', $custom_fields);
Posted: Saturday Aug 3rd, 2013 at 2:33 am #54822
Bruce
Username: Bruce
Staff Member

Is there a way to update the value of a s2member custom field?

Sure, but it’s a bit complicated. To update an s2Member Custom Field you have to update an array in your WordPress Usermeta tables through PHP. The value’s row is your WordPress prefix + s2member_custom_fields. Here’s an example of how you would update a Custom Field with the slug country:

$custom_fields = get_user_option('s2member_custom_fields');
$custom_fields['country'] = $newcountry;
update_user_option($user->ID, 's2member_custom_fields', $custom_fields);
Posted: Saturday Aug 3rd, 2013 at 1:12 am #54820
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

1. Those it offer an option to create an affiliate program?

s2Member provides the ability to integrate with an affiliate program in this part of the Dashboard:

Dashboard -› s2Member® -› API / Tracking

Our most popular integration is with iDevAffiliate, but you could really integrate pretty much any affiliate program. s2Member doesn’t track referrals itself.

For the files to download i dont see the necessity of asking people to register in order to access the free files, so this part would be really simple, people would just click on whatever file they wish to download and downloaded.

s2Member protects all downloads from the protects s2member-files directory. If you want to offer downloads to Users that are not logged in, this is possible, but you need to use a file download key, so that it bypasses these protections. s2Member makes that possible with the file downloads shortcode.

Some people are only looking for a single specific file and if they have to enrol in a membership to get it that might drive them away, so the option of purchasing the single file as well as the membership enrolment buttons would be presented to them when they go to the individual file page. Can this be easily done with your plugin?

To accomplish this, you’d want to sell Custom Capabilities for each (or many) files. You can create directories in your s2member-files directory that protect files by custom capability using the information gone over in the Dashboard here:

Dashboard -› s2Member® -› API / Scripting -› Custom Capability and Member Level Files

For instance, if you wanted a file to be protected by the Custom Capability thisfile, you would create this directory in the s2member-files directory:

/access-s2member-ccap-thisfile/

For information on Custom Capabilities, you can check out the first video in this playlist:

Video » s2Member (Custom Capabilities)

And this part of your Dashboard:

Dashboard -› s2Member® -› API / Scripting -› Custom Capabilities

Posted: Saturday Aug 3rd, 2013 at 12:46 am #54811
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

Can I buy S2Member pro unlimited sites using my own affiliate Discount Coupon?

Yes, it’s fine to buy s2Member with your own affiliate coupon. There’s nothing to prevent this, and it allows you (the affiliate) to see that s2Member’s affiliate program works. :-)

Posted: Saturday Aug 3rd, 2013 at 12:34 am #54809
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

Can i ask technical questions as free plugin user or do i have to buy first for ask technical questions?

Questions that aren’t related to if s2Member Pro can accomplish something can be asked in the Community Forums. We (Staff) don’t always monitor the Community Forums but there are many community members that might be able to answer your question. :-)

Posted: Saturday Aug 3rd, 2013 at 12:31 am #54808
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

if a user buys membership 1 for £100 (one off fee) which gives access to page one and after a week they want to upgrade to membership 2 which gives access to page 1 & 2 which is £200 (one off fee) is the a function where its classed as a upgrade not a new purchase so the customer who is upgrading would only pay a upgrade fee of £100 – totaling the membership 2 price of £200, however a new customer would pay £200 for membership 2?

s2Member gives you (the site owner) the ability to accomplish this. It isn’t an automatic change, because s2Member allows you to sell membership for whatever price you want at any time. You can have two Buttons/Pro Forms that givie the same exact Membership Access, but have one set up at $5, and the other at $500.

What you’d do to accomplish this is use s2Member’s Shortcode Conditionals to decide when a User should be provided the lower price (i.e. when they’re upgrading). Here’s an example.

[s2If !is_user_logged_in() || current_user_is(subscriber)]
	In this part, the User is either not a member, or is a Free Subscriber (Level 0). A User that is demoted from cancelling might be s2Member Level 0.
	Here you would give access to registration either for Level 1 at $100, or Level 2 at $200.
[/s2If]

[s2If current_user_is(s2member_level1)]
	Here the User is s2Member Level 1, so you can have them upgrade for $100 to s2Member Level 2.
[/s2If]

[s2If current_user_can(access_s2member_level2)]
	This part will show up if a User is Level 2 or higher. You should just tell them that there's no need to upgrade.
[/s2If]

See: Knowledge Base » Simple Shortcode Conditionals

Let us know if you have any more questions. :-)

Posted: Friday Aug 2nd, 2013 at 11:59 pm #54806
Bruce
Username: Bruce
Staff Member

You see from the above however that I would like differentiate between “Members Only” and “Premium” posts. A person that isn’t logged in only sees the “restricted-corner” on every post instead of the “premium-corner” on premium posts.

The is_permitted_by_s2member() function that s2Member creates returns TRUE or FALSE depending on if a User is allowed access a Post/Page. Currently, with the way that you’re using this function, I’m unsure how you’re accomplishing anything. The only possible way to call is_permitted_by_s2member() without any parameters should be if you’re calling it within The Loop in your theme, as stated in the docs:

http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_is_permitted_by_s2member()

That being said, if you would like to get information back on the type of protection on a Post/Page/Category/URI, you can use this function instead:

http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_is_protected_by_s2member()

This returns an array of data for the protection. You can use this information to determine whether content is protected at a certain level, and change the message that you want based on that.

Would that work for you?

Posted: Friday Aug 2nd, 2013 at 11:50 pm #54803
Bruce
Username: Bruce
Staff Member

After calling tech support for Paypal they confired that “No limit failures” will result in the account being suspended after the first failed attempt to withdraw money.

Thanks for confirming that.

To change any pervious user to “No limit failures” you must manually change the settings in the paypal subscriptions dashboard one by one.

Sorry to hear that. But I’m glad that you can do this. Thanks for providing the information. I’m sure it will be useful for another User in the future. :-)

Posted: Friday Aug 2nd, 2013 at 11:49 pm #54801
Bruce
Username: Bruce
Staff Member

mean, once he registers with this fee, is there anyway to make him pay only for the content he wishes? So that, we do not need registration fees every now and then but user should pay for the content individually. That is, he will be the same user all the time with one login ID but can buy any content. Is this possible?

You can protect certain content and sell this content with Custom Capabilities if you like. Custom Capabilities are separate from Membership Levels, and you can sell as many or as few as you like. You can check out how they work in this section of you Dashboard:

Dashboard -› s2Member® -› API / Scripting -› Custom Capabilities

Or if you’d like to learn some of the advanced portions of Custom Capabilities, you can check out this video:

Video » s2Member (Custom Capabilities)

Posted: Friday Aug 2nd, 2013 at 11:47 pm #54797
Bruce
Username: Bruce
Staff Member

I am using a brand new test account and trying to upgrade it. The new account is a Level 1 free member and I am trying to upgrade it to a level 4 paid member. While I am logged in with all data displayed in the S2M pro login widget, it is asking for me to enter a username, passwords, email etc on the upgrade form.

I see. I was not aware that this was the issue. The only thing I can suppose is the problem here is possibly something to do with Object Caching, or that s2Member’s JavaScript is not loading. Taking a look at your site I can see that s2Member’s JavaScript is being brought in. You mentioned you were using Cloudflare, is it possible to test with that off?

Posted: Thursday Aug 1st, 2013 at 1:42 am #54584
Bruce
Username: Bruce
Staff Member

Cool, thanks for the update. Let us know if you have any further issues. :-)

Posted: Thursday Aug 1st, 2013 at 1:39 am #54583
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

Sorry for the inconvinience. We just solved this issue. There was a mix-up with the files here @ s2Member.com. You should be able to upgrade correctly now. :-)
Posted: Wednesday Jul 31st, 2013 at 10:29 pm #54553
Bruce
Username: Bruce
Staff Member

I did, however follow the authnet shortcode instructions and added the template file within the signup shortcode. Unfortunately, that did not work.

With the template attribute, you have to do a relative path from your themes directory. Did you try moving your template to your themes directory instead of your child theme’s directory? Maybe there was an issue with the path.

If you can’t figure that out, send me a Dashboard Login here, and I’ll take a look:

s2Member® » Private Contact Form

Posted: Wednesday Jul 31st, 2013 at 9:20 pm #54550
Bruce
Username: Bruce
Staff Member

With the modify tag applied to the forms, does this mean if someone is already in the DB they will be prompted to login and automatically returned to the sign up page?

Not exactly. With the modify attribute set to 1, the User will be asked to log in before they complete their purchase. If they are logged in, then they will be able to complete the transaction with the current account they are logged in on. :-)

Posted: Wednesday Jul 31st, 2013 at 9:18 pm #54549
Bruce
Username: Bruce
Staff Member

At the risk of sounding stupid, should I leave the version update to my webmaster or is it simple enough for me to do?

You should be able to do this yourself. Just update s2Member through the Dashboard as you would normally (through the Plugins Menu), and then you should be prompted with a log in box afterward. Put in your s2Member.com Credentials and the s2Member Pro module should update automatically.

Posted: Wednesday Jul 31st, 2013 at 9:16 pm #54547
Bruce
Username: Bruce
Staff Member

To clarify, you’re not getting back any custom value at all. The value is empty:

'custom' => '',
Posted: Wednesday Jul 31st, 2013 at 9:15 pm #54546
Bruce
Username: Bruce
Staff Member

Thanks for your patience.

Looking at your logs, it looks like something’s happening to your custom attribute. You’re getting this error:

2 => 'Unable to verify $_SERVER["HTTP_HOST"]. Please check the custom value in your Button Code. It MUST start with your domain name.',

Based on the shortcode sample that you provided in your first reply, I’m assuming that you have your custom attribute set up correctly. That means that this is probably an issue with either Object Caching in your installation of WordPress, or something is filtering this value out of your HTTP connections, either to or from WordPress.

Normally I see this problem happening when W3 Total Cache is installed and has Object Caching enabled, but I’m not seeing that problem on your domain. I’m going to have to ask you to follow the first two steps in this article, and run a test transaction:

Knowledge Base » Common Troubleshooting Tips

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