Hello everyone and thanks for your help!
I need to insert the date and maybe even the time of each individual download in the download list tab (component > Phoca Download > Download).
What can I do to get this date?
Download date
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download date
Hi, sorry I don't understand? You want to add the date or get it?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 20 Jan 2024, 22:10
Re: Download date
Hi, I want to add the date on which each individual download was performed.
So in (component > Phoca Download > Download)
I want to have:
- User
- Files
- Download date
- ID
Thanks for your patience.
So in (component > Phoca Download > Download)
I want to have:
- User
- Files
- Download date
- ID
Thanks for your patience.
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download date
Hi, for now, the system does not store the date as it can counts more download from one users in time. So it just counts user downloads, not the date of the download.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 20 Jan 2024, 22:10
Re: Download date
HI
And what if you want to display only the data of the latest download for each user?
Could I do it somehow by adding code with your help?
Thank you
And what if you want to display only the data of the latest download for each user?
Could I do it somehow by adding code with your help?
Thank you
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download date
Hi, there is a database table jos_phocadownload_user_stat where the downloads for each users are stored, but not each download, only downloads per file. This means, if user download some file e.g. File A twice, you have a record which says, that there are two downloads of File A by the user, but you don't have date for each download stored, only the last download date for each file and user.
So not sure, if this can help you for 100%. You can list download for each users, you can list them by date, but you cannot somehow manage, when there were two download for one file.
Jan
So not sure, if this can help you for 100%. You can list download for each users, you can list them by date, but you cannot somehow manage, when there were two download for one file.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 20 Jan 2024, 22:10
Re: Download date
Gen you are very kind!
So if I understand correctly, if the example user Pablo downloads file A twice and file B once, the database shows the date of file B and the last date of file A. Right?
If that were the case it would already be fine with me.
In this case, how could I enrich the code to read this value and add it to the control panel?
Thank you very much for your patience
So if I understand correctly, if the example user Pablo downloads file A twice and file B once, the database shows the date of file B and the last date of file A. Right?
If that were the case it would already be fine with me.
In this case, how could I enrich the code to read this value and add it to the control panel?
Thank you very much for your patience
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download date
Hi, unfortunately, this all needs to be customized - from asking database for data to manipulating them and rendering them in php.
Jan
Jan
If you find Phoca extensions useful, please support the project