You are not logged in.
Pages: 1
hello everybody,
i implemented xinha one week ago and i still have a single problem with the image upload...
i configured the config-file but and the image-upload was succefully
(files were uploaded to my configured folder).
but when i want to insert one of these images to my document i still uses the wrong path (the predefined "./demo_images")...
This is a part of my config.inc.php:
* CHANGE THIS: for out-of-the-box demo purposes we're setting this to ./demo_images
* which has some graphics in it.
*/
// $IMConfig['images_dir'] = "/some/path/to/images/directory;
$IMConfig['images_dir'] = "../../../images/uploads";
Maybe someone knows about the right configuration - I would be beside of myself with joy..
Best regards,
Dave
Offline
You must also set images_url
/**
* URL of directory containing images.
*
* The URL to the above path, the web browser needs to be able to see it.
* It can be protected via .htaccess on apache or directory permissions on IIS,
* check you web server documentation for futher information on directory protection
* If this directory needs to be publicly accessiable, remove scripting capabilities
* for this directory (i.e. disable PHP, Perl, CGI). We only want to store assets
* in this directory and its subdirectories.
*
* CHANGE THIS: You need to change this to match the url where you have Xinha
* installed. If the images show up blank chances are this is not set correctly.
*/
// $IMConfig['images_url'] = "/url/to/above";
// try to figure out the URL of the sample images directory. For your installation
// you will probably want to keep images in another directory.
$IMConfig['images_url'] = str_replace( "backend.php", "", $_SERVER["PHP_SELF"] ) . "demo_images";
James Sleeman
Offline
check out config file in
http://www.xinha.org/punbb/viewtopic.php?pid=7999#p7999
Offline
Yeh, I had the same problem also but managed to fix it with your solutions campusano. Thumbs up!
Last edited by ChrisBrad51 (2011-02-26 00:36:34)
Offline
campusano, I have checked the config file that you have mentioned here..:) Now it becomes easier for me to upload image...Thanks to you....
Offline
Hay campusano, thanks for your solution. I have checked your config file, its really helpful.
Thanks to all.
French chateau to rent rent large house in France
Last edited by annamartha432 (2013-04-19 08:51:06)
Offline
Daves, at first I have to face this error while uploading a image...:(
But now i can do it. I am grateful to gogo...Because i follow the code that he has given here..:)
Offline
Pages: 1