PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

how to track member downloads? (unsavory customer)

s2Member Plugin. A Membership plugin for WordPress®.

how to track member downloads? (unsavory customer)

Postby PixelatorNYC » October 6th, 2011, 9:38 pm

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
HTTP://WWW.PIXELATOR.BIZ | Photography | Grfx Design | Training Videos
User avatar
PixelatorNYC
Registered User
Registered User
 
Posts: 22
Joined: September 19, 2011
Location: los angeles / brooklyn

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

Postby Cristián Lávaque » October 7th, 2011, 3:12 am

Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

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

Postby PixelatorNYC » October 9th, 2011, 8:49 pm

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. */
?>
HTTP://WWW.PIXELATOR.BIZ | Photography | Grfx Design | Training Videos
User avatar
PixelatorNYC
Registered User
Registered User
 
Posts: 22
Joined: September 19, 2011
Location: los angeles / brooklyn

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

Postby kmkruthila » October 10th, 2011, 9:04 pm

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.
User avatar
kmkruthila
Registered User
Registered User
 
Posts: 6
Joined: September 24, 2011

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

Postby PixelatorNYC » October 10th, 2011, 11:44 pm

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
HTTP://WWW.PIXELATOR.BIZ | Photography | Grfx Design | Training Videos
User avatar
PixelatorNYC
Registered User
Registered User
 
Posts: 22
Joined: September 19, 2011
Location: los angeles / brooklyn

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

Postby Eduan » October 11th, 2011, 6:39 am

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 :) .
Last edited by Eduan on October 11th, 2011, 1:20 pm, edited 3 times in total.
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

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

Postby kmkruthila » October 11th, 2011, 8:18 am

Thanks. I want member able to view his downloaded file list with relevant post link and thumbnail image.
User avatar
kmkruthila
Registered User
Registered User
 
Posts: 6
Joined: September 24, 2011

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

Postby Eduan » October 11th, 2011, 8:29 am

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 :) .
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Unsavory customer out smarted s2Member????

Postby PixelatorNYC » October 11th, 2011, 1:10 pm

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.
HTTP://WWW.PIXELATOR.BIZ | Photography | Grfx Design | Training Videos
User avatar
PixelatorNYC
Registered User
Registered User
 
Posts: 22
Joined: September 19, 2011
Location: los angeles / brooklyn

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

Postby Cristián Lávaque » October 11th, 2011, 2:38 pm

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. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

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

Postby PixelatorNYC » October 11th, 2011, 8:09 pm

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?
HTTP://WWW.PIXELATOR.BIZ | Photography | Grfx Design | Training Videos
User avatar
PixelatorNYC
Registered User
Registered User
 
Posts: 22
Joined: September 19, 2011
Location: los angeles / brooklyn

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

Postby Cristián Lávaque » October 12th, 2011, 6:52 pm

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?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

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

Postby Harty » October 13th, 2011, 2:50 am

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.
User avatar
Harty
Registered User
Registered User
 
Posts: 104
Joined: April 27, 2011
Location: New Zealand

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

Postby PixelatorNYC » October 18th, 2011, 10:01 am

@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!
HTTP://WWW.PIXELATOR.BIZ | Photography | Grfx Design | Training Videos
User avatar
PixelatorNYC
Registered User
Registered User
 
Posts: 22
Joined: September 19, 2011
Location: los angeles / brooklyn


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 0 guests

cron