Change phocagallery directory

Phoca Gallery - image gallery extension
johnk
Phoca Member
Phoca Member
Posts: 16
Joined: 10 Jan 2012, 06:24

Change phocagallery directory

Post by johnk »

Hi all. I search in all the forum but all the answers was from 2008 and i dont know if this solve my problem.

I need to change the phocagallery directory. Why? Because this is SO big and i need be outside the joomla directory. Why? because i make a lot of backups and i need the images dont be backuped all the time.

So, now the images are in joomladirectory/images/phocagallery. now i need in the root. How can i do this?

I read in the forum and all the answers are old. If one of this old answers are the correct, please send me the link.

Thanks and sorry for my bad english
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change phocagallery directory

Post by Jan »

Hi, you can try to check the path class in libraries classes of Phoca Gallery, I didn't do any such change yet, so cannot yes, what and where exactly needs to be changed :-(

Jan
If you find Phoca extensions useful, please support the project
johnk
Phoca Member
Phoca Member
Posts: 16
Joined: 10 Jan 2012, 06:24

Re: Change phocagallery directory

Post by johnk »

Jan thanks for your answer =)

The directory of my phocagallery is so big because i have a lot of pictures. The gallery is in:

root/joomladirectory/images/phocagallery/

i need move phocagallery to the root like this:

root/phocagallery

I make a lot of changes in the code of my site and is a big problem for my restore a backup because this are so big. I have programed backups in my web hosting account and i cant exclude the phocagellery directory if this isnt in the root.

Sorry for my bad english :oops:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change phocagallery directory

Post by Jan »

The path to the path class:

administrator/components/com_phocagallery/libraries/phocagallery/path/path.php

Jan
If you find Phoca extensions useful, please support the project
johnk
Phoca Member
Phoca Member
Posts: 16
Joined: 10 Jan 2012, 06:24

Re: Change phocagallery directory

Post by johnk »

Thanks Jan!
I change there the URL but didnt work

I move the images/phocagallery to the root of the web like this:
before: root/joomla/images/phocagallery
now: root/images/phocagallery

I change the path:
**************
$instance->image_abs = JPATH_ROOT . DS . 'images' . DS . 'phocagallery' . DS ;
$instance->image_rel = '../images/phocagallery/';
$instance->avatar_abs = JPATH_ROOT . DS . 'images' . DS . 'phocagallery' . DS . 'avatars' . DS ;
$instance->avatar_rel = '../images/phocagallery/';
But when i go to "upload multiple images" i have this error:

JFolder: :files: Path is not a folder. Path: C:\wamp\www\joomla\images\phocagallery\
JFolder: :folder: Path is not a folder. Path: C:\wamp\www\joomla\images\phocagallery\

If i upload the pictures, they create again the directory phocagallery into the images directory and copy the pictures there.

I find a some urls images/phocagallery in the administrator/components/com_phocagallery directory. I rename all the images/phocagallery for ../images/phocagallery but didnt work.

Also i make other test:

I move the images/phocagallery directory to:
root/joomla/phocagallery

i rename all the sentenses images/phocagallery/ to phocagallery/ but i have the same error.

Any idea?

Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change phocagallery directory

Post by Jan »

Hi, unfortunately no idea there, as I didn't test such modification yet so no experiences there :-(
If you find Phoca extensions useful, please support the project
Post Reply