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,276 through 1,300 (of 2,567 total)
Author Replies
Author Replies
Posted: Wednesday Jul 18th, 2012 at 11:06 pm #19711
Raam Dev
Username: Raam
Staff Member

Hi Edward,

Thank you for your patience on this. I’ve heard back from the lead developer and he confirmed that currently s2Member is using the email mechanism to integrate with Aweber. The next big release of s2Member will use Aweber’s API instead, which includes much better support for integration.

In the meantime, you can use the following hack to send the Custom Registration Fields in the email that’s sent to Aweber for new subscriptions:

Create this file and directory: /wp-content/mu-plugins/s2-hacks.php

<?php
add_filter('ws_plugin__s2member_aweber_msg', 'my_aweber_subscribe_command_via_email', 10, 2);
function my_aweber_subscribe_command_via_email($msg, $vars = array())
{
	$user_id = $vars&#91;'user_id'&#93;;
	
	$my_custom_field_value = get_user_field ('my_custom_field_id', $user_id);
	# A Unique Field ID you configured with s2Member.
	
	$msg .= "\n".'my_custom_field_id : '. $my_custom_field_value ;
	
	return $msg;
}
?>

The default email message that is sent to AWeber looks like this. So the hack above, is just appending additional details, which you may want to parse (i.e. via your AWeber Email Parser for s2Member inside your Aweber account):

s2Member w/ PayPal Email ID
Ad Tracking: www.example.com
EMail Address: johndoe22@example.com
Buyer: John Doe
Full Name:  John Doe 
First Name:  John
Last Name: Doe
IP Address: xxx.xxx.xxx.xxx
User ID: 1
Login: johndoe22
Role: s2member_level1
Level: 1
CCaps: music,videos
- end.
Posted: Wednesday Jul 18th, 2012 at 10:56 pm #19710
Raam Dev
Username: Raam
Staff Member

Hi Jeff,

As far as I know, s2Member should already behave the way you’re intending: It should set an EOT that gives the user access for the remainder of their paid time.

I’m going to check with the lead developer on this. In the meantime, if you have logging enabled (Dashboard -› s2Member® -› Authorize.Net® Options -› Account Details -› Logging), could you please share the relevant log entries showing the cancellation as received by s2Member from Authorize.net? Please X-out any private info (e.g., email addresses) before posting.

Posted: Wednesday Jul 18th, 2012 at 10:31 pm #19707
Raam Dev
Username: Raam
Staff Member

Glad to help, Mike!

Posted: Wednesday Jul 18th, 2012 at 10:30 pm #19706
Raam Dev
Username: Raam
Staff Member

You’ll lose those changes upon upgrading, but otherwise that’s fine.

Posted: Wednesday Jul 18th, 2012 at 10:29 pm #19705
Raam Dev
Username: Raam
Staff Member

Angie,

Thank you for offering to share the code! You may want to share it over in the Unofficial Extensions/Hacks forum.

~Awarded Angie Gonzalez the Helpful, Experienced, and Advanced badges.
Posted: Wednesday Jul 18th, 2012 at 10:15 pm #19703
Raam Dev
Username: Raam
Staff Member

Great! Thanks for getting back to me. :)

Posted: Wednesday Jul 18th, 2012 at 10:14 pm #19701
Raam Dev
Username: Raam
Staff Member

Hi Masanori,

What is the problem you’re having? Does that code not work? What happens?

Posted: Wednesday Jul 18th, 2012 at 10:12 pm #19698
Raam Dev
Username: Raam
Staff Member

Fantastic, thank you for sharing that code, Dehaas!

Awarded Dehaas Koenraad the Helpful badge.
Posted: Wednesday Jul 18th, 2012 at 10:10 pm #19697
Raam Dev
Username: Raam
Staff Member

Hi Campbell,

s2Member does not currently provide support for eJunkie; there is no s2Member -> eJunkie integration. However, you could certainly use s2Member to sign up members and then place eJunkie buttons on your secured pages, which would only allow members to make purchases with those eJunkie buttons.

