Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Graph/UI Stats for User Downloads #222

Open
jaswrks opened this issue Jul 7, 2014 · 11 comments
Open

Display Graph/UI Stats for User Downloads #222

jaswrks opened this issue Jul 7, 2014 · 11 comments

Comments

@jaswrks
Copy link
Contributor

jaswrks commented Jul 7, 2014

s2Member collects a lot of information about protected files downloaded by a user. It would be nice to expose this information to a site owner for each user; and collectively too. Perhaps via graphs/charts combined with per-user stats in the dashboard.

See also: https://websharks.zendesk.com/agent/#/tickets/3155

@dimitriosvasileiou
Copy link

I have been using s2member for awhile now and I love the features and functionality. However, there are a few things that are very basic and yet, they are missing.

Tracking members' downloads is one of them. Perhaps I should say 'display' as tracking is already happening.

I run a magazine and I have thousands of members at various membership levels. They can download one issue per month but unfortunately, they can also download back issues (this is how s2member works). My problem is that some of them do download back issues and then they complain that, although their membership hasn't run out, they cannot download future issues. Of course, it is impossible for me to prove what and when they have downloaded it.

I know that downloads are being monitor, that's certain. How hard is it to display those downloads in each member's page? All we need is the file name, the number of downloads and the date the download took place.

I have been watching for over 2 years now all the requests from s2member users on the subject, I believe it is time to implement this feature as soon as possible. Personally, I am tired of waiting, the lack of it has caused me nothing but many days of stress.

@jaswrks
Copy link
Contributor Author

jaswrks commented Jul 7, 2014

Yep, the functionality is definitely in there, and I agree that bringing it into the UI should be on our list. Hopefully we can make some progress on this soon. Until then, it might interest you to know that some work was done on this awhile back; but mostly for developers.

s2Member exposes several API Functions that allow you to extend it in various ways. One of these is the s2member_user_downloads() function that has been around for awhile now. You might take a look here at the codex article. See also: the full list of API Functions.

<?php
$user_id = 123;
$downloads = s2member_user_downloads($user_id);
echo $downloads['currently'].'<br />';
echo $downloads['allowed'].'<br />';
echo $downloads['allowed_days'].'<br />';
print_r($downloads); // for a full list of all elements in the return value.

There are also several API Constants exposed by s2Member via PHP, JavaScript, and through the [s2Get constant="" /] shortcode. These can be used to present some of this information on-site as necessary. See: http://www.s2member.com/codex/stable/s2member/api_constants/package-summary/

[s2Get constant="S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED" /]
[s2Get constant="S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_DAYS" /]
[s2Get constant="S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_IS_UNLIMITED" /]
[s2Get constant="S2MEMBER_CURRENT_USER_DOWNLOADS_CURRENTLY" /]

See also: Dashboard ⥱ s2Member ⥱ API / Scripting for more examples.

@jaswrks
Copy link
Contributor Author

jaswrks commented Jul 7, 2014

Others worth noting here...

s2member_total_downloads_of()
s2member_total_unique_downloads_of()

@dimitriosvasileiou
Copy link

OK, but all this requires knowledge or hiring someone. Can we have it displayed in the member's page please?

@jaswrks
Copy link
Contributor Author

jaswrks commented Jul 21, 2014

@raamdev @BruceCaldwell Can I interest either of you in chart building?

@dimitriosvasileiou
Copy link

I have no idea why I received an email about this, Jason, I am not even quoted.

@jaswrks
Copy link
Contributor Author

jaswrks commented Jul 21, 2014

I have no idea why I received an email about this, Jason, I am not even quoted.

Sounds like you "watched" this GitHub issue inadvertently. Please click the "Unwatch" button at the top of this page at GitHub to unsubscribe.

@raamdev
Copy link
Contributor

raamdev commented Jul 21, 2014

@dimitriosvasileiou If you leave a comment on any GitHub issue on GitHub, you are automatically marked as "participating" in the issue and therefore will get all new replies to that issue unless you specifically unsubscribe from it (which you can do from the right side). See the screenshot below:

2014-07-21_18-27-43

@SmilePix
Copy link

I am another s2Member who wishes this would be in the UI. I will try what Jason has suggested, but am hoping for a more robust and simpler solution in the very near future.

Sam

@clavaque clavaque added the pro label Aug 27, 2014
@clavaque
Copy link
Contributor

Another vote for this feature: https://websharks.zendesk.com/agent/#/tickets/3569

@raamdev
Copy link
Contributor

raamdev commented Mar 27, 2015

Another vote for tracking downloads and being able to view downloads on a per-user basis (internal ticket): https://websharks.zendesk.com/agent/tickets/5711

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants