Hi,
work in progress. But there are things I do not understand.
First, this is the change that I've tried in the
'administrator\components\com_phocagallery\helpers\phocagallery.php'
function getPathSet()
{
$pathstring = str_replace('..','',$_SERVER['QUERY_STRING']); // Gives a blank path
$pathx = '/var/ac_images'.$pathstring; // Inserts '/var/ac_images' as path. Directory created manually
$path['orig_abs_ds'] = $pathx . DS . 'images' . DS . 'phocagallery' . DS ; //All images was copied here
$path['orig_abs'] = $pathx . DS . 'images' . DS . 'phocagallery' ;
$path['orig_rel_ds'] = $pathx . '/' . "images/phocagallery/";
return $path;
The only thing that happens is that the thumbs in backend falls away. Frontend is not effected.
And these are the things I don't understand:
1. ALL helper files obviously builds their path strings. Editing must be done in all these files.
2. In the helper files (and likely in other files), there is a lot of 'str_replace' going on and references to the 'Jpath'.
All this leads me to believe that it will be extremly difficult to change this, to somewhere above the Apache/Joomla document root.
Right?
------------------------------------------------------------------------------------------------------------------
So maybe it is an alternative to just move/save the original image above the root OR insert it into the database, leaving the rest?
In short how this would work:
When uploading an image, I add a watermark. The watermark is on all images except the original.
When user clicks the 'Download icon' the original image without the watermark is downloaded from the the database or from above the root.
Does this make sense?
All my users that are roaming around in the gallery have already paid for the access. But different users has different access. This works fine through JoomSuite Member component. But what I don't want is to have the occasional guest/visitor to be able to URL/hack their way into the original-non-watermarked image. The watermarkt ones are ok under the '/image/phocagallery' path.
Any hint/idea in the direction of solving this is received with the greatest of gratitudes (possibly even monetary gratitude?

)
Regards
Akerman