Regarding the Membership Options Page: There are technical reasons why the Membership Options Page cannot be the same as the home page. WordPress handles the Home Page differently (even if you’re using a Static Page as the home page) and those differences make handling it internally as the membership options page very complex.

What you could do is put a bit of PHP on the home page that checks if the user is logged in and if they’re not logged in, you could redirect them to the Membership Options Page (you’d use the PHP Advanced Conditionals, Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals, and a JavaScript redirect like this one).

You could also simply create a second sales page that looks identical to the home page, and then use that as your Membership Options Page.

Posted: Wednesday Jul 18th, 2012 at 9:51 pm #19694
Raam Dev
Username: Raam
Staff Member

Hi Charles,

I will get this over to the accounting department right away. Thank you for your patience.

Posted: Wednesday Jul 18th, 2012 at 7:47 am #19625
Raam Dev
Username: Raam
Staff Member

Hi Buck,

The “You must be logged in to reply to this topic” message is part of bbPress and is the default behavior (see this example thread on the bbPress demo site; make sure you’re logged out). If you want to change the behavior, you’ll need to modify bbPress. You may want to post on their forum for help with that.

Regarding the 404 message: I just installed bbPress on my test s2Member installation and had the same problem. However, after a bit of trial-and-error, I discovered that it wasn’t s2Member causing the problem but bbPress itself. I tried disabling s2Member and even changing my theme to the default WordPress theme (TwentyEleven). I still received the 404 message.

There are several bbPress support threads that mention the 404 problems and they are most often caused by one of two things: an incompatible theme or a strange permalinks issue. I tried changing my permalinks to something else and then changing them back to my original settings and that seemed to fix the issue for me. The 404’s were gone and when I reactivated s2Member the protected forum correctly redirected non-logged in users to the Membership Options page.

Posted: Wednesday Jul 18th, 2012 at 7:08 am #19618
Raam Dev
Username: Raam
Staff Member

Hi Lee,

I will send Jason a message and let him know about your update. Thank you for your patience.

Posted: Wednesday Jul 18th, 2012 at 7:06 am #19617
Raam Dev
Username: Raam
Staff Member

Hi Nigel,

Try adding a success= attribute to your Pro-Form shortcode to redirect the form somewhere else after submitting. See Dashboard -› s2Member® -› PayPal® Pro Forms -› Shortcode Attributes (Explained) for more details.

Posted: Wednesday Jul 18th, 2012 at 7:00 am #19613
Raam Dev
Username: Raam
Staff Member

Hi Paul,

The first part can be accomplished with s2Member: You can create a page where the user can edit and save their profile. On this page you’ll put the s2Member Profile shortcode (see Dashboard -› s2Member® -› General Options -› Member Profile Modifications).

The second part cannot currently be achieved with s2Member: There are no “directory” type features in s2Member that allow you to list users and make them publicly searchable. Since s2Member users are WordPress users, you might be able to find a 3rd party WordPress plugin that generates a Directory for you.

Posted: Wednesday Jul 18th, 2012 at 4:42 am #19596
Raam Dev
Username: Raam
Staff Member

Hi Mike,

You need to add an Initial/Trial period to your Pro-Form that equals the yearly recurring amount. So, your Initial/Trial amount would be $300, with the yearly recurring amount also at $300.

Then when you create your coupon, you want to apply the discount only to the Initial/Trial amount (50$OFF|50.00||ta-only|383). When the user applies that coupon to the Pro-Form, it will deduct $50 from the Initial/Trial amount of $300–charging them $250 the first time–and then charge them $300 every year thereafter.

Posted: Wednesday Jul 18th, 2012 at 4:38 am #19595
Raam Dev
Username: Raam
Staff Member

Hi Kevin,

