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
How to do diect link for all files
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to do diect link for all files
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
(but didn't test yet, so it must be tested if it works without problems)
Jan
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;
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 14 Sep 2014, 14:52
Re: How to do diect link for all files
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
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
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to do diect link for all files
Hi, did you add it to all places where the $datam variable gets the parameters?
Jan
Jan
If you find Phoca extensions useful, please support the project