Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bassmaga

Members
  • Content count

    29
  • Joined

  • Last visited


Reputation Activity

  1. Like
    bassmaga got a reaction from houbenator in Information Pages Unlimited v1.0   
    Try this:
    In admin\includes\functions\html_output.php add:

    /// ckeditor output function tep_draw_textarea_ckeditor($name, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { global $HTTP_GET_VARS, $HTTP_POST_VARS; $field = '<textarea name="' . tep_output_string($name) . '" style="width:' . tep_output_string($width) . 'px;height:' . tep_output_string($width) . 'px" rows="10" cols="10" '; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if ( ($reinsert_value == true) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) { if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) { $field .= tep_output_string_protected(stripslashes($HTTP_GET_VARS[$name])); } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) { $field .= tep_output_string_protected(stripslashes($HTTP_POST_VARS[$name])); } } elseif (tep_not_null($text)) { $field .= tep_output_string_protected($text); } $field .= '</textarea>'; $field .= '<script type="text/javascript"> CKEDITOR.replace( \''.tep_output_string($name).'\', { filebrowserBrowseUrl : \''.DIR_WS_ADMIN.'ckeditor/filemanager/index.php?editor=ckeditor\', filebrowserImageBrowseUrl : \''.DIR_WS_ADMIN.'ckeditor/filemanager/index.php?editor=ckeditor&filter=image\', filebrowserFlashBrowseUrl : \''.DIR_WS_ADMIN.'ckeditor/filemanager/index.php?editor=ckeditor&filter=flash\', }); </script>'; return $field; }
     
    And were you need ckeditor change
     
     
    tep_draw_textarea_field
    to
    tep_draw_textarea_ckeditor
     
    but this function hasn't $wrap parametr
     
    For example in admin/information_form.php
     
    from
     
    <?php echo tep_draw_textarea_field('information_description[' . $languages[$i]['id'] . ']', '', '100', '20', (($languages[$i]['id'] == $languages_id) ? stripslashes($edit[information_description]) : tep_get_information_entry($information_id, $languages[$i]['id'], 'information_description'))); ?>
     
    to
     
    <?php echo tep_draw_textarea_ckeditor('information_description[' . $languages[$i]['id'] . ']', 'soft', '70', (isset($information_description[$languages[$i]['id']]) ? stripslashes($information_description[$languages[$i]['id']]) : tep_get_information_entry($information_id, $languages[$i]['id'], 'information_description'))); ?>
×