We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Magnatron [Maarten Wolzak] Reply #1, 17 years, 6 months ago
    I got QuickEdit to work by making the following changes to /assets/modules/quick_edit/output.class.inc.php:

    Line 50 & 51, change from:

    [tt] $this->checked_image = "<img src=\"{$GLOBALS[’quick_edit_path’]}/images/checked.gif\" alt=.....
    $this->unchecked_image = "<img src=\"{$GLOBALS[’quick_edit_path’]}/images/unchecked.gif\" alt=......[/tt]

    to:

    [tt] $this->checked_image = "<input type=\"checkbox\" DISABLED CHECKED alt=\"checked\" style=\"float:left; padding: 0px; margin:2px 0px 0px 0px; height:8px; margin-right:3px;\" />";
    $this->unchecked_image = "<input type=\"checkbox\" DISABLED alt=\"unchecked\" style=\"float:left; padding: 0px; margin:2px 0px 0px 0px; height:8px; margin-right:3px;\" />";[/tt]

    (to prevent broken images in settings menu)

    After line 225:

    // Define the CSS and Javascript that we will add to the header of the page

    Add the following:

    [tt]$bpath = explode("/",$manager_path);
    array_pop($bpath);array_pop($bpath);
    $bpath = implode("/",$bpath)."/";[/tt]

    And add {$bpath} in the headers block that follows so it reads like:


    [tt]<!-- Start QuickEdit headers -->
    <script type="text/javascript">
    var modId = ’{$module_id}’;
    var managerPath = ’{$manager_path}’;
    var modPath = ’{$bpath}{$qe_path}’;
    </script>
    <script src="{$bpath}{$qe_path}/javascript/cookies.js" type="text/javascript"></script>
    <script src="{$bpath}{$qe_path}/javascript/output.js" type="text/javascript"></script>
    <script type="text/javascript" src="{$bpath}manager/media/script/scriptaculous/prototype.js"></script>
    <script type="text/javascript" src="{$bpath}manager/media/script/scriptaculous/scriptaculous.js"></script>
    <link type="text/css" rel="stylesheet" href="{$bpath}{$qe_path}/styles/output.css" />
    <!-- End QuickEdit headers -->[/tt]

    That’s it, seems to work fine on IE & FF (WindowsXP)

      • 7923
      • 4,213 Posts


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."