Show download history and used limit

Hello everyone!

I’m customising profile page and i’d like to add two more things. Unfortunately i have spent two days in a row without effects so now im here asking smarter guys than me. First thing is information about how many files i have downloaded and how many files i can still download. Just an information like that: Your download limit is 100 per month and you have 35/100 downloads left. And the second thing is file download history. I have table with files that can be downloaded. There are names of files and versions. I’d like to have table with history of downloads showing name of downloaded plugin, version and date of that download. How can i achieve that or maybe it’s possible to do using shortcodes?

Thanks for any help. Have a nice day!

For your first question, just read through the section at Download Options -> Basic Download Restrictions. It’s basically automatic.

For the second, use the s2member Secure File Browser plugin.

Thank you Tim for your reply!

I know that when someone attempt to download a file gets information about how many files he have already downloaded and how many downloads he has left. I just wanted to have this information showing in profile with other info like account type, date of register, date of expiration and so on. I was able to do everything except info about downloads. Unfortunately im also still not able to do personal download history for users. I tried s2member secure file browser but it dosent seems to work. I have generated shortcode pasted it and there is nothing on site. Log settings are ok, cache cleaned. Maybe im missing something in shortcode?

[s2member_secure_files_browser
collapseeasing="swing"
collapsespeed="500"
cutdirnames="0"
cutfilenames="0"
dirbase="%2F"
dirfirst="0"
displayall="0"
displaybirthdate="0"
displaycomment="1"
displaydownloaded="1"
displaysize="1"
displaymodificationdate="1"
dirzip="0"
expandeasing="swing"
expandspeed="500"
folderevent="click"
hidden="0"
multifolder="1"
openrecursive="0"
s2alertbox="1"
search="1"
searchgroup="0"
searchdisplay="1"
sortby="3"
/]

Try a very simple shortcode first!

Make sure that works, and then you can add things one by one and test each time. Otherwise, there’s too much going on to be able to locate the problem easily.

Ok so i managed to make file browser to work. But honestly i dont have any idea how can i use it to create download history for users. I want to add history of downloaded files by user on his profile. How can i do this? I mean his history of downloads not all downloads on site.

And also i’d like get back to the quesiton about showing possible remaining downloads. I know there is a information by default showing with every attempt to download but is there any way to create for example shortcode that will show remaining download count on users profile?

Use the widgets it provides.

Ok so now i have three problems.

  1. I have used s2memberSFB Downloads widget but it is showing latest downloads of all user and i want it to show downloads for only certain user. Lets say Mr.John just logged in and he would like to check his download history. Not history of all or any other user. Just his. And thats what i need.

  2. Widgets work fine with sidebars but when i put it on content area they doesnt work. Im using plugin called widget shortcode it is creating shortcode for widgets and then i can place them in content area and all widgets work perfectly fine except those 2 included with s2member secure file browser.

  3. I still dont know how can i make string with information about amount of downloaded files and available downloads.

Any bit more detailed advices?

Try addressing your questions to the developer of that plugin.

Ok i’ll try. Thanks for your help :slight_smile: