Different path to images folder

Phoca Gallery - image gallery extension
helianor
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 16 Dec 2015, 23:46

Different path to images folder

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Different path to images folder

Post 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
If you find Phoca extensions useful, please support the project
pheinrichs
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 14 Mar 2011, 20:45

Re: Different path to images folder

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Different path to images folder

Post 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
If you find Phoca extensions useful, please support the project
Post Reply