Ankündigung

Einklappen
Keine Ankündigung bisher.

Image Handler

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #31
    Hallo amatoris,
    hallo webchills,

    Amatoris, ich freu mich auf Deine Antwort nach Deinem Test!
    Webchils, nur den Passwortschutz vom Shop oder auch vom Adminbereich?

    Gruß Thomas

    Kommentar


      #32
      Nur vom Shop, damit man mal sieht was da los ist.

      Kommentar


        #33
        Hallo webchills,

        so habe die Seite jetzt offen!
        www.wood-style.de

        Wir hören

        Liebe Grüße Petra

        Kommentar


          #34
          Bitte lade folgende Datei vom Server:
          includes/modules/viennablood/additional_images.php
          Öffne die Datei mit einem Texteditor und poste den Inhalt hier als Code.

          Kommentar


            #35
            Hallo webchills,

            bei mir heisst lautet der Pfad nicht,
            includes/modules/viennablood/additional_images.php
            sondern
            includes/modules/YOUR_TEMPLATE/additional_images.php

            liegt da vieleicht schon der Fehler?

            Ansonsten hier die Datei:
            Code:
            <?php
            /**
             * additional_images module
             *
             * Prepares list of additional product images to be displayed in template
             *
             * @package templateSystem
             * @copyright Copyright 2003-2010 Zen Cart Development Team
             * @copyright Portions Copyright 2003 osCommerce
             * @license [URL]http://www.zen-cart.com/license/2_0.txt[/URL] GNU Public License V2.0
             * @version $Id: additional_images.php 16913 2010-07-16 03:38:06Z ajeh $
             */
            if (!defined('IS_ADMIN_FLAG')) {
              die('Illegal Access');
            }
            if (!defined('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE')) define('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE','Yes');
            $images_array = array();
            // do not check for additional images when turned off
            if ($products_image != '' && $flag_show_product_info_additional_images != 0) {
              // prepare image name
              $products_image_extension = substr($products_image, strrpos($products_image, '.'));
              $products_image_base = str_replace($products_image_extension, '', $products_image);
              // if in a subdirectory
              if (strrpos($products_image, '/')) {
                $products_image_match = substr($products_image, strrpos($products_image, '/')+1);
                //echo 'TEST 1: I match ' . $products_image_match . ' - ' . $file . ' -  base ' . $products_image_base . '<br>';
                $products_image_match = str_replace($products_image_extension, '', $products_image_match) . '_';
                $products_image_base = $products_image_match;
              }
              $products_image_directory = str_replace($products_image, '', substr($products_image, strrpos($products_image, '/')));
              if ($products_image_directory != '') {
                $products_image_directory = DIR_WS_IMAGES . str_replace($products_image_directory, '', $products_image) . "/";
              } else {
                $products_image_directory = DIR_WS_IMAGES;
              }
              // Check for additional matching images
              $file_extension = $products_image_extension;
              $products_image_match_array = array();
              if ($dir = @dir($products_image_directory)) {
                while ($file = $dir->read()) {
                  if (!is_dir($products_image_directory . $file)) {
                    if (substr($file, strrpos($file, '.')) == $file_extension) {
                      if(preg_match("/" . $products_image_base . "/i", $file) == '1') {
                        if ($file != $products_image) {
                          if ($products_image_base . str_replace($products_image_base, '', $file) == $file) {
                            //echo 'I AM A MATCH ' . $file . '<br />';
                            $images_array[] = $file;
                          } else {
                            //  echo 'I AM NOT A MATCH ' . $file . '<br />';
                          }
                        }
                      }
                    }
                  }
                }
                if (sizeof($images_array)) {
                  sort($images_array);
                }
                $dir->close();
              }
            }
            // Build output based on images found
            $num_images = sizeof($images_array);
            $list_box_contents = '';
            $title = '';
            if ($num_images) {
              $row = 0;
              $col = 0;
              if ($num_images < IMAGES_AUTO_ADDED || IMAGES_AUTO_ADDED == 0 ) {
                $col_width = floor(100/$num_images);
              } else {
                $col_width = floor(100/IMAGES_AUTO_ADDED);
              }
              for ($i=0, $n=$num_images; $i<$n; $i++) {
                $file = $images_array[$i];
                $products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
            //  Begin Image Handler changes 1 of 2
            //  $flag_has_large = file_exists($products_image_large);
                $flag_has_large = true;//file_exists($products_image_large);
            //  End Image Handler changes 1 of 2
                $products_image_large = ($flag_has_large ? $products_image_large : $products_image_directory . $file);
                $flag_display_large = (IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE == 'Yes' || $flag_has_large);
                $base_image = $products_image_directory . $file;
                $thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
            //  Begin Image Handler changes 2 of 2 remove additional single quotes from image attributes (important!)
                $thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
            //  End Image Handler changes 2 of 2
                $thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
                $large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
                // Link Preparation:
                $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
                $noscript_link = '<noscript>' . ($flag_display_large ? '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large) . '" target="_blank">' . $thumb_regular . '<br /><span class="imgLinkAdditional">' . TEXT_CLICK_TO_ENLARGE . '</span></a>' : $thumb_regular ) . '</noscript>';
                //      $alternate_link = '<a href="' . $products_image_large . '" onclick="javascript:popupWindow(\''. $large_link . '\') return false;" title="' . $products_name . '" target="_blank">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';
                $link = $script_link . "\n      " . $noscript_link;
                //      $link = $alternate_link;
                // List Box array generation:
                $list_box_contents[$row][$col] = array('params' => 'class="additionalImages centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
                'text' => "\n      " . $link);
                $col ++;
                if ($col > (IMAGES_AUTO_ADDED -1)) {
                  $col = 0;
                  $row ++;
                }
              } // end for loop
            } // endif
            Zuletzt geändert von webchills; 06.02.2011, 14:25.

            Kommentar


              #36
              Wenn Du Deinen Zen-Cart Shop mit einem Modul erweitern willst, dann gibt es 2 einfache Regeln, ohne die es aber nicht geht:

              1) Das Modul muss zu Deiner Zen-Cart Version passen
              2) Es ist nötig, die beiliegende Installationsanleitung zu lesen.

              Bei Dir wurde die englische Image Handler Version installiert.
              Die wurde einfach hochgeladen, ohne vorher die nötigen Umbenennungen der Ordner gemäß Installationsanleitung vorzunehmen.

              So kanns halt nicht funktionieren.

              Die passende Version für eine deutsche Zen-Cart 1.3.9 Version ist:
              Image Handler 2.3
              Imfos dazu hier:


              Eine ausführliche Installationsanleitung ist dabei und auch online hier:
              kostenloses Open Source Onlineshop System - übersetzt, angepasst und erweitert zur Verwendung im deutschsprachigen Raum


              Wenn Du den Image Handler nutzen willst, dann entferne komplett das, was da bisher installiert wurde. Und dann installiere die korrekte Version anhand der Installationsanleitung.

              Kommentar


                #37
                Hallo webchills,

                hast Du hier schon irgendetwas verändert?

                Kommentar


                  #38
                  Hallo webchills,

                  ok!!!!!
                  Lass mich mal nachdenken!
                  Ich hab die Version von meinem Provider hochladen lassen!
                  IH Kann ich doch bestimmt über den FZ löschen und hochladen?!
                  Welche Datei lösche ich jetzt? Vieleicht die "additional_images.php"?
                  Oder wo finde ich sie?

                  Kommentar

                  Info zu diesem Forenarchiv:
                  Mit Release von 1.5.7 wurde die deutsche Zen Cart Version auf eine reine DIY-Lösung umgestellt.
                  Für einen Support via Forum stehen keine personellen und zeitlichen Ressourcen mehr zur Verfügung.
                  Dieses Supportforum bleibt im Nur-Lesen-Modus als Wissensarchiv noch online verfügbar.
                  PM Funktionalität, Registrierung und Posten neuer Beiträge sind deaktiviert.
                  Zugriff auf Anhänge in den Postings ist auch ohne Registrierung/Einloggen möglich.
                  FAQ und Downloadbereich des Forums wurden in die neue umfangreiche Knowledgebase auf der zen-cart-pro.at Website übernommen.

                  Das Development der deutschen Zen Cart Version geht wie bisher auf Github weiter.
                  Wir werden auch weiterhin neue Versionen bereitstellen und die Onlinedokumentation/Knowledgebase aktualisieren.
                  Fehler in der Software können auf Github als Issues gemeldet werden.
                  Follow us
                  aktuelle version
                  Zen Cart 1.5.7g deutsch
                  vom 12.12.2023
                  [Download]
                  Lädt...
                  X