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.

David Welch


My Latest Replies (From Various Topics)

Viewing 25 replies - 151 through 175 (of 407 total)
Author Replies
Author Replies
Posted: Thursday Jun 7th, 2012 at 12:50 am #15757
David Welch
Username: dwbiz05

Well, unfortunately Paypal for some reason decided to de-activate my Pro Account (of course for no good reason… thank you paypal).

So, I won’t be able to debug any more payflow issues, but hopefully we got on the right track.. :(

Dave

Posted: Wednesday Jun 6th, 2012 at 3:47 pm #15717
David Welch
Username: dwbiz05

I don’t know of any way to force that link to a different location. There may be a filter for it but I don’t know off the top of my head.

I just put a link to my registration form in the menu or somewhere on the home page.

Dave

Posted: Wednesday Jun 6th, 2012 at 3:33 pm #15715
David Welch
Username: dwbiz05

Is it turned on?

S2mebmer -> Paypal Options -> PayPal Account Details -> Enable Logging Routines?

Dave

Posted: Wednesday Jun 6th, 2012 at 2:27 pm #15708
David Welch
Username: dwbiz05

What does your s2member payflow log say?

Dave

Posted: Wednesday Jun 6th, 2012 at 2:24 pm #15707
David Welch
Username: dwbiz05

ah, ok.

This is just a php function. You would have to know and pass the user_id variable to that function in order for it to work.
It’s not just something you plug in somewhere.
I’ll see if I can put something together later that might make it easier.
Are you wanting to re-set everyone or just certain people?
Dave

Posted: Wednesday Jun 6th, 2012 at 10:56 am #15691
David Welch
Username: dwbiz05

I think you have to keep in mind the purpose of s2member. I’ts not designed to be a shopping cart. It’s designed to help you protect content and sell access to that content.

So if you are looking to sell products outside the content / downloads this won’t do everything.

It just depends on what exactly your trying to accomplish. You can bundle packages of content together but there is no user-selection cart like with an actual e-commerce plugin.

I agree that it would be nice to have a demo site where people can see the functions in action. However, that could be a real pain when someone messes it up! lol!

Hope that helps clarify a little,

Dave

Posted: Wednesday Jun 6th, 2012 at 10:47 am #15690
David Welch
Username: dwbiz05

yeah it’s only $30 per month with the $40 set-up if you are doing it through the paypal pro version of payflow.

See, Payflow is an option that people can purchase (and pay a lot more for) if they have a merchant account outside of Paypal.

But it’s cheaper if you are already paying for the paypal pro service.

Dave

Posted: Wednesday Jun 6th, 2012 at 9:15 am #15683
David Welch
Username: dwbiz05

Also, I found this in the s2member Codex:

s2member_pro_login_widget()
public  str s2member_pro_login_widget (array $options, array $args)
Allows for the inclusion of the Pro Login Widget directly into a theme/plugin file.
This function will return the HTML output from the widget function call. Example usage: <?php echo s2member_pro_login_widget(); ?>
The $options parameter (array) is completely optional ( i.e. NOT required ). It can be passed in as an array of options; overriding some or all of these defaults:
"title" => "Membership Login" Title when NOT logged in, or leave this blank if you'd prefer not to show a title.
"signup_url" => "%%automatic%%" Full Signup URL, or use %%automatic%% for the Membership Options Page. If you leave this blank, it will not be shown.
"login_redirect" => "" Empty ( i.e. "" ) = Login Welcome Page, %%previous%% = Previous Page, %%home%% = Home Page, or use a full URL of your own.
"logged_out_code" => "" HTML/PHP code to display when logged out. May also contain WP Shortcodes if you like.
"profile_title" => "My Profile Summary" Title when a User is logged in. Or you can leave this blank if you'd prefer not to show a title.
"display_gravatar" => "1" Display Gravatar image when logged in? 1 = yes, 0 = no. Gravatars are based on email address.
"link_gravatar" => "1" Link Gravatar image to Gravatar.com? 1 = yes, 0 = no. Allows Users to setup a Gravatar.
"display_name" => "1" Display the current User's WordPress® "Display Name" when logged in? 1 = yes, 0 = no.
"logged_in_code" => "" HTML/PHP code to display when logged in. May also contain WP Shortcodes if you like.
"logout_redirect" => "%%home%%" Empty ( i.e. "" ) = Login Screen, %%previous%% = Previous Page, %%home%% = Home Page, or use a full URL of your own.
"my_account_url" => "%%automatic%%" Full URL of your own, or use %%automatic%% for the Login Welcome Page. Leave empty to not show this at all.
"my_profile_url" => "%%automatic%%" Full URL of your own, or use %%automatic%% for a JavaScript popup. Leave empty to not show this at all.
The $args parameter (array) is also completely optional ( i.e. NOT required ). It can be passed in as an array of options: overriding some or all of these defaults:
"before_widget" => "" HTML code to display before the widget.
"before_title" => "<h3>" HTML code to display before the title.
"after_title" => "</h3>" HTML code to display after the title.
"after_widget" => "" HTML code to display after the widget.

This allows you to add options and arguments to your login code in the functions.php file like so:

<?php
add_shortcode('my-login-shortcode','my_login_shortcode');

function my_login_shortcode(){

	$options = array("login_redirect" => "%%previous%%",
				"display_gravatar" => "1");
				
	return s2member_pro_login_widget($options);
	
}
?>

Hope that helps,

Dave

Posted: Wednesday Jun 6th, 2012 at 8:36 am #15682
David Welch
Username: dwbiz05

try all-hongoss

If I remember correctly, when s2member is parsing out the “all-” inputs it removes the “all-” and trailing “s” to check for the correct access.

It’s not stated well in the documentation. I had to look at the source to find that… if I’m correct.. lol.

Hope that helps,

Dave

Posted: Wednesday Jun 6th, 2012 at 8:34 am #15681
David Welch
Username: dwbiz05

Could you link to the post you found?

Thanks!

Dave

Posted: Wednesday Jun 6th, 2012 at 8:28 am #15680
David Welch
Username: dwbiz05

Try adding this to your theme’s functions.php file:

<?php
add_shortcode('my-login-shortcode','my_login_shortcode');

function my_login_shortcode(){
	return s2member_pro_login_widget();
}
?>

Then use this shortcode:

[my-login-shortcode \]

I have not tested this to it’s full extent, but it seemed to work for me. I don’t know that there is a standard shortcode for this. I didn’t see one.

Hope that helps.

Dave

Posted: Wednesday Jun 6th, 2012 at 1:02 am #15637
David Welch
Username: dwbiz05

Check out this section of S2member (on your install):

S2member -> API / Scripting -> S2Member Content Dripping.

Right now there isn’t any shortcodes to do this but the php logic is pretty simple if you read through it. You will need to install another plugin that will let you run php code in your posts and pages (which is referrenced in the information).

Hope that helps,

Dave

Posted: Wednesday Jun 6th, 2012 at 12:53 am #15636
David Welch
Username: dwbiz05

Hey,

It’s late, so the quality probably isn’t that good… lol!

I thought I would just do this while I’m thinking about it. Let me know if you want something different or need something else explained or shown.

http://www.youtube.com/watch?v=A0jOq2MRTVQ

Dave

Posted: Tuesday Jun 5th, 2012 at 9:02 pm #15607
David Welch
Username: dwbiz05

I’m looking into the source code but as you see above, this isn’t the only issue. I’ll post anything I find or any solutions I come up with.

It really does need to be addressed on a development level though. Especially since it’s part of the paid version.

Dave

Posted: Tuesday Jun 5th, 2012 at 8:59 pm #15605
David Welch
Username: dwbiz05

Jim, do you have the s2member paypal loggin turned on?

If so, go to this location: wp-content/plugins/s2member-logs/paypal-payflow-api.log

That should list the actual issue you are having in the transaction data.

Hope that helps you hunt it down.

Dave

Posted: Tuesday Jun 5th, 2012 at 8:56 pm #15603
David Welch
Username: dwbiz05

Payflow AIP credentials is what you use to log into manager.paypal.com.

So based on what you are saying if you have paypal Pro with the new Payflow:

Username: user, or your merchant login if you haven’t set up any secondary users in manager.paypal.com.
Password: same as you log into manager.paypal.com
API Partner: PayPal
Vendor: your merchant login (this would be the 2nd time if you haven’t set up any secondary users in manager.paypal.com)

I had to get that tidbit from Paypal customer service.. lol

That should allow the transactions to start being sent, however, you can see here that there are still some bugs with the payflow system integration on s2member…

Setting up Recurring billing is easy. In manager.paypal.com just click the “buy” link under Recurring billing in the bottom middle of the screen. It should take you through everything. you will see it listed and say Live in the box in the lower right that lists your services. Once it says live, it should be working.

Hope that helps,
Dave

Posted: Tuesday Jun 5th, 2012 at 5:37 pm #15570
David Welch
Username: dwbiz05

OK,

Now I tried to do a transaction with paypal instead of the credit card choice and I got this error… lol!

Error #7. Field format error: 10471 – ReturnURL is invalid.

Here are the logs:

'TRXTYPE' => 'S',
'ACTION' => 'S',
'TENDER' => 'P',
'RETURNURL' => 'https://xxxxxx.com/join_now/?s2member_paypal_xco=s2member_pro_paypal_checkout_return',
'CANCELURL' => 'https://xxxxxx.com/join_now/?s2member_paypal_xco=s2member_pro_paypal_checkout_cancel',
'PAGESTYLE' => 'paypal',
'LOCALECODE' => '',
'NOSHIPPING' => '1',
'ALLOWNOTE' => '0',
'AMT' => '0.00',
'CURRENCY' => 'USD',
'L_BILLINGTYPE0' => 'RecurringPayments',
'L_BILLINGAGREEMENTDESCRIPTION0' => 'xxxxxxx',
'ADDROVERRIDE' => '1',
'SHIPTONAME' => 'David Welch',
'SHIPTOSTREET' => '',
'SHIPTOCITY' => '',
'SHIPTOSTATE' => '',
'SHIPTOCOUNTRY' => 'US',
'SHIPTOZIP' => '',
'EMAIL' => 'xxxxxx',
'VERBOSITY' => 'HIGH',

Any thoughts?

Dave

Posted: Tuesday Jun 5th, 2012 at 2:27 pm #15560
David Welch
Username: dwbiz05

Have you tried using the php conditionals in your archives.php theme file around the loop content?

Something like….

<?php
if(current_user_can('access_s2member_level1')){
	/*loop content here*/
}
else {
	echo 'You do not currently have access to this page. Please register.... blah blah blah';
}
?>

I just did that from memory so excuse any errors… lol.

NOTE: if you don’t have an archive.php you could do the same thing your index or other template page, but you’ll need to check more info about the content to make sure it’s archived posts.

Hope that helps,
Dave

Posted: Tuesday Jun 5th, 2012 at 2:20 pm #15559
David Welch
Username: dwbiz05

S2Member Pro has Paypal Pro Registration forms (one is a free registration). Other than that, you would have to code your own forms, form validation, error checking etc.

With Pro, you can just create the form and put the shortcode on any page or post you want.

Hope that helps,
Dave

Posted: Tuesday Jun 5th, 2012 at 2:17 pm #15558
David Welch
Username: dwbiz05

S2member really is more about managing access to content than it is about managing users. This is not a part of the s2member program.

However, you could probably accomplish this, but you would have to create it yourself.

Dave

Posted: Tuesday Jun 5th, 2012 at 2:10 pm #15556
David Welch
Username: dwbiz05

The shortcode doesn’t have this option. I had a similar issue with trying to set up 2 trial periods. If I remember correctly I had to use a hook in the paypal button creation to add extra stuff to it. I don’t know if that will work though, expecially if you are using encrypted buttons. In order to open it you would have to either find a way to add a target to the form tag either via a hook or possibly with Jquery after the button is created (not tried second solution).

Dave

Posted: Tuesday Jun 5th, 2012 at 11:11 am #15528
David Welch
Username: dwbiz05

I just checked the payflow recurring billing documentation and you are sending EXPDATE as 6 digits instead of the limited 4 digits…

Dave

  • This reply was modified 4 years, 7 months ago by  David Welch.
  • This reply was modified 4 years, 7 months ago by  David Welch.
Posted: Tuesday Jun 5th, 2012 at 10:58 am #15525
David Welch
Username: dwbiz05

I’ve checked all my settings and they all are correct, from what I can tell

I did some snooping at the logs and found this…

This transaction cannot be processed. Please enter a valid Credit Card Verification.
EXPDATE=0120

this should be
EXPDATE=0114

So it looks like S2 is not parsing the yyyy correctly… it’s attaching the first two digits instead of the last two…

Or I’m crazy… :)

EDIT: I’m not crazy, I typed in my expiration date backwards = 1420 instead of 2014 and it went through fine! LOL! I’d say this is a bug…

Dave

  • This reply was modified 4 years, 7 months ago by  David Welch.
Posted: Thursday Apr 26th, 2012 at 12:17 am #11896
David Welch
Username: dwbiz05

UPDATE:

There were a couple errors in the code. The correct code should be something like this:

<?php
add_action('ws_plugin__s2member_during_login_redirect','my_login_function');

function my_login_function(){
    //Check to see if there is a page with that title in the system.
    $sql = "SELECT ID FROM wp_posts WHERE post_name = '".S2MEMBER_CURRENT_USER_LOGIN."' AND post_status = 'publish' AND post_type = 'page' LIMIT 1";
    $count = mysql_num_rows(mysql_query($sql));
    if($count == 0){
        wp_redirect(site_url('general-page-slug'));
	exit;
    }
}
?>

Sorry for the errors to anyone who was trying to use it.

Dave

Posted: Saturday Apr 21st, 2012 at 10:26 am #11506
David Welch
Username: dwbiz05

s2member typically only protects pages that are part of the wordpress database or files that are located in the s2member-files directory. There is another option for protecting other pages/applications on your server which you can find here:

http://www.s2member.com/kb/protecting-non-wordpress-content-with-s2member/

Hope that helps,
Dave

Viewing 25 replies - 151 through 175 (of 407 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.