Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: MODUL: Kommentarvorlagen, Textvorlagen für E-Mails an Kunden aus Bestellung

    Duncan

    • Fördermitglied
    • Beiträge: 177
    • Geschlecht:
    @noRiddle
    Nun läuft php 8.x und schon gibts was zu tun  :morning:

    [2021-07-14][error][modified][pid:20271] ERROR found for URL: /admin/nr_order_status_comments.php   {}   {}[2021-07-14][error][modified][pid:20271]Undefined constant "NR_TEXT_DISPLAY_NUMBER_OF_ORDER_STYTUS_COMMENTS" in File: .../admin/nr_order_status_comments.php on Line: 310   {}   {}Gruß

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.707
    • Geschlecht:
    :typo:
    Mache mal aus dem Y ein A in besagter Konstante in dem genannten File.

    Gruß,
    noRiddle

    Timm

    • Fördermitglied
    • Beiträge: 6.318
    In gleichnamiger Datei im Ordner /lang ist es auch mit y geschrieben.

    Gruß Timm

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.707
    • Geschlecht:
    Dann dürfte es keine Fehlermeldung geben.

    Gruß,
    noRiddle

    *NACHTRAG*
    Hier mal ein aktualisiertes Paket ohne Typos.

    *NACHTRAG 2*
    Hier mal noch ein paar Screenshots:

    [ Für Gäste sind keine Dateianhänge sichtbar ] [ Für Gäste sind keine Dateianhänge sichtbar ] [ Für Gäste sind keine Dateianhänge sichtbar ]

    [EDIT Tomcraft 15.07.2021: Screenshots & Modul in Beitrag 1 aktualisiert.]

    Duncan

    • Fördermitglied
    • Beiträge: 177
    • Geschlecht:
    So weit prima, alle Funktionen und Kommentare sind da, der Error ist beseitigt  :thumbs:

    Aber nun kommt das:

    Zitat
    [2021-07-15 12:20:44][warning][modified][pid:3067022]WARNING found for URL: /admin/nr_order_status_comments.php?page=1&oscID=12   {}   {}
    [2021-07-15 12:20:44][warning][modified][pid:3067022]Undefined variable $oscInfo in File: admin/nr_order_status_comments.php on Line: 284   {}   {}
    [2021-07-15 12:20:44][warning][modified][pid:3067022]WARNING found for URL: /admin/nr_order_status_comments.php?page=1&oscID=12   {}   {}
    [2021-07-15 12:20:44][warning][modified][pid:3067022]Undefined variable $oscInfo in File: admin/nr_order_status_comments.php on Line: 304   {}   {}
    [2021-07-15 12:20:44][warning][modified][pid:3067022]WARNING found for URL: /admin/nr_order_status_comments.php?page=1&oscID=12   {}   {}
    [2021-07-15 12:20:44][warning][modified][pid:3067022]Undefined variable $oscInfo in File: admin/nr_order_status_comments.php on Line: 280   {}   {}
    [2021-07-15 12:20:44][warning][modified][pid:3067022]WARNING found for URL: /admin/nr_order_status_comments.php?page=1&oscID=12   {}   {}
    [2021-07-15 12:20:44][warning][modified][pid:3067022]Undefined array key "action" in File: admin/nr_order_status_comments.php on Line: 280   {}   {}
    [2021-07-15 12:20:44][warning][modified][pid:3067022]WARNING found for URL: /admin/nr_order_status_comments.php?page=1&oscID=12   {}   {}
    [2021-07-15 12:20:44][warning][modified][pid:3067022]Undefined array key "action" in File: admin/nr_order_status_comments.php on Line: 320   {}   {}
    [2021-07-15 12:20:44][warning][modified][pid:3067022]WARNING found for URL: /admin/nr_order_status_comments.php?page=1&oscID=12   {}   {}
    [2021-07-15 12:20:44][warning][modified][pid:3067022]Undefined array key "action" in File: admin/nr_order_status_comments.php on Line: 330   {}   {}
    [2021-07-15 12:20:45][warning][modified][pid:3067022]WARNING found for URL: /admin/nr_order_status_comments.php?page=1&oscID=12&action=edit   {}   {}
    [2021-07-15 12:20:45][warning][modified][pid:3067022]Undefined variable $lng_image in File: admin/nr_order_status_comments.php on Line: 152   {}   {}
    [2021-07-15 12:20:45][warning][modified][pid:3067022]WARNING found for URL: /admin/nr_order_status_comments.php?page=1&oscID=12&action=edit   {}   {}
    [2021-07-15 12:20:45][warning][modified][pid:3067022]Undefined variable $lng_image in File: admin/nr_order_status_comments.php on Line: 163   {}   {}
    [2021-07-15 12:20:45][warning][modified][pid:3067022]WARNING found for URL: /admin/nr_order_status_comments.php?page=1&oscID=12&action=edit   {}   {}
    [2021-07-15 12:20:45][warning][modified][pid:3067022]Undefined array key "order_status_comments_id" in File: admin/nr_order_status_comments.php on Line: 205   {}   {}

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.707
    • Geschlecht:
    Hatte nie behauptet das Modul wäre "php 8"-kompatibel.
    Du kannst auch was tun und testen.
    Tausche mal den Code in der /admin/nr_order_status_comments.php hiermit aus und schaue ob es noch Notices und/oder Warnings gibt:
    Code: PHP  [Auswählen]
    <?php
    /***************************************************************
    * file: nr_order_status_comments.php
    * use: define and edit pattern texts for order status comments
    * (c) noRiddle 12-2016
                 ____
                |    |       |     | | |
      __   ___  |____/ °  ___|  ___| | |  ___
    |/  | |   | |   \  | |   | |   | | | |___|
    |   n |___o |    R i |___d |__ d l l |__e

    ***************************************************************/


    require('includes/application_top.php');

    //BOC vars
    $languages = xtc_get_languages();
    $action = (isset($_GET['action']) ? $_GET['action'] : '');
    $page = (isset($_GET['page']) ? (int)$_GET['page'] : 1);
    //display per page
    $cfg_max_display_results_key = 'MAX_DISPLAY_NR_ORDERSTAT_COMMENTS';
    $page_max_display_results = xtc_cfg_save_max_display_results($cfg_max_display_results_key);
    //EOC vars

    //BOC switch action
    if (xtc_not_null($action)) {
        switch ($action) {
            case 'set_st_flag':
                if (($_GET['flag'] == '0') || ($_GET['flag'] == '1')) {
                    xtc_db_query("UPDATE ".TABLE_NR_ORDER_STATUS_COMMENTS." SET order_status_comments_status = ".(int)$_GET['flag']." WHERE order_status_comments_id = '".(int)$_GET['oscID']."'");
                }
            break;
            case 'insert':
            case 'save':
                $osc_id = (int)$_GET['oscID'];
               
                if ($action == 'insert') {
                    $sql_data_array = array('date_added' => 'now()',
                                            'order_status_comments_status' => 1,
                                            'order_status_comments_sort_order' => (int)$_POST['order_status_comments_sort_order']
                                           );
                    xtc_db_perform(TABLE_NR_ORDER_STATUS_COMMENTS, $sql_data_array);
                    $osc_id = xtc_db_insert_id();
                } elseif ($action == 'save') {
                    $sql_data_array = array('last_modified' => 'now()',
                                            'order_status_comments_status' => ($_POST['order_status_comments_status'] == 'on' ? 1 : 0),
                                            'order_status_comments_sort_order' => (int)$_POST['order_status_comments_sort_order']
                                           );
                    xtc_db_perform(TABLE_NR_ORDER_STATUS_COMMENTS, $sql_data_array, 'update', "order_status_comments_id = '" . (int)$osc_id . "'");
                }
               
                for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
                    //echo '<pre>'.print_r($_POST, true).'</pre>';
                    $order_status_comments_title_array = $_POST['order_status_comments_title'];
                    $order_status_comments_text_array = $_POST['order_status_comments_text'];
                    $language_id = $languages[$i]['id'];
                   
                    $sql_data_array = array(
                        'order_status_comments_title' => xtc_db_prepare_input($order_status_comments_title_array[$language_id]),
                        'order_status_comments_text' => xtc_db_prepare_input($order_status_comments_text_array[$language_id])
                    );

                    if ($action == 'insert') {
                        $insert_sql_data = array(
                            'order_status_comments_id' => (int)$osc_id,
                            'language_id' => $language_id
                        );

                        $sql_data_array = array_merge($sql_data_array, $insert_sql_data);
                        xtc_db_perform(TABLE_NR_ORDER_STATUS_COMMENTS_TXT, $sql_data_array);
                    } elseif ($action == 'save') {
                        $ord_stat_comms_query = xtc_db_query("SELECT *
                                                            FROM "
    .TABLE_NR_ORDER_STATUS_COMMENTS_TXT."
                                                           WHERE language_id = '"
    .$language_id."'
                                                             AND order_status_comments_id = '"
    .(int)$osc_id."'");
                        if (xtc_db_num_rows($ord_stat_comms_query) == 0) {
                            xtc_db_perform(TABLE_NR_ORDER_STATUS_COMMENTS_TXT, array('order_status_comments_id' => (int)$osc_id , 'language_id' => $language_id));
                        }
                        xtc_db_perform(TABLE_NR_ORDER_STATUS_COMMENTS_TXT, $sql_data_array, 'update', "order_status_comments_id = '".(int)$osc_id."' and language_id = '".$language_id."'");
                    }
                }
               
                xtc_redirect(xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, 'page='.(int)$page.'&oscID='.(int)$osc_id));
            break;

            case 'deleteconfirm':
                $osc_id = xtc_db_prepare_input((int)$_GET['oscID']);

                if ($_POST['delete_comment_text'] == 'on') {
                    xtc_db_query("DELETE FROM ".TABLE_NR_ORDER_STATUS_COMMENTS." WHERE order_status_comments_id = '" . (int)$osc_id . "'");
                    xtc_db_query("DELETE FROM ".TABLE_NR_ORDER_STATUS_COMMENTS_TXT." WHERE order_status_comments_id = '" . (int)$osc_id . "'");
                }

                xtc_redirect(xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, 'page=' . (int)$page));
              break;
        }
    }
    //EOC switch action

    //BOC HTML
    require (DIR_WS_INCLUDES.'head.php');
    ?>
    </head>
    <body>
      <!-- header //-->
      <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
      <!-- header_eof //-->
      <!-- body //-->
      <table class="tableBody">
        <tr>
          <?php //left_navigation
          if (USE_ADMIN_TOP_MENU == 'false') {
            echo '<td class="columnLeft2">'.PHP_EOL;
            echo '<!-- left_navigation //-->'.PHP_EOL;      
            require_once(DIR_WS_INCLUDES . 'column_left.php');
            echo '<!-- left_navigation eof //-->'.PHP_EOL;
            echo '</td>'.PHP_EOL;      
          }
          ?>
          <!-- body_text //-->
          <td class="boxCenter">  
            <div class="pageHeading pdg2 mrg5"><?php echo NR_HEADING_TITLE; ?></div>
            <?php
            if($action != '' && ($action == 'edit' || $action == 'new')) {
              if($action == 'new') {
                unset($_GET['oscID']);
              } else {
                $ord_stat_comm_query = xtc_db_query("SELECT *
                                                       FROM "
    .TABLE_NR_ORDER_STATUS_COMMENTS."
                                                      WHERE order_status_comments_id = '"
    .(int)$_GET['oscID']."'
                                               "
    );
                $ord_stat_comms = xtc_db_fetch_array($ord_stat_comm_query);          
              }
              echo xtc_draw_form('order_status_comm', FILENAME_NR_ORDER_STATUS_COMMENTS, 'page='.(int)$page.((isset($_GET['oscID'])) ? '&oscID='.(int)$_GET['oscID'] : '').'&action='.(($action == 'new') ? 'insert' : 'save'), 'post');
              ?>
              <div class="div_box mrg5">      
                <div class="main div_header"><?php echo sprintf(NR_TEXT_ORDER_STATUS_COMMENT, (isset($ord_stat_comms['order_status_comments_sort_order']) ? $ord_stat_comms['order_status_comments_sort_order'] : 'NEW')); ?></div>
                  <?php
                    echo '<div class="div_box">';
                    $rowspan = ' rowspan="'. 3 .'"';
                    ?>
                    <table class="tableConfig borderall">
                      <tr>
                        <?php
                        if($action == 'edit') {
                            $chkd = false;
                            if($ord_stat_comms['order_status_comments_status'] == '1') {
                                $chkd = true;
                            }
                        ?>
                        <td class="main">
                            <b><?php  echo NR_TEXT_ORDER_STATUS_COMMENTS_STATUS; ?></b>
                            <?php
                                echo xtc_draw_checkbox_field('order_status_comments_status', '', $chkd);
                            ?>
                        </td>
                        <?php
                        } else {
                            echo '<td class="main"></td>';
                        }
                        ?>
                        <td class="main">
                            <b><?php  echo NR_TEXT_ORDER_STATUS_COMMENTS_SORT_ORDER; ?></b> <?php echo xtc_draw_input_field('order_status_comments_sort_order', ((isset($ord_stat_comms['order_status_comments_sort_order'])) ? $ord_stat_comms['order_status_comments_sort_order'] : '')); ?>
                        </td>
                      </tr>
                    </table>
                    <?php
                    echo '</div>';
                  ?>
                <div style="clear:both;"></div>
                <div class="pdg2">
                  <?php
                  //query outside loop, 10-2020, noRiddle
                  if($action == 'edit') {
                      $order_status_comments_arr = array();
                      $order_status_comments_query = xtc_db_query("SELECT *
                                                                     FROM "
    .TABLE_NR_ORDER_STATUS_COMMENTS_TXT."
                                                                    WHERE order_status_comments_id = "
    .(int)$_GET['oscID']);
                      while($order_status_comments = xtc_db_fetch_array($order_status_comments_query)) {
                        $order_status_comments_arr[$order_status_comments['language_id']] = $order_status_comments;
                      }
                  }
                  //echo '<pre>'.print_r($order_status_comments_arr, true).'</pre>';
                 
                  include('includes/lang_tabs.php');
                  for ($i = 0; $i < sizeof($languages); $i++) {
                    echo ('<div id="tab_lang_' . $i . '">');
                    $lng_image = '<div style="float:left;margin-right:5px;">'.xtc_image(DIR_WS_LANGUAGES.$languages[$i]['directory'].'/admin/images/'.$languages[$i]['image']).'</div>';
                    ?>
                    <table class="tableInput border0">
                      <tr>
                        <td class="main"><b><?php  echo $lng_image.NR_TEXT_ORDER_STATUS_COMMENTS_TITLE; ?></b></td>
                        <td class="main"><?php echo xtc_draw_input_field('order_status_comments_title['.$languages[$i]['id'].']', ((isset($order_status_comments_arr[$languages[$i]['id']]['order_status_comments_title'])) ? $order_status_comments_arr[$languages[$i]['id']]['order_status_comments_title'] : ''), 'style="width:100%" maxlength="255"'); ?></td>
                      </tr>
                      <tr>
                        <td class="main"><b><?php  echo $lng_image.NR_TEXT_ORDER_STATUS_COMMENTS_TEXT; ?></b></td>
                        <td class="main"><?php echo xtc_draw_textarea_field('order_status_comments_text['.$languages[$i]['id'].']', 'soft', '100%', '18', ((isset($order_status_comments_arr[$languages[$i]['id']]['order_status_comments_text'])) ? $order_status_comments_arr[$languages[$i]['id']]['order_status_comments_text'] : '')); ?></td>
                      </tr>
                    </table>
                    <?php
                    echo ('</div>');
                  } ?>
                </div>
                <div style="clear:both;"></div>
                <!-- BOF Save block //-->
                <div class="txta-r">
                  <?php echo xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, 'page='.(int)$page.(isset($_GET['oscID']) ? '&oscID='.(int)$_GET['oscID'] : ''))).'&nbsp;'.xtc_button(BUTTON_SAVE); ?>
                </div>
                <!-- EOF Save block //-->
              </div>
              </form>
            <?php } else { ?>
              <table class="tableCenter">
                <tr>
                  <td class="boxCenterLeft">
                    <table class="tableBoxCenter collapse">
                      <tr class="dataTableHeadingRow">
                        <td class="dataTableHeadingContent"><?php echo NR_TABLE_HEADING_ORDER_STATUS_COMMENTS_ID.xtc_sorting(FILENAME_NR_ORDER_STATUS_COMMENTS,'osc_id'); ?></td>
                        <td class="dataTableHeadingContent"><?php echo NR_TABLE_HEADING_ORDER_STATUS_COMMENTS_TITLE.xtc_sorting(FILENAME_NR_ORDER_STATUS_COMMENTS,'osc_title'); ?></td>
                        <td class="dataTableHeadingContent"><?php echo NR_TABLE_HEADING_ORDER_STATUS_COMMENTS_SORT_ORDER.xtc_sorting(FILENAME_NR_ORDER_STATUS_COMMENTS,'osc_sort_order'); ?></td>
                        <td class="dataTableHeadingContent"><?php echo NR_TABLE_HEADING_ORDER_STATUS_COMMENTS_STATUS.xtc_sorting(FILENAME_NR_ORDER_STATUS_COMMENTS,'osc_status'); ?></td>
                        <td class="dataTableHeadingContent txta-r"><?php echo NR_TABLE_HEADING_ORDER_STATUS_COMMENTS_ACTION; ?>&nbsp;</td>
                      </tr>
                      <?php
                      //BOC sorting
                      $scnd_prm = ', osc.order_status_comments_id ASC'; //second ORDER BY for non unique first ORDER BY, 07-2021, noRiddle
                      $sorting = (isset($_GET['sorting']) ? $_GET['sorting'] : '');
                      if(xtc_not_null($sorting)) {
                        switch($sorting) {
                            case 'osc_id':
                                $sort = 'osc.order_status_comments_id ASC';
                                $scnd_prm = '';
                              break;
                            case 'osc_id-desc':
                                $sort = 'osc.order_status_comments_id DESC';
                                $scnd_prm = '';
                              break;
                            case 'osc_title':
                                $sort = 'osct.order_status_comments_title ASC';
                              break;
                            case 'osc_title-desc':
                                $sort = 'osct.order_status_comments_title DESC';
                              break;
                            case 'osc_status':
                                $sort = 'osc.order_status_comments_status ASC';
                              break;
                            case 'osc_status-desc':
                                $sort = 'osc.order_status_comments_status DESC';
                              break;
                            case 'osc_sort_order':
                                $sort = 'osc.order_status_comments_sort_order ASC';
                              break;
                            case 'osc_sort_order-desc':
                                $sort = 'osc.order_status_comments_sort_order DESC';
                              break;
                            default:
                                $sort = 'osc.order_status_comments_id DESC';
                                $scnd_prm = '';
                             break;
                        }
                      } else {
                        $sort = 'osc.order_status_comments_id ASC';
                        $scnd_prm = '';
                      }
                      //EOC sorting
                     
                      $order_status_comments_query_raw = "SELECT osc.order_status_comments_id,
                                                                 osc.order_status_comments_sort_order,
                                                                 osc.order_status_comments_status,
                                                                 osc.date_added,
                                                                 osc.last_modified,
                                                                 osct.order_status_comments_title,
                                                                 osct.order_status_comments_text
                                                     FROM "
    .TABLE_NR_ORDER_STATUS_COMMENTS." osc
                                                LEFT JOIN "
    .TABLE_NR_ORDER_STATUS_COMMENTS_TXT." osct
                                                       ON osct.order_status_comments_id = osc.order_status_comments_id
                                                      AND osct.language_id = '"
    .(int)$_SESSION['languages_id']."'
                                                 ORDER BY "
    .$sort.$scnd_prm;
                      $order_status_comments_split = new splitPageResults($page, $page_max_display_results, $order_status_comments_query_raw, $order_status_comments_query_numrows);
                      $order_status_comments_query = xtc_db_query($order_status_comments_query_raw);
                      while($order_status_comments = xtc_db_fetch_array($order_status_comments_query)) {
                        if (((!isset($_GET['oscID'])) || ($_GET['oscID'] == $order_status_comments['order_status_comments_id'])) && (!isset($oscInfo)) && (substr($action, 0, 3) != 'new')) {
                          $oscInfo = new objectInfo($order_status_comments);
                        }

                        if ((isset($oscInfo) && is_object($oscInfo)) && ($order_status_comments['order_status_comments_id'] == $oscInfo->order_status_comments_id)) {
                          echo '<tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'pointer\'" onclick="document.location.href=\''.xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, 'page='.(int)$page. '&oscID='.$order_status_comments['order_status_comments_id'].'&action=edit').'\'">'."\n";
                        } else {
                          echo '<tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'pointer\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, 'page='.(int)$page.'&oscID='.$order_status_comments['order_status_comments_id']).'\'">'."\n";
                        }
                      ?>
                      <td class="dataTableContent"><?php echo $order_status_comments['order_status_comments_id']; ?></td>
                      <td class="dataTableContent"><?php echo $order_status_comments['order_status_comments_title']; ?></td>
                      <td class="dataTableContent"><?php echo $order_status_comments['order_status_comments_sort_order']; ?></td>
                      <td class="dataTableContent">
                      <?php
                      if ($order_status_comments['order_status_comments_status'] == '1') {
                        echo xtc_image(DIR_WS_IMAGES.'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10).'<a href="' . xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, xtc_get_all_get_params(array('action', 'oscID')) . 'action=set_st_flag&flag=0&oscID=' . $order_status_comments['order_status_comments_id']).'">&nbsp;&nbsp;'.xtc_image(DIR_WS_IMAGES.'icon_status_red_light.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10).'</a>';
                      } else {
                        echo '<a href="'.xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, xtc_get_all_get_params(array('action', 'oscID')).'action=set_st_flag&flag=1&oscID='.$order_status_comments['order_status_comments_id']).'">'.xtc_image(DIR_WS_IMAGES.'icon_status_green_light.gif', IMAGE_ICON_STATUS_GREEN_LIGHT, 10, 10).'</a>&nbsp;&nbsp;'.xtc_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10);
        }
                      ?>
                      </td>
                      <td class="dataTableContent txta-r">
                        <?php
                        if ((isset($oscInfo) && is_object($oscInfo)) && ($order_status_comments['order_status_comments_id'] == $oscInfo->order_status_comments_id)) {
                            echo xtc_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ICON_ARROW_RIGHT);
                        } else {
                            echo '<a href="' . xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, 'page='.(int)$page.'&oscID=' . $order_status_comments['order_status_comments_id']).'">'.xtc_image(DIR_WS_IMAGES . 'icon_arrow_grey.gif', IMAGE_ICON_INFO).'</a>'; }
                      ?>
                      &nbsp;
                      </td>
                    </tr>
                    <?php
                      }
                    ?>              
                    </table>
                    <div class="smallText pdg2 flt-l"><?php echo $order_status_comments_split->display_count($order_status_comments_query_numrows, $page_max_display_results, (int)$page, NR_TEXT_DISPLAY_NUMBER_OF_ORDER_STATUS_COMMENTS); ?></div>
                    <div class="smallText pdg2 flt-r"><?php echo $order_status_comments_split->display_links($order_status_comments_query_numrows, $page_max_display_results, MAX_DISPLAY_PAGE_LINKS, (int)$page); ?></div>
                    <?php echo draw_input_per_page($PHP_SELF,$cfg_max_display_results_key, $page_max_display_results); ?>
                    <?php
                    //if ($_GET['action'] != 'new') {
                    ?>
                      <div class="smallText pdg2 flt-r"><?php echo xtc_button_link(BUTTON_INSERT, xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, 'page=' . (int)$page . '&action=new')); ?></div>
                    <?php
                    //}
                    ?>
                  </td>
                  <?php
                    $heading = array();
                    $contents = array();
                    switch ($action) {
                      case 'delete':
                        $heading[] = array('text' => '<b>' . NR_TEXT_INFO_HEADING_DELETE_ORDER_STATUS_COMMENT . '</b>');
                        $contents = array('form' => xtc_draw_form('order_status_comment', FILENAME_NR_ORDER_STATUS_COMMENTS, 'page=' . (int)$page . '&oscID=' . $oscInfo->order_status_comments_id . '&action=deleteconfirm'));
                        $contents[] = array('text' => NR_TEXT_INFO_DELETE_COMMENT_INTRO);
                        $contents[] = array('text' => '<br /><b>' . $oscInfo->order_status_comments_title . '</b>');
                        $contents[] = array('text' => '<br />' . xtc_draw_checkbox_field('delete_comment_text', 'on', true) . ' ' . NR_TEXT_DELETE_COMMENT);
                        $contents[] = array('align' => 'center', 'text' => '<br />' . xtc_button(BUTTON_DELETE) . '&nbsp;' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, 'page=' . (int)$page . '&oscID=' . $oscInfo->order_status_comments_id)));
                        break;

                      default:
                        if (is_object($oscInfo)) {
                          $heading[] = array('text' => '<b>' . $oscInfo->order_status_comments_title . '</b>');
                          $contents[] = array('align' => 'center', 'text' => xtc_button_link(BUTTON_EDIT, xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, 'page=' . (int)$page . '&oscID=' . $oscInfo->order_status_comments_id . '&action=edit')) . '&nbsp;' . xtc_button_link(BUTTON_DELETE, xtc_href_link(FILENAME_NR_ORDER_STATUS_COMMENTS, 'page=' . (int)$page . '&oscID=' . $oscInfo->order_status_comments_id . '&action=delete')));
                          $contents[] = array('text' => '<br />' . NR_TEXT_DATE_ADDED_ORDER_STATUS_COMMENT . ' ' . xtc_date_short($oscInfo->date_added));
                          if (xtc_not_null($oscInfo->last_modified)) {
                            $contents[] = array('text' => NR_TEXT_LAST_MODIFIED_ORDER_STATUS_COMMENT . ' ' . xtc_date_short($oscInfo->last_modified));
                          }
                        }
                        break;
                    }

                    if ( (xtc_not_null($heading)) && (xtc_not_null($contents)) ) {
                      echo '            <td class="boxRight">' . "\n";
                      $box = new box;
                      echo $box->infoBox($heading, $contents);
                      echo '            </td>' . "\n";
                    }
                  ?>
                </tr>
              </table>
            <?php } ?>
          </td>
          <!-- body_text_eof //-->
        </tr>
      </table>
      <!-- body_eof //-->
      <!-- footer //-->
      <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
      <!-- footer_eof //-->
      <br />
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

    Gruß,
    noRiddle

    Duncan

    • Fördermitglied
    • Beiträge: 177
    • Geschlecht:
    Hi noRiddle,

    nach unserem Update, teste ich jetzt einige Module, ob sie unter 2.0.6.x und eben php 8.x funktionieren.

    Wenn ich was finde, was nicht passt, melde ich es.
    Und wenn der oder die Urheber Lust und Zeit haben, schauen sie sich das Problem an und beheben es.
    Dann haben alle was davon....

    Was bei den Modulen noch fehlt, ist eine Kennzeichnung/ob ver.2.0.6.x und vor allem php8.x tauglich.
    Sonst muss jeder für sich immer wieder aufs neue testen .....

    Ach ... fast vergessen .... habe getestet .... funktioniert .... ohne Fehler bisher ....  :cheers:

    Gruß

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.707
    • Geschlecht:
    [...]
    Was bei den Modulen noch fehlt, ist eine Kennzeichnung/ob ver.2.0.6.x und vor allem php8.x tauglich.
    Sonst muss jeder für sich immer wieder aufs neue testen .....
    [...]

    Um alle möglichen PHP- und Shop-Versionen zu testen fehlt den Entwicklern - zumindest meiner Wenigkeit - die Zeit.
    Wenn die Community schon davon profitiert, daß hier Module kostenlos eingestellt werden, muß sie dafür auch etwas tun.
    Das heißt, Community-Mitglieder testen und geben Rückmeldung.
    Spenden erhöhen evtl. die Bereitschaft... :2cent:

    Anbei die aktualisierte Version.

    Gruß,
    noRiddle

    *NACHTRAG*
    Was die Shop-Version betrifft steht die Kompatibilität übrigens in meiner Anleitung.

    [EDIT Tomcraft 15.07.2021: Modul in Beitrag 1 aktualisiert.]

    Duncan

    • Fördermitglied
    • Beiträge: 177
    • Geschlecht:
    [...]
    *NACHTRAG*
    Was die Shop-Version betrifft steht die Kompatibilität übrigens in meiner Anleitung.

    Finde ich vorbildlich, :thumbs:
    so müssten es alle machen ....

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.707
    • Geschlecht:
    Anbei eine neue Version (1.4) mit der Korrektur eines Warnings bei Neuerstellung eines Kommentars.

    Gruß,
    noRiddle

    [EDIT Tomcraft 18.01.2022: Modul in Beitrag 1 aktualisiert.]

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.161
    • Geschlecht:
    Danke dir. :thumbs:

    Grüße

    Torsten

    Timm

    • Fördermitglied
    • Beiträge: 6.318
    Vielen Dank fürs Update.

    Gruss Timm

    Teichbau

    • Fördermitglied
    • Beiträge: 383
    • Geschlecht:
    Vielen Dank an noRiddle für das "mundgerechte" Modul.
    Für einen Laien gut beschrieben und dargestellt, sodass der Einabu beim 1.mal gelang.
    Aber was schreibe ich, es ist von noRiddle...
    Ich mag Deine Art und die Fachkompetenz - bleib so.

    Freundlichen Gruß
    Teichbau


    Heutiger Einbau in:
    modified eCommerce Shopsoftware v2.0.7.2 rev 14622 dated: 2022-07-04
    Datenbank Version: "MOD_2.0.7.2"
    PHP 8.1

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.707
    • Geschlecht:
    Oooh, vielen Dank, ich verneige mich.
    Sonst bin ich immer der Böse, der Leute hier im Forum anmacht...

    Gruß,
    noRiddle

    awids

    • Experte
    • Beiträge: 3.782
    • Geschlecht:
    [...]
    Sonst bin ich immer der Böse, der Leute hier im Forum anmacht...
    [...]

    Böse würde ich es finden, wenn es ungerechtfertigt wäre. Aber wenn man hier einige Personen so mitbekommt, insbesondere jene, die sich nur um ihren Kram scheren und ins Nirvana verschwinden, sobald ihr Problem gelöst wurde und dann nicht (teilweise trotz Aufforderung/Bitte) mal Tickets erstellen können oder ihre Lösung mit der Community teilen, wenn sie von selbst drauf gekommen sind, dann kann ich nur sagen: Die haben es auch nicht anders verdient! Meine besonderen Lieblinge sind vor allem solche, die Tipps, Anregungen und Modulempfehlungen schlichtweg ignorieren, weil sie ihnen nicht in den Kram passen oder man zu geizig ist, ein paar Euro zu investieren. Hauptsache, es gestaltet sich 1:1 so, wie man sich das vorstellt, am Besten gestern schon und das Ganze kostenlos.

    Aber lange Rede, kurzer Sinn: Das Lob gehört dir und du hast es dir verdient.  :thumbs: Aber jetzt keinen Höhenflug kriegen, wir brauchen dich hier am Boden.  :-D
    5 Antworten
    4382 Aufrufe
    03. Juli 2018, 12:13:01 von Tomcraft
    7 Antworten
    3496 Aufrufe
    19. Mai 2016, 19:15:43 von diefl
    0 Antworten
    2150 Aufrufe
    24. August 2012, 22:13:56 von RolandG
               
    anything