Page 1 of 1

Change phocagallery directory

Posted: 16 Aug 2012, 17:52
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

Re: Change phocagallery directory

Posted: 17 Aug 2012, 22:34
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

Re: Change phocagallery directory

Posted: 17 Aug 2012, 23:57
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:

Re: Change phocagallery directory

Posted: 27 Aug 2012, 21:37
by Jan
The path to the path class:

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

Jan

Re: Change phocagallery directory

Posted: 28 Aug 2012, 02:34
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!

Re: Change phocagallery directory

Posted: 27 Sep 2012, 18:50
by Jan
Hi, unfortunately no idea there, as I didn't test such modification yet so no experiences there :-(