mariovaldez.net
http://www.mariovaldez.net/webapps/forums/

Images in non-default directory
http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=12&t=133
Page 1 of 1

Author:  dyne [ 21 Sep 2004, 08:47 ]
Post subject:  Images in non-default directory

Hello,

My poduct images are in the following directory : images/products/

So in Configuration > Images > Images URL I set-up :
http://www.domain.fr/images/products/

And in oscpm1_upload.php :
$opm_images_directory = "images/products/";

the files are uploaded to the right directory but the links are to images/ ???

Author:  mvaldez [ 23 Sep 2004, 13:11 ]
Post subject:  Images in non-default directory.

Dyne:

> Hello, My poduct images are in the following directory :
> images/products/ So in Configuration > Images >
> Images URL I set-up : http://www.domain.fr/images/products/
> And in oscpm1_upload.php : $opm_images_directory =
> "images/products/"; the files are uploaded to the right
> directory but the links are to images/ ???

Hi. I have one question, in the database table "products", the field "products_image" is normally (without the OSCPMWin application) set like "products/xxxx.jpg" or is set like "xxxx.jpg"?

If your images are set like "products/xxxx.jpg" then you can use the version 0.1.0.481, which supports images in different directories. Set the Images URL as http://www.domain.fr/images/ and upload the oscpm1_upload.php script (unmodified) provided with version 0.1.0.481.

The second case (if the field is set like "xxxx.jpg") is currently unsupported, but I'll check it out if you need it.

Regards,

Mario A. Valdez-Ramirez.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/