Page 1 of 1

how to track member downloads? (unsavory customer)

PostPosted: October 6th, 2011, 9:38 pm
by PixelatorNYC
greetings
thank you very much for this beautiful software plug-in.
i am fast on my way to making the money to register a copy.

i have a question.
is there a way to see how many files a user has downloaded?
i believe one of my users subscribed.
downloaded all premium content, cancelled subscription,
and now wants a total refund.
wow!

if they honestly dont like my service i will refund.
but if they are trying to pull a fast one,
how can i check to see if they have download any premium files from
plugins/s2member-files/ directory?

many blessings

Re: how to track member downloads? (unsavory customer)

PostPosted: October 7th, 2011, 3:12 am
by Cristián Lávaque

Re: how to track member downloads? (unsavory customer)

PostPosted: October 9th, 2011, 8:49 pm
by PixelatorNYC
hi christian,

wow thanks for the response, and it is right on time.
i just discovered that this user has filed a PayPal dispute against me.
Even after they admitted to downloading files in a private email, i would like to know the *EXACT* number.

i followed the link, and i saw the information that was there.
i understand the code, but i am not sure how or were to implement that php code to call up the users data.
can i simply embed it in a private wordpress page to get it to pull up? (i am running exec-php)

Code: Select all
<?php
$user_id = 1;
$downloads = get_user_option("s2member_file_download_access_log", $user_id);
print_r($downloads); /* Array of file downloads in the current period of time, as configured by the site owner under Basic Download Restrictions for s2Member. */
?>

Re: how to track member downloads? (unsavory customer)

PostPosted: October 10th, 2011, 9:04 pm
by kmkruthila
Those code only output the file name, I need to show the Post permalink, and thumbnail image from custom fields. so member can easily identify the downloaded files. I know this is possible but I need example code samples. And the User_id filed do not use the <?php echo S2MEMBER_CURRENT_USER_ID; ?> code.

Re: how to track member downloads? (unsavory customer)

PostPosted: October 10th, 2011, 11:44 pm
by PixelatorNYC
hi, so i put that code on a test page and it gave back some interesting results

Code: Select all
Array(
   [1] => Array([date] => 2011-09-12[file] => PIXL8-Fashion-01.zip)
   [2] => Array([date] => 2011-09-12[file] => PIXL8-InDesignRoughGuideAssets.zip)
   [3] => Array([date] => 2011-09-12[file] => PIXL8-BeautyTutorial_02.zip)
   [4] => Array([date] => 2011-09-12[file] => PIXL8-UnderstandingLayers.zip)
   [5] => Array([date] => 2011-09-12[file] => PIXL8-BeautyTutorial_01.zip)
   )


Those particular results generated by the PHP code, are giving all the results for me (the current user).

can someone help me with the correct PHP for a specific user?
here is the code
Code: Select all
<?php
$user_id = 1;
$downloads = get_user_option("s2member_file_download_access_log", $user_id);
print_r($downloads); /* Array of file downloads in the current period of time, as configured by the site owner under Basic Download Restrictions for s2Member. */
?>


thank you very much in advance,

pixelatorNYC

Re: how to track member downloads? (unsavory customer)

PostPosted: October 11th, 2011, 6:39 am
by Eduan
I think it's because the second line has $user_id = 1;, "user_id = 1" is you without fault, you have to obtain that user's ID and change that number.

You could try to get the user's ID, just go to Users under WP Admin and select All Users, find the user and in one of the bars it says Paid Subscr. ID, it should say their ID there. If you can't find that bar then go to the top and in the top-right corner of the screen you'll see Screen Options,select that it shows Paid Subscr. ID.

Hope this helps :) .

Re: how to track member downloads? (unsavory customer)

PostPosted: October 11th, 2011, 8:18 am
by kmkruthila
Thanks. I want member able to view his downloaded file list with relevant post link and thumbnail image.

Re: how to track member downloads? (unsavory customer)

PostPosted: October 11th, 2011, 8:29 am
by Eduan
I don't know how to do that sorry.
Though you could try to use that code somewhere where the user can see it, I can't guarantee it will work.

Hope this helps :) .

Unsavory customer out smarted s2Member????

PostPosted: October 11th, 2011, 1:10 pm
by PixelatorNYC
dear eduan,

that sounds like a brilliant solution.
i am not sure if you have been following this thread carefully.
But the "unsavory" customer in question, logged into my site, downloaded everything, and then cancelled their account.

WordPress/s2Member no longer has their user ID.

also,i tried inputting another active user ID and am still getting the same query results.

$user_id = 1;
is giving me the same results as
$user_id = I-CSFN2GDWXN9U;

am i doing something wrong?
thanks for the help tho.

Re: how to track member downloads? (unsavory customer)

PostPosted: October 11th, 2011, 2:38 pm
by Cristián Lávaque
The subscriber ID is not the same as the user ID. The former would be related to the gateway subscription, the latter to the WordPress account.

Did the user delete his account or just cancel the subscription? If you see him in your users list, just hover over the name and look at the URL, the ID number should be there: &user=...

I hope this helps. :)

Re: how to track member downloads? (unsavory customer)

PostPosted: October 11th, 2011, 8:09 pm
by PixelatorNYC
hi christian,
the user did not delete their account. just cancel their subscription.
their user id is 19, but when i put the following code, wordpress does give me anything.
Code: Select all
<?php
$user_id = 19;
$downloads = get_user_option("s2member_file_download_access_log", $user_id);
print_r($downloads); /* Array of file downloads in the current period of time, as configured by the site owner under Basic Download Restrictions for s2Member. */
?>


what am i doing wrong?

Re: how to track member downloads? (unsavory customer)

PostPosted: October 12th, 2011, 6:52 pm
by Cristián Lávaque
I see, but if you use it with another user's ID you get data? Then it could be that the download access log for that user is actually empty... Are you positive he downloaded the files?

Re: how to track member downloads? (unsavory customer)

PostPosted: October 13th, 2011, 2:50 am
by Harty
If you log into your google analytics account you maybe able to see the number of downloads. But big picture... You may need to review your sites terms and conditions to give yourself some protection from being exploited in future. Put this experience down to experience and learn from it.

Re: how to track member downloads? (unsavory customer)

PostPosted: October 18th, 2011, 10:01 am
by PixelatorNYC
@Harty. Your right. I had to chalk this episode up as a learning experience.
Now i have NO REFUNDS on my terms and conditions page.

@Cristian. After checking all of my users w/ the above code and the propper USER_ID. s2Member has no evidence that the "unsavory" customer downloaded anything. Although she told me in several emails that she did download.

Anyway -- this was a good learning experience.
Thanks to everyone that helped.

Cheers!