Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default Re: Numinix Product Fields(description2)

    Just installed the latest version of this from Numinix. Still no response for the problem of a PHP warning on line 84 of tpl_product_info_display.php.

    Being just a warning, I can live with that BUT, I believe their use of FCKEDITOR vs CKEDITOR was the original problem with this thread and STILL is there today.

    In their admin/popup_test_edit.php, lines 79-96 are:
    Code:
    <?php //    echo zen_draw_form('popup_text_edit', FILENAME_POPUP_TEXT_EDIT, '', 'post', 'enctype="multipart/form-data" onsubmit="setPopupText(this);return true;"');
        echo zen_draw_hidden_field('action', 'set');
        if ($_SESSION['html_editor_preference_status']=="FCKEDITOR") {
            $oFCKeditor = new FCKeditor('message_html') ;
            $oFCKeditor->Value = 'lena';
            $oFCKeditor->Width  = '97%' ;
            $oFCKeditor->Height = '470' ;
    //        $oFCKeditor->Create() ;
            $output = $oFCKeditor->CreateHtml() ; echo $output;
        } else { // using HTMLAREA or just raw "source"
            echo zen_draw_textarea_field('message_html', 'soft', '95%', '28', '', 'id="message_html"');
            echo '<script type="text/javascript"><!--
      document.getElementById(\'message_html\').value = opener.document.getElementById(opener.textEditFieldID).value;
    // --></script>';
        }
        echo zen_image_submit('button_save.gif', IMAGE_SAVE) . '<a href="javascript:window.close()">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
    ?>
    FCKEDITOR was abandoned in 2010!
    There template to show the second description uses
    Code:
            <?php if ($_SESSION['html_editor_preference_status']=="FCKEDITOR") {                $oFCKeditor = new FCKeditor('products_description2[' . $languages[$i]['id'] . ']') ;
                    $oFCKeditor->Value = (isset($products_description2[$languages[$i]['id']])) ? stripslashes($products_description2[$languages[$i]['id']]) : zen_get_products_description2($pInfo->products_id, $languages[$i]['id']) ;
                    $oFCKeditor->Width  = '99%' ;
                    $oFCKeditor->Height = '350' ;
    //                $oFCKeditor->Config['ToolbarLocation'] = 'Out:xToolbar' ;
    //                $oFCKeditor->Create() ;
                    $output = $oFCKeditor->CreateHtml() ;  echo $output;
              } else { // using HTMLAREA or just raw "source"
    
    
                echo zen_draw_textarea_field('products_description2[' . $languages[$i]['id'] . ']', 'soft', '100%', '30', (isset($products_description2[$languages[$i]['id']])) ? stripslashes($products_description2[$languages[$i]['id']]) : zen_get_products_description2($pInfo->products_id, $languages[$i]['id'])); //,'id="'.'products_description' . $languages[$i]['id'] . '"');
              } ?>
    I'm not able to play with this much IRL and would appreciate thoughts on this as I imagine it's not as simple as dropping the F in each case.

  2. #12
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: Numinix Product Fields(description2)

    If you look at admin/includes/modules/product/collect_info.php, you can see the logic for invoking CKEditor (or not) is greatly simplified.

    Here's the product description field:


    <?php echo zen_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '100', '30', htmlspecialchars((isset($products_description[$languages[$i]['id']])) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE), 'class="editorHook form-control"'); ?>
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v154 Numinix Product Fields
    By adb34 in forum All Other Contributions/Addons
    Replies: 68
    Last Post: 24 May 2017, 08:09 PM
  2. v151 Numinix Product Fields Version: 1.3.0
    By BlessIsaacola in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 25 Nov 2016, 07:06 PM
  3. v151 numinix product fields
    By adb34 in forum General Questions
    Replies: 2
    Last Post: 10 Sep 2014, 06:46 PM
  4. v139h How to add Numinix Product Fields (MSRP) to Product Listing Pages
    By Angeltown in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 7 Nov 2013, 11:00 PM
  5. numinix product fields UPC not working
    By kitcorsa in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 28 Dec 2012, 03:43 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR