Page 1 of 1

Attention phoca download programmers

Posted: 07 Oct 2022, 20:33
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>

Re: Attention phoca download programmers

Posted: 08 Oct 2022, 00:30
by Jan
Hi, not sure what do you mean with "correct". Do you get any error there? Does it work for you?

Jan