How to do diect link for all files

Phoca Download - download manager
ziyouz
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 14 Sep 2014, 14:52

How to do diect link for all files

Post by ziyouz »

Hi dears.
1. How can I set direct link YES, in deafult configuration?
2. or How can I add direct link funksion in Multiple add?
Thank you
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to do diect link for all files

Post by Jan »

Hi,

1. there is no such option, so this needs to be set directly in the XML file:
administrator\components\com_phocadownload\models\forms\phocadownloadfile.xml

set default="1" for directlink parameter

2. Such then needs to be set in the code:
administrator\components\com_phocadownload\models\phocadownloadm.php

Code: Select all

$datam['directlink']		= 1;
(but didn't test yet, so it must be tested if it works without problems)

Jan
If you find Phoca extensions useful, please support the project
ziyouz
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 14 Sep 2014, 14:52

Re: How to do diect link for all files

Post by ziyouz »

Thank you Jan!
1. It's OK. It is working. Normal.
2. But I can't solve this issue. So, where I need to add this code ($datam['directlink'] = 1;)?
I added after $datam['language'] = $data['language']; and other places. But there is no Direct link funсtion in Multiple Add
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to do diect link for all files

Post by Jan »

Hi, did you add it to all places where the $datam variable gets the parameters?

Jan
If you find Phoca extensions useful, please support the project
Post Reply