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 - 2,451 through 2,475 (of 2,703 total)
Author Replies
Author Replies
Posted: Tuesday Dec 4th, 2012 at 8:12 pm #33505
Bruce
Username: Bruce
Staff Member

Hi Buck,

This is not natively available with s2Member. However you could use some custom code in your Pro Form (info provided in Knowledge Base » Using variables in a shortcode) to do this. It sounds like you should dynamically set the trial portion of the shortcode.

You may also want to check out Dashboard -› s2Member® -› API / Scripting -› Membership Options Page Variables (MOP Vars)

Posted: Tuesday Dec 4th, 2012 at 8:10 pm #33504
Bruce
Username: Bruce
Staff Member

Hi Marco,

s2Member should automatically fill the EOT date field that is already generated by s2Member as soon as it is available.

EOT date is only available after the user has canceled a subscription, if you are using non-recurring payment styles, or if you have set an EOT date manually.

s2Member keeps track of the last payment recieved automatically. You can get this info using get_user_field('s2member_last_payment_time');. If you’d like more info about a specific user you can use the info provided in this post to get info directly from PayPal.

Posted: Tuesday Dec 4th, 2012 at 7:31 pm #33500
Bruce
Username: Bruce
Staff Member

Hi Aaron,

s2member has the option for members to edit their profiles on the “Edit profile” page, including changing their password. I’d like my users to have to type in their old password first before they are able to change, as verification they are the owner of the account.

To do this you’d need to modify the file s2member/includes/classes/profile-mods-in.inc.php, as well as s2member/includes/classes/profile-in.inc.php. s2Member does not have this feature built-in.

Posted: Tuesday Dec 4th, 2012 at 7:27 pm #33499
Bruce
Username: Bruce
Staff Member

Hi Steve,

Try adding this to your theme’s style.css file, replacing example.com with your website’s domain:

label.s2member-pro-authnet-form-card-type-visa-label
	{
		background: url('http://example.com/wp-content/plugins/s2member-pro/images/visa-card.png') no-repeat top center !important;
	}
label.s2member-pro-authnet-form-card-type-mastercard-label
	{
		background: url('http://example.com/wp-content/plugins/s2member-pro/images/mastercard-card.png') no-repeat top center !important;
	}
label.s2member-pro-authnet-form-card-type-amex-label
	{
		background: url('http://example.com/wp-content/plugins/s2member-pro/images/amex-card.png') no-repeat top center !important;
	}
label.s2member-pro-authnet-form-card-type-discover-label
	{
		background: url('http://example.com/wp-content/plugins/s2member-pro/images/discover-card.png') no-repeat top center !important;
	}
label.s2member-pro-authnet-form-card-type-maestro-label
	{
		background: url('http://example.com/wp-content/plugins/s2member-pro/images/maestro-card.png') no-repeat top center !important;
	}
label.s2member-pro-authnet-form-card-type-solo-label
	{
		background: url('http://example.com/wp-content/plugins/s2member-pro/images/solo-card.png') no-repeat top center !important;
	}
Posted: Tuesday Dec 4th, 2012 at 6:55 pm #33497
Bruce
Username: Bruce
Staff Member

Hi Marco,

You can create fields like this in Dashboard -› s2Member® -› General Options -› Registration/Profile Fields by selecting the option No ( uneditable & totally invisible, both during & after registration ) under Allow Profile Edits: *.

Posted: Tuesday Dec 4th, 2012 at 6:47 pm #33493
Bruce
Username: Bruce
Staff Member

Hi Pete,

This does not sound like something s2Member is causing. I recommend contacting DIY Themes for info on what might be causing this.

Posted: Tuesday Dec 4th, 2012 at 6:44 pm #33492
Bruce
Username: Bruce
Staff Member

Really? Dummy data? What specific strings of data should I use? Is there a rudimentary set of characters I should use?

s2Member only checks to see if the forms are filled when using free registration forms. Using “abcd” in each field would be fine.

So I can just put dummy data in, and not use any payment gateway through S2 member Pro?

Yes, that’s correct. If you’d like to only allow free access to your site you can do so this way.

With this being said, since now the user has a free account, couldn’t I then use a new payment gateway/plugin of my choice? Would I still be able to protect links for payment buttons on the new plug-in/payment method from logged out users?

If you set your site up this way, s2Member would only control access to content (i.e. protecting content by level or based on if users have certain capabilities). Nothing within s2Member will stop you from using a different system for accepting payment. However another plugin will not be able to use s2Member as a way to update user’s capabilities or level. This functionality would need to be done outside of s2Member.

Posted: Tuesday Dec 4th, 2012 at 6:32 pm #33490
Bruce
Username: Bruce
Staff Member

Hi Joanne,

But these posts do not show in the blog feed or on the blog page.

That’s interesting. Are you using Alternative View Protection with s2Member?(Dashboard -› s2Member® -› Restriction Options -› Alternative View Protection)

Also, do you have any caching plugins installed that could be caching the results from these queries?

Posted: Tuesday Dec 4th, 2012 at 6:29 pm #33489
Bruce
Username: Bruce
Staff Member

Hi Kelli,

Will I still be able to take them to PayPal for the donation and collect their info?

PayPal donations can be set up outside of s2Member, so yes. However s2Member will not be in control of this data, and the system for this will need to be set up by you.

Posted: Tuesday Dec 4th, 2012 at 6:24 pm #33487
Bruce
Username: Bruce
Staff Member

Hi Wayne,

Sorry to hear that you’re having trouble. The user Import/Export feature is not quite as functional as we’d like, and unfortunately this problem may arise.

I will send this ticket to our lead developer to see if this can be fixed in a future version of s2Member. In the meantime you will need to manually update this information. If you’re experienced with PHP, you may want to run a script that may update the custom fields that you have set up with an empty value in the meantime.

Sorry for the inconvinience.

Posted: Tuesday Dec 4th, 2012 at 6:17 pm #33485
Bruce
Username: Bruce
Staff Member

Hi Moty,

You will want to use s2Member conditionals (Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals) to check if the user is logged in. If they are, you can use Dashboard -› s2Member® -› PayPal® Pro Forms -› Billing Modification Forms to add Custom Capabilities to members, instead of having them sign up again. Otherwise, users will need to use the forms at Dashboard -› s2Member® -› PayPal® Pro Forms -› Membership Level # Forms.

While we are at it, is there any way to customize the look and feel of the paypal pro forms? I would like to change the style of some elements.

Yes. Check this out:

Pre Sale FAQs » Is it possible to modify s2Member® Pro Form templates?

Posted: Tuesday Dec 4th, 2012 at 6:12 pm #33484
Bruce
Username: Bruce
Staff Member

Hi Arnegger,

Regarding your first question:

It appears that the plugin you are using changes the value of the wp_login_url() to /login. Try changing wp_login_url( $redirect_to_page ) to '/wp-login.php?redirect_to=' . $redirect_to_page;

2.1) I guess in the first part we’re creating the variable: “$midnight_paid_registration_time = strtotime(‘today’, S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME);” correct? Where do we do that? Just in the same post, right inside the php-Tag where the other code goes?

This goes in the same post, at the top, right along with all of the other processes going along with it. You could simply copy the exact code that Raam has given you and put it into a post/page (assuming you have a PHP Execution plugin installed.)

2.2) In the second part: How can I create out of the seconds -> DAYS again. There must be a way to convert this back into days, so I would be able to just enter days, to make it much more convenient… ?

Certainly. Just divide the variables by 86400 (for the seconds in a day):

<?php 
// midnight Unix Timestamp on the day the user paid
$midnight_paid_registration_time = strtotime('today', S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME);

// Unix Timestamp right now 
$now = time() / 86400;
$midnight_paid_registration_time = $midnight_paid_registration_time / 86400;
?>

<?php if($midnight_paid_registration_time + 1 < $now){ ?>
	Drip content to Members that started paying you at least 1 day ago
<?php } ?>

<?php if($midnight_paid_registration_time + 2 < $now){ ?>
	Drip content to Members that started paying you at least 2 days ago
<?php } ?>

<?php if($midnight_paid_registration_time + 3 < $now){ ?>
	Drip content to Members that started paying you at least 3 days ago
<?php } ?>
Posted: Tuesday Dec 4th, 2012 at 6:00 pm #33483
Bruce
Username: Bruce
Staff Member

Hi Marco,

Glad to hear you figured it out.

Posted: Tuesday Dec 4th, 2012 at 1:37 pm #33452
Bruce
Username: Bruce
Staff Member

Hi Anton,

I recommend setting up a custom capability for this. Just add a capability like “paid3” to your Pro Form within ccaps=””. You can then use a coditional like this:

[s2If current_user_is(s2member_level3) && current_user_can(access_s2member_ccap_paid3)]
	This user is a *paid access* level 3 member
[/s2If]

[s2If current_user_is(s2member_level3) && !current_user_can(access_s2member_ccap_paid3)]
	This user is *not* a paid level 3 member, but *is* level 3
[/s2If]
Posted: Tuesday Dec 4th, 2012 at 1:30 pm #33451
Bruce
Username: Bruce
Staff Member

Hi Kelli,

The only way to accomplish this would be to have a custom form outside of s2Member to collect this info. s2Member works by way of the WordPress Roles and Capabilities functionality, so any user group that s2Member collects info for will need to be signed up with a username and password.

Posted: Monday Dec 3rd, 2012 at 9:45 pm #33403
Bruce
Username: Bruce
Staff Member

Jason,

The info in my last post is still correct for clickbank. You will just want to use the Dashboard -› s2Member® -› ClickBank® Buttons -› Subscr. Modification/Cancellation Buttons instead of the Pro Form.

Posted: Monday Dec 3rd, 2012 at 9:42 pm #33402
Bruce
Username: Bruce
Staff Member

Andrew,

Do you have any caching plugin enabled? Also, did you update any other plugins, or perhaps your theme when you updated s2Member?

Posted: Monday Dec 3rd, 2012 at 8:21 pm #33396
Bruce
Username: Bruce
Staff Member

Too bad about not exporting all data. Could this be an upgrade in the near future?

Yes I have enabled wordpress to force my labels, and it works within wordpress, however when I export it reverts to default s2 labels.

Revisions to the user export and import feature are something that we’re hoping to achieve in the near future. I will notify our dev team that the labels are being reverted to the s2Member default when exporting. For now you will need to manually replace these labels.

Posted: Monday Dec 3rd, 2012 at 8:18 pm #33395
Bruce
Username: Bruce
Staff Member

Is there a way to see when user subscriptions expire?

If you’re using recurring billing, s2Member cannot track when a user’s subscription will end due to the fact that it is not yet set. However, if a user has canceled recurring billing, the date in which the user will lose access will be shown as the EOT date within the WordPress Dashboard.

If you’re looking for a way to find the next time the user will be billed, and are willing do work a bit with PHP, you can do so by querying PayPal and getting the data you require.

Is there a way to extend a users subscription for free (ie something happened and he was not able to use it during the time he paid)?

You could have them modify their billing with a form from Dashboard -› s2Member® -› PayPal® Pro Forms -› Billing Modification Forms. This form could incorporate a trial for the time that the user did not have access.

Posted: Monday Dec 3rd, 2012 at 8:10 pm #33393
Bruce
Username: Bruce
Staff Member

Is it only designed to export s2 member data fields?

Yes that’s correct. The user export feature only supports the default WordPress data and the s2Member CCaps + billing data.

Also under role, how can I get it to export my custom role titles instead of the standard s2 titles?

Have you tried enabling the checkbox in Dashboard -› s2Member® -› General Options -› Membership Levels/Labels? I believe that should do it.

Posted: Monday Dec 3rd, 2012 at 8:05 pm #33392
Bruce
Username: Bruce
Staff Member

Hi Andrew,

Could you try deactivating s2Member, and then reactivating? WordPress may not have updated the database to include s2Member after the update if the connection failed.

Posted: Monday Dec 3rd, 2012 at 7:16 pm #33388
Bruce
Username: Bruce
Staff Member

Hi Doyle,

There’s no reason to pay for a project to be made. We’d be happy to help you write up a bit of code to perform this functionality. This feature has been requested in the past and is something that will help customers in the future work with s2Member.

Posted: Monday Dec 3rd, 2012 at 6:17 pm #33383
Bruce
Username: Bruce
Staff Member

Hi Pat,

There currently is no timeframe available for when s2Member will support PayPal Advanced. As Cristian mentioned, s2Member currently supports PayPal Standard, and with Pro, Express Checkout and PayPal Pro.

Here is a list of payment gateways s2Member supports along with Paypal:
Pre Sale FAQs » What payment gateways does s2Member® support?

Posted: Monday Dec 3rd, 2012 at 6:13 pm #33381
Bruce
Username: Bruce
Staff Member

Hi there,

s2Member does not support the creation of WordPress Roles outside of s2member_level1, s2member_level2, etc.. This sounds like an issue outside of s2Member.

Posted: Monday Dec 3rd, 2012 at 6:11 pm #33380
Bruce
Username: Bruce
Staff Member

Hi Marco,

It sounds like there’s something going on with your PayPal IPN setup.

Could you please copy the shortcode you’re using to make one of your PayPal buttons? Also, make sure logging is enabled under Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging, and send over the PayPal IPN log file (with sensitive data xxx’d out) so that we can take a look.

Also, you will want to check your PayPal IPN setup in your PayPal account to ensure that it is the exact URL provided in Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration.

Viewing 25 replies - 2,451 through 2,475 (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.