![]() |
|
Data Directory of ZenPhoto - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Data Directory of ZenPhoto (/thread-7222.html) |
Data Directory of ZenPhoto - wizzkid - 2010-06-19 Hello, Is there a way to move the data directory (specifically ALBUMS directory) to other location? in Gallery2, there's an option to move the g2data directory to other location and I am wondering if Zenphoto can do the same. Please advice. Thanks! Data Directory of ZenPhoto - acrylian - 2010-06-19 Yes, it is. Look at the Data Directory of ZenPhoto - wizzkid - 2010-06-19 thanks a lot. I got it! =] Data Directory of ZenPhoto - Jaanus - 2010-06-21 But is here the way to make so that the site has for example 2 album directories - one of them on the zenphoto root and another external? Data Directory of ZenPhoto - acrylian - 2010-06-21 No. Maybe it could be done via symlinks. Don't know as I never tried. Why do you need that at all? Data Directory of ZenPhoto - Jaanus - 2010-06-21 I just think it could be one particular way to integrate 2 or more different sites. Principle: Joomla site has own image directory and Wordpress another, but all images are shown on the zp site. Data Directory of ZenPhoto - acrylian - 2010-06-21 We officially support only one "albums" folder but if you figure something out feel free to post your solution here. The only way to use external source is to use the "youtube" trick posted on our troubleshooting. But that will not let you benefit from the image resizing. Data Directory of ZenPhoto - Jaanus - 2010-07-11 acrylian: "Maybe it could be done via symlinks." YES, it works! No need for additional ZP installation. Just create the needed symlinks into albums folder. You need a php file (e.g symlink.php) with content Upload this php file into your albums folder (or any subfolder), chmod 0777 both file and albums (or albums/whatever) folder (maybe parent folder, too) and then point your browser to this file (if this is in albums folder: http://www.yoursite.com/your_zp_root/albums/symlink.php ) Blank screen means that symlink is created successfully. Even if you cannot see the symlink in ftp or cpanel, you can see new album in zenphoto and you can upload there! Then chmod changed folders back. Now I can see both the "original" zp site pictures and the Joomla site pictures with one single zp installation. And other media files as mp3 are accessible, too. Data Directory of ZenPhoto - Jaanus - 2010-07-11 Maybe it encourage you to create a functionality "create album as symlink" to Zenphoto itself? Data Directory of ZenPhoto - sbillard - 2010-07-11 Maybe you could turn that file into a plugin. That is the normal way to provide custom functionality for Zenphoto Admins to use. Probably it should let you browse to the target folder and supply the simlink (album) name. Data Directory of ZenPhoto - Jaanus - 2010-07-12 Not sure, I have almost no programming skills. Some other people would made it 100 times faster. |