Author Topic: 2 Pages => 1 Image-/User-Database  (Read 7868 times)

0 Members and 1 Guest are viewing this topic.

Offline Bogi

  • Pre-Newbie
  • Posts: 3
    • View Profile
2 Pages => 1 Image-/User-Database
« on: October 30, 2005, 04:55:32 PM »
Hello Guys!
I have installed 4images into my PHPNuke-Community but i also want to have this 4images - site external ..
That means:
Users, who are registered @ my community can access 4images with their account (works fine)
AND a external 4images installation should use the same images and users ... okay, it will be easy to implement the users, but how can i use the same images???

my second installation reads the database of the first installation exactly, but of course it is not able to find the images on the server, because it's another installation ...

where can i edit the path to images??? or isn't it so easy to change?

best regards, pete aka bogi

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: 2 Pages => 1 Image-/User-Database
« Reply #1 on: October 30, 2005, 04:58:55 PM »
its in includes/constants.php
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Bogi

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: 2 Pages => 1 Image-/User-Database
« Reply #2 on: October 30, 2005, 05:20:31 PM »
hmm, thanks for this fast answer, but the problem is, it wants a relative path ... okay, this wouldn't be a big problem, but it don't accept http:// or ../ at the beginning ...
there's automatically a ./ at the beginning ... :(

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: 2 Pages => 1 Image-/User-Database
« Reply #3 on: October 30, 2005, 05:49:49 PM »
Ops, my bad.
its in global.php:
Code: [Select]
define('MEDIA_PATH', ROOT_PATH.MEDIA_DIR);
define('THUMB_PATH', ROOT_PATH.THUMB_DIR);
define('MEDIA_TEMP_PATH', ROOT_PATH.MEDIA_TEMP_DIR);
define('THUMB_TEMP_PATH', ROOT_PATH.THUMB_TEMP_DIR);
define('TEMPLATE_PATH', ROOT_PATH.TEMPLATE_DIR."/".$config['template_dir']);
define('ICON_PATH', ROOT_PATH.TEMPLATE_DIR."/".$config['template_dir']."/icons");
replace ROOT_PATH with your own relative path i.e.: "../" (including quotes!)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Bogi

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: 2 Pages => 1 Image-/User-Database
« Reply #4 on: October 30, 2005, 06:25:04 PM »
yeah, no it works!!!
thank you very much for help

Offline SantaZ

  • Hero Member
  • *****
  • Posts: 885
    • View Profile
Re: 2 Pages => 1 Image-/User-Database
« Reply #5 on: May 27, 2006, 09:53:48 PM »
hello,

I looking for the same. But 4images do not show the image.

I edit
Code: [Select]
define('MEDIA_PATH', ROOT_PATH.MEDIA_DIR);
to

Code: [Select]
define('MEDIA_PATH', "../../../htdocs/".MEDIA_DIR);

The path is correct and he find the picture. But he donīt show it ;)

When 4images donīt find the pic I become normaly the error message "404 - file not find.
By me he find the pic and he show a table at the correct size of the pic.

you can see it here
http://original.xxx.de/4images/details.php?image_id=3570


What could be the problem?
« Last Edit: May 28, 2006, 11:35:44 AM by SantaZ »
cu SantaZ

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: 2 Pages => 1 Image-/User-Database
« Reply #6 on: May 28, 2006, 11:21:47 AM »
the directory with pictures must be accessible from the web. In your case htdocs is most probably web root directory, so if your pictures located in the web root directory, then you should use simply ../../../ (without word httdocs)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline SantaZ

  • Hero Member
  • *****
  • Posts: 885
    • View Profile
Re: 2 Pages => 1 Image-/User-Database
« Reply #7 on: June 04, 2006, 09:07:06 PM »
It do not work. I become no picture (the path is the correct, Iīm sure) ;)




the directory with pictures must be accessible from the web.

What can I do that the dir ist accessible from the web? I have no root server but changes are possible.
cu SantaZ