|
HI using s2 member pro with file upload pro.
Basically i want to protect files from publiuc access and give access to uploaded files to administrator only. The folder that users upload into is listed below. Within the ‘uploads’ directory each user is given a folder.
<?php
add_filter('ws_plugin__s2member_files_dir', 's2_download_dir');
function s2_download_dir()
{
return 'wp/wp-content/uploads/user_uploads/';
}
added the htaccess file in the uploads folder.
Cant access files through url. any ideas?
|
|
Hi,
Anything more on this?
|
|
HI Cristian,
That seems a little confusing; at the minute if a subscriber is logged in they can use the pro form button (to get L1 access) and they can (as desired) bypass the auto return page.
Are you saying that if they purchase something else to give them additional custom capabvilities they will have to go through the autoreturn page?
For i’d like to look like a standard paypal button (i.e. minus username etc.
[s2Member-Pro-PayPal-Form level="1" ccaps="hgvdriver" desc="$0.01 EUR / One Time (for lifetime access, non-recurring, no trial)" ps="paypal" lc="" cc="EUR" dg="0" ns="1" custom="www.xxx.ie" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="L" rr="BN" rrt="" rra="2" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" success="https://www.scitrans.ie/wp/thank-you/?subscr_id=%%subscr_id%%" /]
Two last things… the s2 login widget always sends the user to thankyou even if ‘previous page is selected, any thoughts?
Finally…. any way to bypass wp-login and just go to the site page with login widget?
|
|
Hi Cristian,
Just discovered that the success attribute works with a pro form button but not standard paypal button. Any ideas why?
Trying to hide aspects of the paypal pro form (username etc) with style sheet, getting nothing on that.
|
|
and here
LOG ENTRY: Tue Jun 18th, 2013 @ precisely 9:32 am UTC
PHP v5.3.26 :: WordPress® v3.5.1 :: s2Member® v130617 :: s2Member® Pro v130617
Memory 6.02 MB :: Real Memory 6.25 MB :: Peak Memory 6.11 MB :: Real Peak Memory 6.25 MB
http://www.XXX.ie/wp/?s2member_paypal_notify=1
User-Agent:
array (
‘mc_gross’ => ‘0.01’,
‘invoice’ => ’51c02932df94b~193.1.82.90′,
‘protection_eligibility’ => ‘Ineligible’,
‘payer_id’ => ‘YV5BBGU6CW3U8’,
‘tax’ => ‘0.00’,
‘payment_date’ => ’02:32:54 Jun 18, 2013 PDT’,
‘payment_status’ => ‘Completed’,
‘charset’ => ‘windows-1252’,
‘first_name’ => ‘simon’,
‘option_selection1′ => ’12’,
‘option_selection2’ => ‘193.1.82.90’,
‘mc_fee’ => ‘0.01’,
‘notify_version’ => ‘3.7’,
‘custom’ => ‘www.XXX.ie’,
‘payer_status’ => ‘verified’,
‘business’ => ‘XXX@XXX.ie’,
‘quantity’ => ‘1’,
‘verify_sign’ => ‘AvS4yPiuKVcZEcpO0Qqb0rOAmA24AoHMr-YUDlPWfplGzBpFpN4-YBsv’,
‘payer_email’ => ‘XXXX@XXX.ie’,
‘option_name1’ => ‘Referencing Customer ID’,
‘option_name2’ => ‘Customer IP Address’,
‘txn_id’ => ‘54904560XY1513347’,
‘payment_type’ => ‘instant’,
‘last_name’ => ‘mccabe’,
‘receiver_email’ => ‘XXX@XXX.ie’,
‘payment_fee’ => ”,
‘receiver_id’ => ‘KTJ5T9AULLHZ2’,
‘txn_type’ => ‘web_accept’,
‘item_name’ => ‘HGV Driver Course’,
‘mc_currency’ => ‘EUR’,
‘item_number’ => ‘1:hgvdriver’,
‘residence_country’ => ‘IE’,
‘handling_amount’ => ‘0.00’,
‘transaction_subject’ => ‘www.XXX.ie’,
‘payment_gross’ => ”,
‘shipping’ => ‘0.00’,
‘ipn_track_id’ => ’54f1d77166021′,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Tue Jun 18, 2013 9:32:57 am UTC’,
1 => ‘s2Member POST vars verified through a POST back to PayPal®.’,
2 => ‘s2Member originating domain ( `$_SERVER[“HTTP_HOST”]` ) validated.’,
3 => ‘s2Member `txn_type` identified as ( `web_accept|subscr_signup` ).’,
4 => ‘s2Member `txn_type` identified as ( `web_accept|subscr_signup` ) w/ update vars.’,
5 => ‘s2Member Level/Capabilities updated w/ advanced update routines.’,
6 => ‘Modification Confirmation Email sent to Customer, with a URL that provides them with a way to log back in.’,
7 => ‘User exists. Handling `payment` for Subscription via ( `web_accept` ).’,
8 => ‘Storing IPN signup vars now. These are associated with a User\’s account record; for future reference.’,
),
‘subscr_gateway’ => ‘paypal’,
‘subscr_id’ => ‘54904560XY1513347’,
‘eotper’ => NULL,
‘ccaps’ => ‘hgvdriver’,
‘level’ => ‘1’,
‘ip’ => ‘193.1.82.90’,
‘period1’ => ‘0 D’,
‘mc_amount1’ => ‘0.00’,
‘period3’ => ‘1 L’,
‘mc_amount3’ => ‘0.01’,
‘initial_term’ => ‘0 D’,
‘initial’ => ‘0.01’,
‘regular’ => ‘0.01’,
‘regular_term’ => ‘1 L’,
‘recurring’ => ‘0’,
)
|
|
log here
LOG ENTRY: Tue Jun 18th, 2013 @ precisely 9:33 am UTC
PHP v5.3.26 :: WordPress® v3.5.1 :: s2Member® v130617 :: s2Member® Pro v130617
Memory 5.85 MB :: Real Memory 6.00 MB :: Peak Memory 5.97 MB :: Real Peak Memory 6.25 MB
http://www.XXX.ie/wp/?s2member_paypal_return=1&s2member_paypal_return_tra=fnIyOlVNNWtlN3F5dDJhRXNZbGE4dG9JcXdITmNqNFV5RkFyOjNmNmFjZTYzYWIxYzY2Y2M1N2Q4ZmVjYjY2YWQyN2JjfLT18giVWbkqS2h6be3pk5m-Duy7tc8zsqssbGjFGurVooTurV3vO2B5Hvd7kxUcGOghlg7h6nLNL_OviTV4e79FadNGdwdAqNTfdPZrhtON200A5UKq26iEAoXuLexLftNLXPXkYIY9Wn6my94uy9tFgKjlezUY-s71TMHWhCf-xiFt-338lkIcjtpQb0nXX1WI44WKdnOSSa-L7Z7eVpzQ8STz-7Nqe3aHDDQxjyrWZQlZ2rJGR1mtQDSTQAs1aPrzPZ2Xi1Z96wM70phV_5rX43cdG8_FCL48BDZsqRcL2FD0HoLSJgng1OSoPYsFz0CG7JFJJqGymMiOdBuObWP-1tiK7so5bgZXPkQurB9RFcDrbxpizlIcz4LXQ7nstg&s2member_paypal_return_success=https%3A%2F%2Fwww.scitrans.ie%2Fwp%2Fthank-you%2F%3Fsubscr_id%3D%25%25subscr_id%25%25&tx=54904560XY1513347&st=Completed&amt=0.01&cc=EUR&cm=www%2escitrans%2eie&item_number=1:hgvdriver
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
array (
‘mc_gross’ => ‘0.01’,
‘invoice’ => ’51c02932df94b~193.1.82.90′,
‘protection_eligibility’ => ‘Ineligible’,
‘payer_id’ => ‘YV5BBGU6CW3U8’,
‘tax’ => ‘0.00’,
‘payment_date’ => ’02:32:54 Jun 18, 2013 PDT’,
‘payment_status’ => ‘Completed’,
‘charset’ => ‘windows-1252’,
‘first_name’ => ‘simon’,
‘option_selection1′ => ’12’,
‘option_selection2’ => ‘193.1.82.90’,
‘mc_fee’ => ‘0.01’,
‘custom’ => ‘www.XXXXX.ie’,
‘payer_status’ => ‘verified’,
‘business’ => XXX@XXX.ie’,
‘quantity’ => ‘1’,
‘payer_email’ => ‘XXX@XXXXie’,
‘option_name1’ => ‘Referencing Customer ID’,
‘option_name2’ => ‘Customer IP Address’,
‘txn_id’ => ‘54904560XY1513347’,
‘payment_type’ => ‘instant’,
‘last_name’ => ‘XXX’,
‘receiver_email’ => ‘XXX@XXX.ie’,
‘receiver_id’ => ‘KTJ5T9AULLHZ2’,
‘txn_type’ => ‘web_accept’,
‘item_name’ => ‘HGV Driver Course’,
‘mc_currency’ => ‘EUR’,
‘item_number’ => ‘1:hgvdriver’,
‘residence_country’ => ‘IE’,
‘handling_amount’ => ‘0.00’,
‘transaction_subject’ => ‘www.XXXX.ie’,
‘shipping’ => ‘0.00’,
‘s2member_log’ =>
array (
0 => ‘Return-Data received on: Tue Jun 18, 2013 9:33:03 am UTC’,
1 => ‘s2Member POST vars verified through a POST back to PayPal®.’,
2 => ‘s2Member originating domain ( `$_SERVER[“HTTP_HOST”]` ) validated.’,
3 => ‘s2Member `txn_type` identified as ( `web_accept|subscr_signup|subscr_payment` ).’,
4 => ‘s2Member `txn_type` identified as ( `web_accept|subscr_signup|subscr_payment` ) w/ update vars.’,
5 => ‘s2Member Level/Capabilities updated w/ advanced update routines.’,
6 => ‘Transient Tracking Cookie set on ( `web_accept|subscr_signup|subscr_payment` ) w/ update vars.’,
7 => ‘Redirecting Customer to the Login Page (after displaying a quick thank-you message). They need to log back in.’,
),
‘subscr_gateway’ => ‘paypal’,
‘subscr_id’ => ‘54904560XY1513347’,
‘eotper’ => NULL,
‘ccaps’ => ‘hgvdriver’,
‘level’ => ‘1’,
‘ip’ => ‘193.1.82.90’,
‘period1’ => ‘0 D’,
‘mc_amount1’ => ‘0.00’,
‘period3’ => ‘1 L’,
‘mc_amount3’ => ‘0.01’,
‘initial_term’ => ‘0 D’,
‘initial’ => ‘0.01’,
‘regular’ => ‘0.01’,
‘regular_term’ => ‘1 L’,
‘recurring’ => ‘0’,
‘s2member_paypal_return_success’ => ‘https://www.scitrans.ie/wp/thank-you/?subscr_id=%%subscr_id%%’,
‘s2member_paypal_return_tra’ => ‘fnIyOlVNNWtlN3F5dDJhRXNZbGE4dG9JcXdITmNqNFV5RkFyOjNmNmFjZTYzYWIxYzY2Y2M1N2Q4ZmVjYjY2YWQyN2JjfLT18giVWbkqS2h6be3pk5m-Duy7tc8zsqssbGjFGurVooTurV3vO2B5Hvd7kxUcGOghlg7h6nLNL_OviTV4e79FadNGdwdAqNTfdPZrhtON200A5UKq26iEAoXuLexLftNLXPXkYIY9Wn6my94uy9tFgKjlezUY-s71TMHWhCf-xiFt-338lkIcjtpQb0nXX1WI44WKdnOSSa-L7Z7eVpzQ8STz-7Nqe3aHDDQxjyrWZQlZ2rJGR1mtQDSTQAs1aPrzPZ2Xi1Z96wM70phV_5rX43cdG8_FCL48BDZsqRcL2FD0HoLSJgng1OSoPYsFz0CG7JFJJqGymMiOdBuObWP-1tiK7so5bgZXPkQurB9RFcDrbxpizlIcz4LXQ7nstg’,
)
|
|
here is a log file
LOG ENTRY: Tue Jun 18th, 2013 @ precisely 9:33 am UTC
PHP v5.3.26 :: WordPress® v3.5.1 :: s2Member® v130617 :: s2Member® Pro v130617
Memory 5.85 MB :: Real Memory 6.00 MB :: Peak Memory 5.97 MB :: Real Peak Memory 6.25 MB
http://www.scitrans.ie/wp/?s2member_paypal_return=1&s2member_paypal_return_tra=fnIyOlVNNWtlN3F5dDJhRXNZbGE4dG9JcXdITmNqNFV5RkFyOjNmNmFjZTYzYWIxYzY2Y2M1N2Q4ZmVjYjY2YWQyN2JjfLT18giVWbkqS2h6be3pk5m-Duy7tc8zsqssbGjFGurVooTurV3vO2B5Hvd7kxUcGOghlg7h6nLNL_OviTV4e79FadNGdwdAqNTfdPZrhtON200A5UKq26iEAoXuLexLftNLXPXkYIY9Wn6my94uy9tFgKjlezUY-s71TMHWhCf-xiFt-338lkIcjtpQb0nXX1WI44WKdnOSSa-L7Z7eVpzQ8STz-7Nqe3aHDDQxjyrWZQlZ2rJGR1mtQDSTQAs1aPrzPZ2Xi1Z96wM70phV_5rX43cdG8_FCL48BDZsqRcL2FD0HoLSJgng1OSoPYsFz0CG7JFJJqGymMiOdBuObWP-1tiK7so5bgZXPkQurB9RFcDrbxpizlIcz4LXQ7nstg&s2member_paypal_return_success=https%3A%2F%2Fwww.scitrans.ie%2Fwp%2Fthank-you%2F%3Fsubscr_id%3D%25%25subscr_id%25%25&tx=54904560XY1513347&st=Completed&amt=0.01&cc=EUR&cm=www%2escitrans%2eie&item_number=1:hgvdriver
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
array (
‘mc_gross’ => ‘0.01’,
‘invoice’ => ’51c02932df94b~193.1.82.90′,
‘protection_eligibility’ => ‘Ineligible’,
‘payer_id’ => ‘YV5BBGU6CW3U8’,
‘tax’ => ‘0.00’,
‘payment_date’ => ’02:32:54 Jun 18, 2013 PDT’,
‘payment_status’ => ‘Completed’,
‘charset’ => ‘windows-1252’,
‘first_name’ => ‘simon’,
‘option_selection1′ => ’12’,
‘option_selection2’ => ‘193.1.82.90’,
‘mc_fee’ => ‘0.01’,
‘custom’ => ‘www.scitrans.ie’,
‘payer_status’ => ‘verified’,
‘business’ => ‘robert@scitrans.ie’,
‘quantity’ => ‘1’,
‘payer_email’ => ‘simon.mccabe@lyit.ie’,
‘option_name1’ => ‘Referencing Customer ID’,
‘option_name2’ => ‘Customer IP Address’,
‘txn_id’ => ‘54904560XY1513347’,
‘payment_type’ => ‘instant’,
‘last_name’ => ‘mccabe’,
‘receiver_email’ => ‘robert@scitrans.ie’,
‘receiver_id’ => ‘KTJ5T9AULLHZ2’,
‘txn_type’ => ‘web_accept’,
‘item_name’ => ‘HGV Driver Course’,
‘mc_currency’ => ‘EUR’,
‘item_number’ => ‘1:hgvdriver’,
‘residence_country’ => ‘IE’,
‘handling_amount’ => ‘0.00’,
‘transaction_subject’ => ‘www.scitrans.ie’,
‘shipping’ => ‘0.00’,
‘s2member_log’ =>
array (
0 => ‘Return-Data received on: Tue Jun 18, 2013 9:33:03 am UTC’,
1 => ‘s2Member POST vars verified through a POST back to PayPal®.’,
2 => ‘s2Member originating domain ( `$_SERVER[“HTTP_HOST”]` ) validated.’,
3 => ‘s2Member `txn_type` identified as ( `web_accept|subscr_signup|subscr_payment` ).’,
4 => ‘s2Member `txn_type` identified as ( `web_accept|subscr_signup|subscr_payment` ) w/ update vars.’,
5 => ‘s2Member Level/Capabilities updated w/ advanced update routines.’,
6 => ‘Transient Tracking Cookie set on ( `web_accept|subscr_signup|subscr_payment` ) w/ update vars.’,
7 => ‘Redirecting Customer to the Login Page (after displaying a quick thank-you message). They need to log back in.’,
),
‘subscr_gateway’ => ‘paypal’,
‘subscr_id’ => ‘54904560XY1513347’,
‘eotper’ => NULL,
‘ccaps’ => ‘hgvdriver’,
‘level’ => ‘1’,
‘ip’ => ‘193.1.82.90’,
‘period1’ => ‘0 D’,
‘mc_amount1’ => ‘0.00’,
‘period3’ => ‘1 L’,
‘mc_amount3’ => ‘0.01’,
‘initial_term’ => ‘0 D’,
‘initial’ => ‘0.01’,
‘regular’ => ‘0.01’,
‘regular_term’ => ‘1 L’,
‘recurring’ => ‘0’,
‘s2member_paypal_return_success’ => ‘https://www.scitrans.ie/wp/thank-you/?subscr_id=%%subscr_id%%’,
‘s2member_paypal_return_tra’ => ‘fnIyOlVNNWtlN3F5dDJhRXNZbGE4dG9JcXdITmNqNFV5RkFyOjNmNmFjZTYzYWIxYzY2Y2M1N2Q4ZmVjYjY2YWQyN2JjfLT18giVWbkqS2h6be3pk5m-Duy7tc8zsqssbGjFGurVooTurV3vO2B5Hvd7kxUcGOghlg7h6nLNL_OviTV4e79FadNGdwdAqNTfdPZrhtON200A5UKq26iEAoXuLexLftNLXPXkYIY9Wn6my94uy9tFgKjlezUY-s71TMHWhCf-xiFt-338lkIcjtpQb0nXX1WI44WKdnOSSa-L7Z7eVpzQ8STz-7Nqe3aHDDQxjyrWZQlZ2rJGR1mtQDSTQAs1aPrzPZ2Xi1Z96wM70phV_5rX43cdG8_FCL48BDZsqRcL2FD0HoLSJgng1OSoPYsFz0CG7JFJJqGymMiOdBuObWP-1tiK7so5bgZXPkQurB9RFcDrbxpizlIcz4LXQ7nstg’,
)
|
|
HI I would like success to take me to the course page i initially left. Cant get sucess going at all;
this is what vim using. I have pro access but just using the standard paypal buttons.
Tachograph 101 membership[s2Member-PayPal-Button level="3" ccaps="" desc="Gold Member / description and pricing details here." ps="paypal" lc="" cc="EUR" dg="0" ns="1" custom="www.scitrans.ie" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="L" rr="BN" rrt="" rra="1" image="default" output="button" success="/tachograph-002-2/" /]
|