You can customize it in:
components/com_phocadownload/views/category/tmpl/default_files.php (line 23 - 35)
Jan
Links corrupt
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Links corrupt
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 27 Feb 2015, 10:00
Re: Links corrupt
Thanks for pointng me in the right direction Jan. There's a lot of files to look through when you have no idea where to start.
Edited as per your advice and now works as desired. Much appreciated.
Edited as per your advice and now works as desired. Much appreciated.
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
- Phoca Member
- Posts: 11
- Joined: 27 Feb 2015, 10:00
Re: Links corrupt
Hi Jan,
As mentioned in my posts above, I'm having problems with download links and still haven't worked out why - BUT the option "Direct Link = Yes" does solve the problem. So all good in that regard.
Front End Uploads: There is no option to select "Download link = Yes" when uploading from the front-end and there also does not seem to be an option to make Direct Link = Yes the default for ALL uploaded files in the Admin config. At the moment, I have to manually set to "Yes" in the backend for all front-end file uploads.
I was hoping you could possibly provide a simple solution to make Direct Link = "Yes" to be the default behaviour, instead of "No". I'm comfortable editing code if you can just tell me where to head to please. Thanks for any assistance.
As mentioned in my posts above, I'm having problems with download links and still haven't worked out why - BUT the option "Direct Link = Yes" does solve the problem. So all good in that regard.
Front End Uploads: There is no option to select "Download link = Yes" when uploading from the front-end and there also does not seem to be an option to make Direct Link = Yes the default for ALL uploaded files in the Admin config. At the moment, I have to manually set to "Yes" in the backend for all front-end file uploads.
I was hoping you could possibly provide a simple solution to make Direct Link = "Yes" to be the default behaviour, instead of "No". I'm comfortable editing code if you can just tell me where to head to please. Thanks for any assistance.
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Links corrupt
Hi, hmm, there are two possibilities to customize it:
1) add the option to upload form, so user can select it - this is difficult to made, as form needs to be edited, controller too, and model too
2) set this directly in code - in model - so every uploaded file gets the "direct download" option
Jan
1) add the option to upload form, so user can select it - this is difficult to made, as form needs to be edited, controller too, and model too
2) set this directly in code - in model - so every uploaded file gets the "direct download" option

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 27 Feb 2015, 10:00
Re: Links corrupt
Thanks for the reply Jan.
I had a look through models to see what I could work out based on your option (2) but so much code/files I didn't know where to start?
Sounds like there is no "simple" solution. Nevermind, I'll just stick to manually changing direct link to Yes. The problem arose when there was 30 uploads in one day. It takes a while to manually set 30 individual files to yes!
Thanks for your time in answering. Much appreciated.
I had a look through models to see what I could work out based on your option (2) but so much code/files I didn't know where to start?
Sounds like there is no "simple" solution. Nevermind, I'll just stick to manually changing direct link to Yes. The problem arose when there was 30 uploads in one day. It takes a while to manually set 30 individual files to yes!
Thanks for your time in answering. Much appreciated.
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact: