Attention phoca download programmers

Phoca Download - download manager
Jhorton
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 07 Oct 2022, 19:56

Attention phoca download programmers

Post by Jhorton »

I have had the need to reprogram a line of code to the plugini phoca download, I need to know if it is correct or is there another way to configure the component to avoid programming ineed plugin function next code:

line 680 to 682 plugin hocadownload.php (content)

} else {
$output .= '<div class="phocadownloadfile'.(int)$iSize.'"><a href="https://docs.google.com/viewer?url='.urlencode(rtrim(JURI::root(), '/')).urlencode (JRoute::_($link)). '" '.$targetOutput.'>'. $textOutput.'</a></div>';
}

<name>plg_content_phocadownload</name>
<author>Jan Pavelka (www.phoca.cz)</author>
<creationDate>16/04/2020</creationDate>
<authorEmail></authorEmail>
<authorUrl>https://www.phoca.cz</authorUrl>
<copyright>Jan Pavelka</copyright>
<license>GNU/GPL</license>
<version>3.2.0</version>
<description>PLG_CONTENT_PHOCADOWNLOAD_DESCRIPTION</description>
<projectName>PhocaDownloadContentPlugin</projectName>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Attention phoca download programmers

Post by Jan »

Hi, not sure what do you mean with "correct". Do you get any error there? Does it work for you?

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