We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11055 ☆ A M B ☆
    • 3,112 Posts
    Quote from: 039kir at Apr 26, 2011, 06:17 AM

    goldsky, You can help to understand how to make slideshows for Easy2Gallery here I described the details:
    http://community.modx-cms.ru/blog/questions/1748.html
    thanks
    So, what’s the problem? Do you have a screenshot?
      Rico
      Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
      MODx is great, but knowing how to use it well makes it perfect!

      www.virtudraft.com

      Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

      Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

      Maintainter/contributor of Babel

      Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
      • 26
      • 17 Posts
      taking as a basis for file galleriffic.php
      php brings knowledge, this is what happened:

      <?php

      $ssParams = $this->_getSlideShowParams();
      $ssFiles = $this->_getSlideShowFiles();

      //echo __LINE__ . ’ : $slideshow = ’ . $slideshow . ’
      ’;
      //echo __LINE__ . ’ : $ssParams = ’ . $ssParams . ’
      ’;
      //echo ’<pre>’;
      //print_r($ssParams);
      //echo ’</pre>’;
      //echo __LINE__ . ’ : $ssFiles = ’ . $ssFiles . ’
      ’;
      //echo ’<pre>’;
      //print_r($ssFiles);
      //echo ’</pre>’;
      //die();

      // just to avoid direct call to this file. it’s recommended to always use this.
      if (!defined(E2G_SNIPPET_URL) && $slideshow != ’product’) {
      return FALSE;
      }
      // result with no images
      elseif ($ssFiles[’count’] == 0) {
      $output = ’Изображений товара не найденно’ . $ssParams[’gid’];
      // this slideshow heavily dependent on any image existence.
      return FALSE;
      } else {
      // just making a default selection
      if (!isset($ssParams[’ss_config’]))
      $ssParams[’ss_config’] = ’example’;

      //** *********************************************** */
      /* PREPARE THE HTML HEADERS */
      //** *********************************************** */
      if ($ssParams[’ss_config’] == ’example’) {
      if (!empty($ssFiles[’ss_css’])) {
      $modx->regClientCSS($ssFiles[’ss_css’], ’screen’);
      } else {
      $modx->regClientCSS(MODX_BASE_URL . ’assets/libs/slideshows/product/css/global.css’, ’screen’);
      }
      }

      // Javascript
      if ($ssParams[’ss_config’] == ’example’) {
      $modx->regClientStartupScript(MODX_BASE_URL . ’assets/libs/slideshows/product/js/jquery-1.4.4.min.js’);
      $modx->regClientStartupScript(MODX_BASE_URL . ’assets/libs/slideshows/product/js/slides.min.jquery.js’);
      }

      $modx->regClientStartupHTMLBlock(’
      <script type="text/javascript">jQuery.noConflict();</script>’);
      // header
      $modx->regClientStartupHTMLBlock(’
      <!-- We only want the thunbnails to display when javascript is disabled -->
      <script type="text/javascript">document.write(\’<style>.noscript { display: none; }</style>\’);</script>’);

      if ($ssParams[’ss_config’] == ’example’) {
      if (!empty($ssParams[’ss_js’])) {
      $modx->regClientStartupScript($ssParams[’ss_js’]);
      } else {
      $modx->regClientStartupScript(MODX_BASE_URL . ’assets/libs/slideshows/product/js/product.js’);
      }
      }

      //** *********************************************** */
      //** *********************************************** */
      //** * ** */
      //** * THE SLIDESHOW DISPLAY ** */
      //** * ** */
      //** *********************************************** */
      //** *********************************************** */

      if ($ssParams[’ss_config’] != ’example’) {
      // start the galleriffic part.
      $output = ’<div id="products_example">
      <div id="products">
      <div class="slides_container"></div>
      <ul class="pagination">’;
      }
      if ($ssParams[’ss_config’] == ’example’) {
      $output .= ’
      <li>
      <a class="thumb" name="’ . $ssFiles[’title’][$i] . ’" href="’ . $ssFiles[’resizedimg’][$i] . ’">
      <img src="’ . $ssFiles[’thumbsrc’][$i] . ’" />
      </a>
      </li>’;
      }
      if ($ssParams[’ss_config’] != ’example’) {
      $output .= ’
      </ul>
      </div>’;
      }
      echo $output;
      }


      It is the problem

      Here is the link to the gallery http://efimov.ws/assets/files/develop/2011/01/slidesjs/product/index.html
        • 21991
        • 5 Posts
        Установил галерею Easy2 1.4.2 на modx 1.0.2
        все работает нормально, но такая засада, фотки грузятся, а все эскизы становятся эскизом самой первой загруженной фотки. Как со стороны админки, так и со сторны клиента. Причем на нажатие этого эскиза появляется та фотка, которая нужна.
        Папке _thumbnails ставлю права 0777, после залива новой фотки права папки становятся 0755.
        Permission Options отключена.
          • 11055 ☆ A M B ☆
          • 3,112 Posts
          @039kir,
          Like this?

          @oboltus_3,
          Why 0777 ?
          Try synchronize again to re-check the files’ width & height.
            Rico
            Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
            MODx is great, but knowing how to use it well makes it perfect!

            www.virtudraft.com

            Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

            Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

            Maintainter/contributor of Babel

            Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
            • 27015
            • 5 Posts
            Здравствуйте. Может кто знает как сделать чтоб пользователь сам мог менять количество выводимых картинок на странице. Или хоть в теории объясните как такое можно написать. Спасибо.
              • 26
              • 17 Posts
              goldsky

              That’s what I wanted:)) Excellent!

              ---------
              give the source? rolleyes
                • 26
                • 17 Posts
                Quote from: shev at Apr 29, 2011, 10:47 AM

                Здравствуйте. Может кто знает как сделать чтоб пользователь сам мог менять количество выводимых картинок на странице. Или хоть в теории объясните как такое можно написать. Спасибо.

                могу предположить что: с помощью параметра &limit=`5` а вместо 5 сделать TV параметр и прикрепить его к нужным шаблонам. Пользователю останется только в поле TV ввести нужное кол-во картинок

                имхо
                  • 11055 ☆ A M B ☆
                  • 3,112 Posts
                  @039kir,

                  • First, you should update to easy 2 gallery 1.4.4-pl
                  • Extract the archive on assets\libs\slideshows\slidejs

                  • Then add this slideshow to the slideshow list: Menu> Slideshows> Add tab:

                    Name: slidejs
                    Description: Slides, A Slideshow Plugin for jQuery
                    Index file: assets/libs/slideshows/slidejs/slidejs.php

                  The snippet call:
                  [!easy2? &gid=`8` &slideshow=`slidejs` &ss_w=`366` &ss_h=`274` &w=`55` &h=`41`!]
                  

                  If you change the thumbnail sizes, don’t forget to change the CSS code which is related to those numbers.

                  Since this is a custom slideshow code, please consider to donate tongue
                    Rico
                    Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                    MODx is great, but knowing how to use it well makes it perfect!

                    www.virtudraft.com

                    Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                    Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                    Maintainter/contributor of Babel

                    Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                    • 26
                    • 17 Posts
                    Thank you goldsky

                    Quote from: goldsky at May 01, 2011, 02:43 AM

                    Since this is a custom slideshow code, please consider to donate tongue
                    Yes of course
                      • 7571
                      • 135 Posts
                      Quote from: goldsky at Apr 24, 2011, 11:13 PM

                      Quote from: Djeak at Apr 21, 2011, 10:58 AM

                      Обновлял все по инструкции: http://modx.com/extras/package/easy2gallery
                      Внизу инструкции написано: "Edit your Viewers and change the javascript folder directives, eg: assets/libs/highslide => assets/libs/viewers/highslide"
                      Have you replaced the old libs/ folder with the new one?
                      Да, заменял и в настройках Viewers тоже менял пути.
                      При обновлении нужно ли сохранять файл: default.config.easy2gallery.php от старой версии и потом копировать его в новую?
                      И можно же файлы из папки "templates/default" тоже скопировать из старой версии в новой, потому что там у меня определенные настройки для вывода галереи.