Page 1 of 1

Different path to images folder

Posted: 16 Dec 2015, 23:55
by helianor
Hello,

Is it possible to point to another folder ?
I want to have my image folder out of the joomla folder.

I use Joomla 3.4.6 and Phoca Gallery 4.2.2

Re: Different path to images folder

Posted: 18 Dec 2015, 02:36
by Jan
Hi, try to see similar posts in this forum, there is a way to customize it in Path library (but not sure, if some feature will be broken), see:
administrator\components\com_phocagallery\libraries\phocagallery\path\path.php

Jan

Re: Different path to images folder

Posted: 27 Dec 2015, 18:59
by pheinrichs
Hi Jan, I'm working on the same issue (trying to change the phoca gallery directory). I have change the path.php file to reflect the new directory ( /images/newgallery instead of /images/phocagallery) as follows:

$instance->image_abs = JPATH_ROOT . DS . 'images' . DS . 'newgallery' . DS ;
$instance->image_rel = 'images/newgallery/';
$instance->avatar_abs = JPATH_ROOT . DS . 'images' . DS . 'newgallery' . DS . 'avatars' . DS ;
$instance->avatar_rel = 'images/newgallery/avatars/';

Images upload correctly to the new directory and thumbnails are created in the new directory but no images appear in either the backend or frontend. I only can see a white square with the image title. Have I missed something?


Thanks for all your support.

Re: Different path to images folder

Posted: 02 Jan 2016, 02:09
by Jan
Hi, then try to see the source html code of the site where the images are not displayed, this seems like the path is not correct there :idea:

Jan