Jump to content

Denzel

Members
  • Content count

    540
  • Joined

  • Last visited

  • Days Won

    8

Reputation Activity

  1. Thanks
    Denzel reacted to kgtee in Serve images in next-gen formats   
    Hi @Denzel, the logical sequence to have the STORE_WEBP_IMAGE_STATUS defined first before the module executes was not done correctly in my previous upload. I will revise and upload a new module afterwards.
    Please bear with my coding skill as I am an amateur, doing this for my shop and thinking my work may be helpful to others.  As you should notice all my postings in the app market are opened to all to edit and make improvements. You are encouraged to change them if you think necessary.
  2. Thanks
    Denzel reacted to vmn in AJAX Attribute Manager support   
    In 1.0.7.14 the following functions are deprecated in admin:
    tep_session_id
    tep_session_name
    tep_session_register
    tep_session_is_registered
    tep_session_unregister
    It seems to be working with fixes for
    admin/attributeManager/includes/attributeManagerHeader.inc.php
    admin/attributeManager/includes/attributeManagerSessionFunctions.inc.php
    included in the zip.
           
    fixes.for.1.0.7.14.zip
  3. Thanks
    Denzel got a reaction from raiwa in KissIT Image Thumbnailer Support   
    Found the list messed up again after searching a product, which is linked to a 2nd folder. Decided to add classes to the <th> tags, so we can exclude the choosen classes:
    $('table tbody td:has([href*="pID={$products_id}&"])').parent().find('th').not('.pmodel').not('.pname').addClass('pname').before('<th class="pmodel">{$products_model}</th>');   this works for me even with three links 😉 
  4. Thanks
    Denzel got a reaction from raiwa in AJAX Attribute Manager support   
    Installed v3.3.2 on Phoenix 1.0.7.12 and got:
    Notice: Constant AM_AJAX_IMAGE already defined in /admin/attributeManager/languages/german/attributeManager.php on line 79
    in attribute manager tab.
    Found some unused defines and AJAX_IMAGE twice in admin/attributeManager/languages/german/attributeManager.php 
    Deleted and works fine  
     
  5. Like
    Denzel reacted to raiwa in KissIT Image Thumbnailer Support   
    I believe the categories selector needs to be finetuned too. I would use the $ wildcard to match the end of the categories string:
    $('table tbody td:has([href$="cPath={$c_id_selector}"])').parent().find('th').before('<th>{$categories_thumb}</th>');  
  6. Like
    Denzel got a reaction from raiwa in KissIT Image Thumbnailer Support   
    before:

    after:

    with added products_model   
     
  7. Thanks
    Denzel got a reaction from raiwa in KissIT Image Thumbnailer Support   
    The optional admin thumbs hook doesn't work correct, if product ids becomes 3 digits. Images with product id 10 becomes added to products with id 100 to 109.
    The first try to prevent is to limit the jquery selector in line 67 of catKissIt.php hook:
    $('table tbody td:has([href*="pID={$products_id}&"])').parent().find('th').before('<th>{$products_thumb}</th>'); I simply have added an ampersand behind the $products_id cause normally there follows &cPath=xyz. Not sure, if this is the most elegant way, but it works for me  
  8. Like
    Denzel got a reaction from Fiber in TinyMCE editor for admin   
    The TinyMCE has issues with the required argument of html5. Found some threads on stack and git... 
    This fix works for me with Phoenix CE 1.0.7.12:
    Add this lines into the init call into the hook:
    setup: function (editor) { editor.on('change', function (e) { editor.save(); }); } so that it looks like this:
    <?php /* Copyright (c) 2019, C Poole All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* HOW TO USE you can either load the js file needed for TinyMCE locally or via the TinyMCE CDN (if you have a api key if using TinyMCE CDN use the url proivded to you by TinyMCE if loading tinymce locally <script src="path/to/where/you/saved/it"></script> I recommend using the TinyMCE CDN, as it will keep it up to date. HOW TO ADD TO OTHER TEXTAREAS You will need to add the name of the textera to the selector line e.g. if the textarea name is example_name[1] you need to put , textarea[name^="example_name"] it will then load it on all textareas with example_name so if you have a multi language store, it will load for all languages if the textarea is not on the categories or manufacors page then you will neeed to add the filename to the $good_pages variable HOW TO ADD/RE,OVE PLUGINS AND WHAT APPEARS IN THE TOOLBARS this is done by simply adding/removing stuff from the plugins or toolbar settings it is just what i use personally */ class hook_admin_siteWide_tinymce { var $version = '1.0.3'; var $sitestart = null; var $siteend = null; var $good_pages = ['categories.php', 'manufacturers.php', 'info_pages.php']; // what pages do you want to load the tinymce editor on function listen_injectSiteEnd() { $this->siteend .= '<!-- tiny mce -->' . PHP_EOL; $this->siteend .= '<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/5.0.15/tinymce.min.js"></script>' . PHP_EOL; $tinyScript = <<<eod <script> tinymce.init({ selector: 'textarea[name^="products_description"], textarea[name^="categories_description"], textarea[name^="manufacturers_description"], textarea[name^="page_text"]', // Select all textarea we want to use it on height: 500, width: "100%", forced_root_block : false, theme: 'silver', plugins: [ 'advlist autolink lists link image charmap print preview hr anchor pagebreak', 'searchreplace wordcount visualblocks visualchars code fullscreen', 'insertdatetime media nonbreaking save table contextmenu directionality', 'emoticons template paste textcolor colorpicker textpattern imagetools codesample toc' ], toolbar1: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', toolbar2: 'print preview media | forecolor backcolor | codesample fontselect fontsizeselect', image_advtab: true, relative_urls : true, remove_script_host : true, content_css: [ 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.1/css/all.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css' ], setup: function (editor) { editor.on('change', function (e) { editor.save(); }); } }); </script> eod; if (in_array(basename($_SERVER['PHP_SELF']), $this->good_pages)) { $this->siteend .= $tinyScript . PHP_EOL; return $this->siteend; } } } I have already added the Info-Pages textareas. Maybe Craig @puddlec can upload it as update into the marketplace. 
  9. Like
    Denzel got a reaction from Fiber in TinyMCE editor for admin   
    The TinyMCE has issues with the required argument of html5. Found some threads on stack and git... 
    This fix works for me with Phoenix CE 1.0.7.12:
    Add this lines into the init call into the hook:
    setup: function (editor) { editor.on('change', function (e) { editor.save(); }); } so that it looks like this:
    <?php /* Copyright (c) 2019, C Poole All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* HOW TO USE you can either load the js file needed for TinyMCE locally or via the TinyMCE CDN (if you have a api key if using TinyMCE CDN use the url proivded to you by TinyMCE if loading tinymce locally <script src="path/to/where/you/saved/it"></script> I recommend using the TinyMCE CDN, as it will keep it up to date. HOW TO ADD TO OTHER TEXTAREAS You will need to add the name of the textera to the selector line e.g. if the textarea name is example_name[1] you need to put , textarea[name^="example_name"] it will then load it on all textareas with example_name so if you have a multi language store, it will load for all languages if the textarea is not on the categories or manufacors page then you will neeed to add the filename to the $good_pages variable HOW TO ADD/RE,OVE PLUGINS AND WHAT APPEARS IN THE TOOLBARS this is done by simply adding/removing stuff from the plugins or toolbar settings it is just what i use personally */ class hook_admin_siteWide_tinymce { var $version = '1.0.3'; var $sitestart = null; var $siteend = null; var $good_pages = ['categories.php', 'manufacturers.php', 'info_pages.php']; // what pages do you want to load the tinymce editor on function listen_injectSiteEnd() { $this->siteend .= '<!-- tiny mce -->' . PHP_EOL; $this->siteend .= '<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/5.0.15/tinymce.min.js"></script>' . PHP_EOL; $tinyScript = <<<eod <script> tinymce.init({ selector: 'textarea[name^="products_description"], textarea[name^="categories_description"], textarea[name^="manufacturers_description"], textarea[name^="page_text"]', // Select all textarea we want to use it on height: 500, width: "100%", forced_root_block : false, theme: 'silver', plugins: [ 'advlist autolink lists link image charmap print preview hr anchor pagebreak', 'searchreplace wordcount visualblocks visualchars code fullscreen', 'insertdatetime media nonbreaking save table contextmenu directionality', 'emoticons template paste textcolor colorpicker textpattern imagetools codesample toc' ], toolbar1: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', toolbar2: 'print preview media | forecolor backcolor | codesample fontselect fontsizeselect', image_advtab: true, relative_urls : true, remove_script_host : true, content_css: [ 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.1/css/all.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css' ], setup: function (editor) { editor.on('change', function (e) { editor.save(); }); } }); </script> eod; if (in_array(basename($_SERVER['PHP_SELF']), $this->good_pages)) { $this->siteend .= $tinyScript . PHP_EOL; return $this->siteend; } } } I have already added the Info-Pages textareas. Maybe Craig @puddlec can upload it as update into the marketplace. 
  10. Like
    Denzel got a reaction from domiosc in Alternative Administration System: Categories/Products   
    I have found and edited the file. You have to copy it into
    admin/ext/aas/plugins/core/actions/
    Please make a backup of your file, it's untested...
    And tell me if it works  
    aas.php
  11. Like
    Denzel got a reaction from domiosc in Alternative Administration System: Categories/Products   
    I have found and edited the file. You have to copy it into
    admin/ext/aas/plugins/core/actions/
    Please make a backup of your file, it's untested...
    And tell me if it works  
    aas.php
  12. Thanks
    Denzel reacted to gadlol in Alternative Administration System: Categories/Products   
    You can find it here: https://github.com/gadlol/alternative-administration-system
  13. Thanks
    Denzel reacted to YePix in GitHub Crashkurs   
    Schau mal hier rein
    https://t3n.de/news/github-fuer-einsteiger-ersten-schritte-762760/
  14. Like
    Denzel got a reaction from raiwa in [Contribution] Recently Viewed Products(sales optimized)   
    Ok, I got it... I had to change
     
    if ($product_check['total'] > 0) { //We don't want to add products that don't exist/are not available
     
    to
     
    if (isset($product_info) && $product_info->product_exists() === true) { //We don't want to add products that don't exist/are not available   and 
     
          global $oscTemplate, $PHP_SELF, $_SESSION, $recently_viewed_string, $product_check;   to         global $oscTemplate, $PHP_SELF, $_SESSION, $recently_viewed_string, $product_info;   in ht_recently_viewed.php. Now the Box is displayed but missing articles would not added to the session.  :thumbsup:    SEE YA Denzel.  
  15. Like
    Denzel got a reaction from auzStar in [Contribution] Customer Testimonials for osCommerce 2.3.4   
    Yes thats right, there is no catalog folder in my shop. Its directly in the root.
     
    SEE YA
    Denzel.
  16. Like
    Denzel got a reaction from bruyndoncx in [Contribution] Products Specifications   
    First of all: Im very impressed, that you both take care of my problems so quickly  :thumbsup:  :D
     
    At second goes the biggest THANK YOU to Carine (Ive robbed her sleep  o:) )
     
    With your code you save me a lot of time ! Maybe it really was too late yesterday... I found a little mistake in the script in admin/categories.php:
    <script> var $radios = $('input[type=radio][data-sync]'); $radios.change(function() { $radios.filter('[data-sync="' + $(this).attr('data-sync') + '"]').prop('checked', true); }); var $checks = $('input[type=checkbox][data-sync]'); $checks.change(function() { $checks.filter('[data-sync="' + $(this).attr('data-sync') + '"]').prop('checked', $(this).prop('checked')); }); </script> With this corrections it did exactly what I want   (w00t)  :thumbsup: Once again: Thank you very much !
     
    SEE YA !
     
    Denzel.
×