Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

WYSIWYG Picture upload in Categories


zweilicht

Recommended Posts

:( Hi

 

After installing WYSIWYG the image upload for product-categories doesn't work anymore!? everything else works fine!!!

 

there is a runtime-error occuring (line 253 document.all[...].style is 0 or no object - i think there should be loaded the html area picture upload funcionality, but it doesn't - in the categories menu all looks like before wysiwyg ...

 

can anybody help me solving this problem!?

 

THX ;)

Link to comment
Share on other sites

... as I've tried the error is inbetween these lines:

 

(arround 80) can anybody tell me, what is wrong in here?: :rolleyes:

 

if (HTML_AREA_WYSIWYG_DISABLE == 'Disable') {

if ($categories_image = new upload('categories_image', DIR_FS_CATALOG_IMAGES)) {

tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($categories_image->filename) . "' where categories_id = '" . (int)$categories_id . "'");

}

} else {

if (isset($HTTP_POST_VARS['categories_image']) && tep_not_null($HTTP_POST_VARS['categories_image']) && ($HTTP_POST_VARS['categories_image'] != 'none')) {

tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($HTTP_POST_VARS['categories_image']) . "' where categories_id = '" . (int)$categories_id . "'");

}

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...