Author Topic: Use 4images/data/ directory of another installation  (Read 4402 times)

0 Members and 1 Guest are viewing this topic.

Offline hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Use 4images/data/ directory of another installation
« on: June 04, 2007, 01:10:43 AM »
I am already running a site with

4images/data/fullsize/####.jpg
4images/data/thumbs/####.jpg

so now I installed a clean 4images with

4images2/

directory.
I have already copied all the info from config.php and tried to change constants.php as well, but it didn't help.
DB works perfectly, all names, descriptions, user db, etc came over, but non of the images show up.

How can I fix this?

I tried to define the paths, but was not successful.

They are both on same server. just 4images and 4images2
Thank You.

Please Vote for my site: Here

Offline hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: Use 4images/data/ directory of another installation
« Reply #1 on: June 04, 2007, 01:43:29 AM »
Fixed:
I defined them as:

// Data paths
define('MEDIA_DIR', '../4images/data/FULLS');
define('THUMB_DIR', '../4images/data/THUMBS');
define('MEDIA_TEMP_DIR', '../4images/data/tmp_media');
define('THUMB_TEMP_DIR', '../4images/data/tmp_thumbnails');
define('DATABASE_DIR', '../4images/data/database');
define('TEMPLATE_DIR', 'templates');

and at the top i defined the URL

define('SCRIPT_URL', 'http://MY SERVER/4images2'); //no trailing slash

it worked.
:)

Please Vote for my site: Here

Offline jackald

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Use 4images/data/ directory of another installation
« Reply #2 on: January 15, 2008, 02:55:54 AM »
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?