I am concerned about three issues. Ask them for relevance to me.
1. Such a problem, I do that when you download a file, it is automatically flagged for preview, and would not need to go into the admin area so that it is selected for preview. how to do it I can not understand. tried to change the code in the file components \ com_phocadownload \ views \ file \ tmpl \ default_grey2.php
Code: Select all
// PREVIEW
if ($this->tmpl['display_preview'] == 1)
{
//if (isset($valueDoc->filename_preview) && $valueDoc->filename_preview != '')
{
$fileExt = PhocaDownloadHelper::getExtension($valueDoc->filename_preview);
//if ($fileExt == 'pdf' || $fileExt == 'jpeg' || $fileExt == 'jpg' || $fileExt == 'png' || $fileExt == 'gif')
{
$filePath = PhocaDownloadHelper::getPathSet('file');
$filePath = str_replace ( '../', JURI::base(true).'/', $filePath['orig_rel_ds']);
//$filePath = $linkDownloadB;
//$filePath = $linkDownloadE;
$previewLink = $filePath . $valueDoc->filename_preview;
$previewOutput .= '<div class="pddownload'.$this->tmpl['button_style'].'"><div>';
if ($this->tmpl['preview_popup_window'] == 1) {
$previewOutput .= '<a href="'.$previewLink.'" onclick="'. $this->buttonpr->options.'" >'. JText::_('COM_PHOCADOWNLOAD_PREVIEW').'</a>';
} else {
if ($fileExt == 'pdf') {
// Iframe - modal
$previewOutput .= '<a class="pd-modal-button" href="'.$previewLink.'" rel="'. $this->buttonpr->options.'" >'. JText::_('COM_PHOCADOWNLOAD_PREVIEW').'</a>';
} else {
// Image - modal
$previewOutput .= '<a class="pd-modal-button" href="'.$previewLink.'" rel="'. $this->buttonpr->optionsimg.'" >'. JText::_('COM_PHOCADOWNLOAD_PREVIEW').'</a>';
}
}
$previewOutput .= '</div></div>';
}
}
}Theoretically, every newly downloaded file should be marked on the preview, but where it is done ...
2. How to implement delete files downloaded by users by themselves. For example as in phocagallery?
3. When you delete files from the admin kicks by an authorization, and as it passes the top line disappears in joomla. (as in Denwer, and the server on FreeBSD)
I use Joomla 1.6.3, Phoca Download2.0.0 RC3
I would be grateful for the help.

