4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: jackald on January 05, 2008, 06:02:45 PM
-
I want to use "data/media" on two sites so that i dont have to upload all imagase to second websites because it will use the same as first one.
Both web pages are on the same server but diffrent users.
i tried to setup secend website constants.php
// Data paths
define('MEDIA_DIR', 'home/onpl24/public_html/tapety/data/media');
define('THUMB_DIR', 'home/onpl24/public_html/tapety/data/thumbnails');
define('MEDIA_TEMP_DIR', 'home/onpl24/public_html/tapety/data/tmp_media');
define('THUMB_TEMP_DIR', 'home/onpl24/public_html/tapety/data/tmp_thumbnails');
define('DATABASE_DIR', 'data/database');
define('TEMPLATE_DIR', 'templates');
But it doesn't work what ai did wrong is it possible to use the same "data/media" on both websites?
-
Hi,
no, it is not working.
A lot of functions need:
$media_dir
in a link. So the path is worng.
I thing only one way:
Gallery_1 => data/Gallery_2/data/media
- templates
- data
- Gallery_2 => data/media
- templates
- data
- media
- thumbnails
- tmp_media
- tmp_thumbnails
Use subdomains for deeper Url...
Test it ... :wink:
################### EDIT ######################
But you must use only one db for this way
KurtW
-
No need for use different media and thumb. 4images is use remote image for upload. ;)
-
Not good. I have got gallery which contains about 7GB images. And i want to create second one on different domain in another language. So there is now way to use the same data directory ?
-
ok now it works when i enter www.domain.com/wallpapers but it wont work when i go to www.wallpapers.domain.com it wont show any images is there anyway to fix that?
Maybe there is a way to create shortcut on server. For example i would create one in new installation directory and then change in constans.php to point to it ?