osCmax v2.5 User Manual
Results 1 to 4 of 4

Help with this code

This is a discussion on Help with this code within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Im working on the New Mvs Mod to work with 2.5, now vendor comments is not working, here is the ...

      
  1. #1
    Member
    Join Date
    Jan 2008
    Posts
    43
    Rep Power
    0


    Default Help with this code

    Im working on the New Mvs Mod to work with 2.5, now vendor comments is not working, here is the old code that worked with FCKeditor:


    <?php //MVS start
    ?>
    <tr>
    <td class="main"><?php echo TEXT_VENDORS_PROD_COMMENTS; ?></td>
    <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . tep_draw_textarea_field('vendors_prod_comments', 'soft', '70', '5', (isset($vendors_prod_comments) ? $vendors_prod_comments : tep_get_vendors_prod_comments($pInfo->products_id))); ?></td>
    </tr>

    but it seems this dont work with the CKeditor why?

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Help with this code

    It might be worth removing the 'soft' reference since I removed this from v2.5 because it is not html W3C compliant. I think the tep_draw_textarea_field only has 4 variables not 5.

    eg.

    <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . tep_draw_textarea_field('vendors_prod_comments', '70', '5', (isset($vendors_prod_comments) ? $vendors_prod_comments : tep_get_vendors_prod_comments($pInfo->products_id)));
    pgmarshall
    _______________________________

  3. #3
    Member
    Join Date
    Jan 2008
    Posts
    43
    Rep Power
    0


    Default Re: Help with this code

    that code didn't work. It ends at vendor prod comments and that box has nothing:

    <?php // BOF: MOD WYSIWYG Editor
    /* <td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? $products_description[$languages[$i]['id']] : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td> */?>
    <td class="main"><?php if(HTML_AREA_WYSIWYG_DISABLE == 'Enable') {
    // BOF: MOD CKeditor
    echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '10', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id'])),'id = products_description[' . $languages[$i]['id'] . '] class="ckeditor"');
    //echo tep_draw_fckeditor ('products_description[' . $languages[$i]['id'] . ']', '550', '300', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))) . '</td>';
    // EOF: MOD CKeditor
    } else {
    echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'].']','soft','70','15',(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))) . '</td>';
    }
    // EOF: MOD WYSIWYG Editor ?>
    </tr>
    </table></td>
    </tr>
    <?php
    }
    ?>
    <?php //MVS start
    ?>
    <tr>
    <td class="main"><?php echo TEXT_VENDORS_PROD_COMMENTS; ?></td>
    <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . tep_draw_textarea_field('vendors_prod_comments', '70', '5', (isset($vendors_prod_comments) ? $vendors_prod_comments : tep_get_vendors_prod_comments($pInfo->products_id)));
    ?>
    </tr>
    <tr>
    <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
    <?php //MVS end
    ?>
    <tr>
    <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
    </tr>
    <?php //MVS start
    ?>
    <tr>
    <td class="main"><?php echo TEXT_VENDORS_PROD_ID; ?></td>
    <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . tep_draw_input_field('vendors_prod_id', $pInfo->vendors_prod_id); ?></td>
    </tr>
    <?php //MVS end

  4. #4
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Help with this code

    echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '10', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id'])),'id = products_description[' . $languages[$i]['id'] . '] class="ckeditor"');
    Anything with a 'soft' in will not work. tep_draw_textarea_field ONLY has 4 variables.

    Regards,
    pgmarshall
    _______________________________

Similar Threads

  1. Where is this code?
    By ASTON in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 08-17-2010, 01:01 AM
  2. Activation Code
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-10-2009, 07:51 AM
  3. Activation Code
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-07-2009, 12:10 PM
  4. Activation Code
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-09-2008, 02:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •