statistics
-
Hello,
for the moment, I use S2Member Secure File Browser – https://ww.wp.xz.cn/plugins/s2member-secure-file-browser/ – what does nearly the same things as File Away but just for S2Member directories. I was tempted to switch to File Away but it misses an important feature of Secure File Browser: statistics. With SFBrowser, I can see at a glance who downloaded the file and when.I understand this feature is out of scope of File Away but maybe a subplugin could do the trick. Just a suggestion π
-
What exactly kind of statistics do you need?
What s2Member does is quite straightforward. Is there anything they DON’T do that you would want File Away to do?
I’m thinking, for instance, s2member does not have the ability to specify user IDs to ignore, which I would include.
I’m a comics author and use S2member to protect the projects I send to editors – comic artists are like writers in France, they submit their own project (well, for the moment). S2Member Secure File Browser shows exactly wich member did download wich file at a precise date – see capture here: http://tof.canardpc.com/view/e843abd5-4dc9-42e3-bf07-fb64f684293f.jpg
So I know exactly wich editors downloaded my files and I can contact them if they did not.
There is “best download” and other statistics tools I’m not interested into but that can be interesting for other people as if S2Member gives tools for file statistics, you must be developper to use them – you can take a look at the plugin here https://ww.wp.xz.cn/plugins/s2member-secure-file-browser/
Thanks, I’ve already read their entire plugin code. π
I’m working on my version of it. I just wanted to know if there was anything you needed more than what s2member already provides. I will store the following download info: date/time, filepath, userid, user email, client ip address, client download device.
I will also track files if they are moved or renamed using File Away’s Manager Mode table. If they are moved or renamed using File Away, then File Away will update the database with the new filename/location for each previous download entry. Basically, it will track the life of a file, no matter what it is named or where it is stored.
I’ll provide email notifications, admin tables for viewing stats, and shortcodes for displaying most popular, etc.
I will also include the ability to not record stats for specified user ids. So, for instance, you could tell it not to record stats when you yourself download the file.
My Gosh, you don’t do things half way as we say in France. I did not think about features S2member would lack. If I found one, I will tell you.
The main “problem” is that your plugin is based on roles and I use S2Member custom capabilities. But I suppose it won’t be a big problem.No, my plugin is based on any available role or capability. You can use s2member caps with File Away. Just take a look at the dropdown in the shortcode generator, or on the File Away Attributes tutorial.
It’s the way I thought to manage it.
Sorry I don’t follow your meaning.
Well I thought to put File Away shortcode inside S2Member custom capabilities shortcode (sorry for my bad english).
What does their custom capabilities shortcode do?
I see. Yeah, it just shows/hides content based on their caps. Yes, File Away does this natively. Example:
[fileaway type="table" showto="s2member_level2,s2member_level3" hidefrom="access_s2member_level0,access_s2member_level4"]or any combination thereof, either showto or hidefrom, or both together.
I’m speaking about “custom capabilities” not level.
Packaging Together Custom Capabilities w/ Membership
Using one of s2Member’s Payment Button and/or Form Generators, you can add Custom Capabilities in comma-delimited format. s2Member builds upon existing functionality offered by WordPress Roles/Capabilities. s2Member supports Free Subscribers (at Level #0), and several Primary Roles created by the s2Member plugin (i.e. s2Member Levels 1-4, or up to the number of configured Levels). Each s2Member Level (aka: s2Member Role) provides the Capability current_user_can(“access_s2member_level0”), 1, 2, 3, 4, where access_s2member_level[0-4] is the Capability associated with each Role; and Membership Levels provide incremental access (i.e. Level #4 Members can also access content at Levels 0, 1, 2, and 3 beneath them). In short, these Level-based permissions are the default Capabilities that come with each Membership Level being sold on your site.
Now, if you’d like to package together some variations of each Membership Level that you’re selling, you can! All you do is add Custom Capabilities whenever you create your Payment Button and/or Form Shortcode (there is a field in the Button & Form Generators where you can enter Custom Capabilities). You can sell Membership Packages that come with Custom Capabilities, and even with custom prices.
Custom Capabilities are an extension to a feature that already exists in WordPress. The current_user_can() function, can be used to test for these additional Capabilities that you allow. Whenever a Member completes the checkout process, after having purchased a Membership from you (one that included Custom Capabilities), s2Member will add those Custom Capabilities to the account for that specific Member.
Custom Capabilities are always prepended with access_s2member_ccap_. You fill in the last part, with ONLY lowercase alpha-numerics and/or underscores. For example, let’s say you want to sell Membership Level #1, as is. But, you also want to sell a slight variation of Membership Level #1, that includes the ability to access the Music & Video sections of your site. So, instead of selling this additional access under a whole new Membership Level, you could just sell a modified version of Membership Level #1. Add the the Custom Capabilities: music,videos. Once a Member has these Capabilities, you can test for these Capabilities using current_user_can(“access_s2member_ccap_music”) and current_user_can(“access_s2member_ccap_videos”).
The important thing to realize, is that Custom Capabilities, are just that. They’re custom. s2Member only deals with the default Capabilities that it uses. If you start using Custom Capabilities, you MUST use Simple or Advanced Conditionals (i.e. current_user_can() logic) to test for them. Either in your theme files with PHP, or in Posts/Pages using Simple Conditionals (powered by Shortcodes).
See also: This KB article: s2Member Roles/Capabilities (Including bbPress Support).
See also: This VIDEO tutorial: Using Custom Capabilities with s2Member (by Lead Developer Jason Caldwell).
*New* In the latest versions of s2Member, you can automatically require certain Custom Capabilities on a per Post/Page basis. So now, s2Member (if you prefer) CAN handle Custom Capabilities for you automatically! Whenever you edit a Post/Page (i.e. there is a Meta Box for s2Member in your Post/Page editing station)… you can tell s2Member to require certain Custom Capabilities that you type in, using comma-delimited format. In other words, you will need to type in some of the trigger words that you used whenever you created your Payment Buttons/Forms. This way paying Members will have the Custom Capabilities to view different kinds of content that you offer.
*New* By default, a Checkout Button or Form generated by s2Member is designed to (Add) Custom Capabilities to any that may or may not already exist for a particular User/Member. However, starting with s2Member v110815+, you can tell s2Member to (Remove All) Custom Capabilities, and then (Add) only the new ones that you specify. This is accomplished on a per Form/Button basis by preceding your comma-delimited list of Custom Capabilities with
-all. For further details on this topic, click the [?] icon next to the Custom Capabilities field in any Button/Form Generator supplied by s2Member.*New* Independent Custom Capabilities. You can now sell one or more Custom Capabilities using Buy Now functionality, to “existing” Users/Members, regardless of which Membership Level they have on your site (i.e. you could even sell Independent Custom Capabilities to Users at Membership Level #0, normally referred to as Free Subscribers, if you like). So this is quite flexible. For further details, please check your Dashboard, under: s2Member -βΊ PayPal Buttons -βΊ Capability (Buy Now) Buttons.
I make a tuto how to use Custom Capabilities here – but in french, sorry – http://www.echodesplugins.li-an.fr/plugins/une-page-reservee-a-chacun-de-vos-membres-avec-s2member/
It’s the same thing, Li-An. All custom capabilities registered with WordPress are in the File Away Roles/Caps dropdowns and Showto/Hidefrom dropdowns. Those “levels” that I showed you above ARE custom capabilities, as are any other custom capabilities you might add.
OK. I will make a test to see how it works.
The topic ‘statistics’ is closed to new replies.