Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Developers Tool Kit refinement

    The following applies to zc 1.5.4. For older versions you will have to find the relevent code to change.

    1. To force word-wrapping of Developers Tool Kit results, especially of lengthy js type files, edit admin\includes\stylesheet.css, (around line 312)
    find
    Code:
    .main{
    }
    and immediately afterwards insert
    Code:
    .maindtk{/*added for developers tool kit*/
    word-break: break-all;
    }
    Then in \admin\developers_tool_kit.php (around line 165)
    change
    Code:
            $show_file .= '<tr><td class="main">';
    to
    Code:
            $show_file .= '<tr><td class="maindtk">';/*was class="main"*/

    2. Also in \admin\developers_tool_kit.php, if you do most of your searching in the catalog or includes folder, you can change the default search options for the various inputs to this folder, and so save yourself a few clicks upon each search.

    Search for instances of
    Code:
    zen_draw_pull_down_menu('zv_files', $za_lookup,
    and change the number that follows to suit the number of one of the options listed immediately above the instance.


    FWIW I also changed the number following
    Code:
    zen_draw_pull_down_menu('zv_filestype', $za_lookup_filetype,
    to 2 as many of my DTK searches are for php and css files.

    For these changes you might add a comment before and after the changes to indicate what you have done
    // bof php = 1 (default), php&css = 2
    ***the changed code***
    // eof php = 1 (default), php&css = 2

    Hope this helps

  2. #2
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Developers Tool Kit refinement

    Quote Originally Posted by dw08gm View Post
    The following applies to zc 1.5.4. For older versions you will have to find the relevent code to change.

    1. To force word-wrapping of Developers Tool Kit results, especially of lengthy js type files, edit admin\includes\stylesheet.css, (around line 312)
    find
    Code:
    .main{
    }
    and immediately afterwards insert
    Code:
    .maindtk{/*added for developers tool kit*/
    word-break: break-all;
    }
    Then in \admin\developers_tool_kit.php (around line 165)
    change
    Code:
            $show_file .= '<tr><td class="main">';
    to
    Code:
            $show_file .= '<tr><td class="maindtk">';/*was class="main"*/

    2. Also in \admin\developers_tool_kit.php, if you do most of your searching in the catalog or includes folder, you can change the default search options for the various inputs to this folder, and so save yourself a few clicks upon each search.

    Search for instances of
    Code:
    zen_draw_pull_down_menu('zv_files', $za_lookup,
    and change the number that follows to suit the number of one of the options listed immediately above the instance.


    FWIW I also changed the number following
    Code:
    zen_draw_pull_down_menu('zv_filestype', $za_lookup_filetype,
    to 2 as many of my DTK searches are for php and css files.

    For these changes you might add a comment before and after the changes to indicate what you have done
    // bof php = 1 (default), php&css = 2
    ***the changed code***
    // eof php = 1 (default), php&css = 2

    Hope this helps
    For code changes the recommended method is to go to:
    https://github.com/zencart/zencart
    Fork it, make the changes and then perform a pull request.

 

 

Similar Threads

  1. Developers Tool Kit Problem
    By kashyyyk in forum General Questions
    Replies: 5
    Last Post: 28 Jun 2015, 06:40 AM
  2. Developers tool kit
    By eden in forum General Questions
    Replies: 1
    Last Post: 25 Nov 2008, 11:01 PM

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