Change the root directory

Phoca Gallery - image gallery extension
luxfero6
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 May 2011, 21:48

Change the root directory

Post by luxfero6 »

i've been searching about that and can't find anything...

i need to change the root directory (images/phocagallery) for a directory with less characters

i'm using the 2.7.8 version
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change the root directory

Post by Jan »

Hi, this needs to be customized in the code, see the path class in Phoca Gallery libraries folder.

Jan
If you find Phoca extensions useful, please support the project
luxfero6
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 May 2011, 21:48

Re: Change the root directory

Post by luxfero6 »

oh, man! really, really thank you!

i've already looked at this file, but missed a few parameters
gamesite.sk
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 29 Oct 2012, 13:19

Re: Change the root directory

Post by gamesite.sk »

Hi,
is there any solution to change the root folder out of current domain?
for example:
my actually server root (not joomla root) is "/data/web/DOMAIN1.LTD/web/" - here is the joomla with phoca gallery
and i want store images in "/data/sub/SUBDOMAIN/images/..." or maybe on different server

When i change path in "administrator/components/com_phocagallery/libraries/phocagallery/path/path.php" changes affect only url after current domain

Joomal ver. 2.5.7
Phoca Gallery ver. 3.2.2
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change the root directory

Post by Jan »

Hi, see my post above.

Jan
If you find Phoca extensions useful, please support the project
gamesite.sk
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 29 Oct 2012, 13:19

Re: Change the root directory

Post by gamesite.sk »

Hi Jan,
thanks for Your answer.

I see Your post above, but as i wrote in my post above, when i change path in "administrator/components/com_phocagallery/libraries/phocagallery/path/path.php" changes affect only url after current domain i.e. wen i change anything in path.php file changes affect only url in current domain.

For exemple:
my current domain is ww w.MYDOMAIN.LTD
currently is images stored in ww w.MYDOMAIN.LTD/images/phocagallery/...
and what i want is, move the images to images.MYDOMAIN.LTD, or OTHERDOMAIN.LTD (in same server)
currently in path.php i can only change "/images/phocagallery/..."
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change the root directory

Post by Jan »

Hi, unfortunatelly, I didn't test to do the modifications yet, so cannot add any clue advices there :-(, try to see similar posts, there are some useful guides, but what everything needs to be modified and if there will be some conflict, really cannot say :idea:

Jan
If you find Phoca extensions useful, please support the project
gamesite.sk
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 29 Oct 2012, 13:19

Re: Change the root directory

Post by gamesite.sk »

Hi Jan,
still no solution?

btw: in the Phoca Download it is easy to set up in "administrator/index.php?option=com_phocadownload&view=phocadownloadset" > "Absolute Path"
Post Reply