htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
Image Manager/OScommerce


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


keithxtreme
New User

Dec 9, 2004, 12:43 PM

Post #1 of 7 (3135 views)
Shortcut
Image Manager/OScommerce Can't Post

I have tried to get the answer over at the OSC forums, but no one will reply...

No matter what I change, I cannot get the Image Manager to have the correct paths...

Here is my OSC config...What and where do I have to change to link this all up?

define('HTTP_SERVER', 'https://secure.xtremecrawlers.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'www.xtremecrawlers.com');
define('HTTPS_CATALOG_SERVER', 'secure.xtremecrawlers.com');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/xtremecrawlers.com/httpdocs/catalog/'); // where the pages are located on the server
define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
define('DIR_FS_ADMIN', '/home/httpd/vhosts/xtremecrawlers.com/httpdocs/catalog/admin/'); // absolute pate required
define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
define('DIR_FS_CATALOG', '/home/httpd/vhosts/xtremecrawlers.com/httpdocs/catalog/'); // absolute path required
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
Attachments: picture1.jpg (24.2 KB)


keithxtreme
New User

Dec 9, 2004, 12:58 PM

Post #2 of 7 (3131 views)
Shortcut
Re: [keithxtreme] Image Manager/OScommerce [In reply to] Can't Post

Nevermind, I tried one more thing and it worked....

For those of you...that also had this problem....

Here is the answer, that worked for me....

In popups/config.inc.php

Make these changes...
// IMAGE_DIR and IMAGE_URL identify the Image directory "root" (MUST end in "/")
// Do NOT include "http://my.hostname.com" in IMAGE_URL; just the path from the
// DocumentRoot of your webserver.
//define("IMAGE_DIR", trim(DIR_FS_CATALOG . DIR_WS_IMAGES));
//define("IMAGE_URL", trim(DIR_WS_CATALOG_IMAGES));
define("IMAGE_DIR", trim("/home/httpd/vhosts/xtremecrawlers.com/httpdocs/catalog/images/"));
define("IMAGE_URL", trim("/catalog/images/"));

// NETPBM_DIR identifies the directory where NETPBM is located (MUST end in "/")
// Not used if either CONSTRAIN_HEIGHT or CONSTRAIN_WIDTH (above) is specified as "0".
define("NETPBM_DIR", trim(DIR_FS_CATALOG));

// SCRIPT_DIR and SCRIPT_URL identify where these scripts reside (MUST end in "/")
// Do NOT include "http://my.hostname.com" in SCRIPT_URL; just the path from the
// DocumentRoot of your webserver.
//define("SCRIPT_DIR", trim(DIR_FS_ADMIN . "https://secure.xtremecrawlers.com/catalog/admin/htmlarea/popups/"));
//define("SCRIPT_URL", trim(DIR_WS_ADMIN . "htmlarea/popups/"));
define("SCRIPT_DIR", trim(DIR_FS_ADMIN . "/home/httpd/vhosts/xtremecrawlers.com/httpdocs/catalog/admin/htmlarea/popups/"));
define("SCRIPT_URL", trim(DIR_WS_ADMIN . "/htmlarea/popups/"));


and further towards the bottom...

Change:
// return the URL
return ("http://" . $HTTP_SERVER_VARS["HTTP_HOST"] . $url);
}

to

// return the URL
return ("https://" . $HTTP_SERVER_VARS["HTTP_HOST"] . $url);
}


NickW
Novice

Jan 6, 2005, 10:52 AM

Post #3 of 7 (3021 views)
Shortcut
Re: [keithxtreme] Image Manager/OScommerce [In reply to] Can't Post

I'm sure your post is the answer to my problem but I'm not quite there. I've included the following change

return ("https://" . $HTTP_SERVER_VARS["HTTP_HOST"] . $url);

but when I click on an image file name in the Image Manager I'm still getting a script error:

Line 34:

Error: "Access denied"

The image loads in the right hand box ok but the selected image url does not update.


keithxtreme
New User

Jan 6, 2005, 12:52 PM

Post #4 of 7 (3016 views)
Shortcut
Re: [NickW] Image Manager/OScommerce [In reply to] Can't Post

Have you enabled write access to the images directory?


NickW
Novice

Jan 6, 2005, 1:58 PM

Post #5 of 7 (3008 views)
Shortcut
Re: [keithxtreme] Image Manager/OScommerce [In reply to] Can't Post

I just double checked that and yes the directory has read-write permissions for everyone. It was working fine until I changed the configuration to https.


keithxtreme
New User

Jan 6, 2005, 2:01 PM

Post #6 of 7 (3003 views)
Shortcut
Re: [NickW] Image Manager/OScommerce [In reply to] Can't Post

What about your paths?...I had to mess with mine until I got it right. If it worked before you added https, than I would guess your path for secure images is the problem.


NickW
Novice

Jan 6, 2005, 3:53 PM

Post #7 of 7 (2996 views)
Shortcut
Re: [keithxtreme] Image Manager/OScommerce [In reply to] Can't Post

Solved it! I had made the change from http to https in function imageURL but had missed the fact that I needed to do the same amendment in function scriptURL (around line 387). It now seems to work fine.

Thanks for your help!

Nick

 
 
 


Search for (options)