4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started 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
-
its in includes/constants.php
-
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 ... :(
-
Ops, my bad.
its in global.php: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!)
-
yeah, no it works!!!
thank you very much for help
-
hello,
I looking for the same. But 4images do not show the image.
I edit
define('MEDIA_PATH', ROOT_PATH.MEDIA_DIR);
to
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?
-
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)
-
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.