I Create something similar yesterday but it just "almost" working. It just pointing folder
www.somesite.com/images/orginal/ but there is no direct link to image. But maybe I did some mistake?
I just changed link
<a href="<?php echo sefRelToAbs('index.php?option=com_rsgallery2&task=downloadfile&id='.$id);?>">
to the
<a href="<?php echo imgUtils::getImgOriginal( $item->name ); ?>
So now it's look like that. What else i should add?
function _writeDownloadLink($id, $showtext = true, $type = 'button') {
global $rsgConfig, $mosConfig_live_site;
if ( $rsgConfig->get('displayDownload') ) {
echo "<div class=\"rsg2-toolbar\">";
if ($type == 'button') {
?>
<a href="<?php echo imgUtils::getImgOriginal( $item->name ); ?>">
<img src="<?php echo $mosConfig_live_site;?>/administrator/images/download_f2.png" alt="<?php echo _RSGALLERY_DOWNLOAD?>" />
<?php
if ($showtext == true) {
?>
<br /><span style="font-size:smaller;"><?php echo _RSGALLERY_DOWNLOAD?></span>
<?php
}
?>
</a>
<?php
} else {
?>
<a href="<?php echo imgUtils::getImgOriginal( $item->name ); ?>"><?php echo _RSGALLERY_DOWNLOAD?></a>
<?php
}
echo "</div>";
}
}