That error is coming from your theme (…/wp-content/themes/inspiration/functions/…. I recommend contacting the theme developer to resolve this issue.

Posted: Wednesday Jul 18th, 2012 at 4:37 am #19594
Raam Dev
Username: Raam
Staff Member

Hi Mary,

Yes, you can simply bump the user’s roles to Level 2. Changing the role won’t have any affect on the PayPal subscriptions. The only effect would be what your members have access to within s2Member and since you’re going to a higher level, they will automatically have access to everything granted to Level 1, so you should be good to go.

I recommend testing an account first just to make sure everything works as expected.

Posted: Wednesday Jul 18th, 2012 at 4:35 am #19593
Raam Dev
Username: Raam
Staff Member

Hi Kevin,

While the s2Member roles are based on the WordPress Subscriber role capabilities, they are not the same as the Subscriber role. You’ll need to modify the Gravity Forms plugin to add support for the s2Member Level roles. If you’re not comfortable with PHP, we recommend posting your job on jobs.wordpress.net.

Posted: Wednesday Jul 18th, 2012 at 4:33 am #19590
Raam Dev
Username: Raam
Staff Member

Hi Pete,

Yes, you can use the s2Member Advanced Conditionals (see Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals). Also, see this thread for information about working with the more link.

Posted: Wednesday Jul 18th, 2012 at 4:30 am #19588
Raam Dev
Username: Raam
Staff Member

Hi Stephanie,

I’m not sure. There could be an error in the PHP code somewhere on that page.

If you’re not comfortable with PHP, I recommend posting your job on jobs.wordpress.net. Diagnosing custom code like this is outside the scope of our support policy.

Posted: Wednesday Jul 18th, 2012 at 4:26 am #19587
Raam Dev
Username: Raam
Staff Member

Hi Ganaxi,

When someone purchases a Specific Post/Page, there is no username or account tied to that purchase. If someone purchases multiple Specific Post/Pages over the course of a month for example, there’s absolutely no way for s2Member to know that Person A purchased X, Y, and Z posts because there is nothing tying those separate purchases to Person A.

With a membership account, the user receives an account on your site and everything is tied to their username.

When someone purchases a Specific Page/Post, s2Member generates a unique key that gives that person access to that specific post/page for the allotted duration of time. If Person A purchases 3 different posts over the course of a month, s2Member simply generates 3 different unique keys, each time having no knowledge of how many other ‘purchases’ that user may have made… there is nothing tying that user to your site.

Posted: Wednesday Jul 18th, 2012 at 4:19 am #19586
Raam Dev
Username: Raam
Staff Member

Hi Brett,

Looking at your logs there are two things I’d recommend:

1) 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 that might cause problems receiving $_POST data from PayPal.

2) Did you install the Email Log plugin as recommended in Knowledge Base » Troubleshooting Email Delivery Problems? The email log plugin will show you a log of the emails that WordPress sent, so you can check if the Specific Post/Page email is being sent and just not received.

Posted: Wednesday Jul 18th, 2012 at 4:12 am #19585
Raam Dev
Username: Raam
Staff Member

Hi Dehaas,

My question: Is it possible to create a button that only changes the s2membership (from level 1 to level 2) without being redirected to Paypal and having to change payment details?

Unfortunately it’s not possible to create a free upgrade from one level to another using the Pro-Forms. If you want to do that, you’ll need to implement some custom PHP code that changes the users role from s2member_level1 to s2member_level2 using the WordPress remove_role() and add_role() methods. See this link for an example of how these WordPress methods are used.

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

Posted: Wednesday Jul 18th, 2012 at 4:05 am #19581
Raam Dev
Username: Raam
Staff Member

OK, thank you for the update.

Posted: Wednesday Jul 18th, 2012 at 4:04 am #19580
Raam Dev
Username: Raam
Staff Member

Hi Buck,

Have you configured Dashboard -› s2Member® -› Restriction Options -› URI Access Restrictions? If so, could you please share what URI’s you’ve restricted?

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