Jump to content

delaballe

Members
  • Content count

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    R. Olivier
  1. delaballe

    [Contribution] FCKosc 2.2 Support

    Hello scully, Like I mark it in higher red, it is necessary to remove the temporary files of your navigator. See Ci below the bond of the support of fckeditor, it is also indicated all in bottom: -> Support Fckeditor
  2. delaballe

    [Contribution] FCKosc 2.2 Support

    Hello, Following the post above I started to integrate the following code to modify the field image of the products. In admin/includes/fonction/html_output.php to replace: // Output a form filefield function tep_draw_file_field($name, $required = false) { $field = tep_draw_input_field($name, '', '', $required, 'file'); return $field; } By: // Output a form filefield function tep_draw_file_field($name, $required = false) { $oFCKeditor = new FCKeditor($name); $oFCKeditor->BasePath = HTTP_SERVER . DIR_WS_ADMIN . 'FCKeditor/'; $oFCKeditor->ToolbarSet = 'Image'; $oFCKeditor->Width = '435'; $oFCKeditor->Height = '400'; $oFCKeditor->Value = $html; $field = $oFCKeditor->CreateHtml($name); //$field = tep_draw_input_field($name, '', '', $required, 'file'); return $field; } In admin/FCKeditor/fckconfig.js to replace: FCKConfig.ToolbarSets["Image"] = [ ['Source','Image','-','About'] ]; Just below: FCKConfig.ToolbarSets["Basic"] = [ ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] ]; ATTENTION to empty your mask in your navigator after modification of the file fckconfig.js In admin/categories.php to replace: case 'new_product_preview': // copy image only if modified $products_image = new upload('products_image'); $products_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($products_image->parse() && $products_image->save()) { $products_image_name = $products_image->filename; } else { $products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : ''); } break; by: case 'new_product_preview': // copy image only if modified case 'new_product_preview': if (isset($HTTP_POST_VARS['products_image']) && tep_not_null($HTTP_POST_VARS['products_image']) && ($HTTP_POST_VARS['products_image'] != 'none')) { $products_image_name = $HTTP_POST_VARS['products_image']; } else { $products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : ''); } break; Conclusion: Currently fckeditor posts me in source for the image the following code: < img width="649 "height="564" src="/Projets/ms2_avec_fckeditor/boutique/images/Image/g_dg834g.jpg "alt =" "/> Whereas to function correctly it would be necessary to post: Image/g_dg834g.jpg I do not find the solution for reformater the source code which fckeditor gives, the remainder seems well to function. If one can find the solution I could put a new version of the contribution, with the last stable version of fckeditor 2.0
  3. delaballe

    [Contribution] FCKosc 2.2 Support

    Hello, I would like to be able to add the possibility of downloading the image of the product with fckeditor as one could do it with old the wysiwyg. Would have an idea how to put it into practice, that make almost 2 days that I am in trein to seek and I board still not the solution. Please excuse me for my English who is not my language.
×