4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Bogi on October 30, 2005, 04:55:32 PM

Title: 2 Pages => 1 Image-/User-Database
Post by: Bogi 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
Title: Re: 2 Pages => 1 Image-/User-Database
Post by: V@no on October 30, 2005, 04:58:55 PM
its in includes/constants.php
Title: Re: 2 Pages => 1 Image-/User-Database
Post by: Bogi 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 ... :(
Title: Re: 2 Pages => 1 Image-/User-Database
Post by: V@no 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!)
Title: Re: 2 Pages => 1 Image-/User-Database
Post by: Bogi on October 30, 2005, 06:25:04 PM
yeah, no it works!!!
thank you very much for help
Title: Re: 2 Pages => 1 Image-/User-Database
Post by: SantaZ 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?
Title: Re: 2 Pages => 1 Image-/User-Database
Post by: V@no 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)
Title: Re: 2 Pages => 1 Image-/User-Database
Post by: SantaZ 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.