We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31413
    • 52 Posts
    Quote from: goldsky at May 17, 2010, 03:20 PM

    They are only generated if galleriffic.php runs (not when Easy2 snippet runs), so make sure you change all of that variable inside this file (only).
    Если речь идет о замене $_ssfile[’resizedimg’][$i] на $_ssfile[’src’][$i] то я везде заменил. Но эти переменные стоят в том куске что отвечает за отображение картинок. Да и вообще в файле galleriffic.php я как то не нашел фрагмента отвечающего за генерацию новых картинок. Вероятно он все же в другом месте.

    Quote from: goldsky at May 17, 2010, 03:20 PM

    Funny thing is if you refresh again the browser, then it’ll run well.
    I’ll check again, and report back later, perhaps I only need to re-arrange the CSS/JS placement.
    Ок, жду с нетерпением.
      • 32163
      • 33 Posts

      Quote from: WebraumZ at May 16, 2010, 02:40 PM

      P.S. And the next trouble... I tried to order images by name in the gallery using both ASCENDING and DESCENDING values but... but snippet outputs images only in in descending order. I’m disapointed
      try to use &orderby=`filename` &order=`ASC`
      http://wiki.modxcms.com/index.php/Easy2gallery#Display_parameters
      EDIT:
      Again, this works at my side, what is your server configuration?

      Very strange. My server configuration: CentOS 5.2, Apache 2.0, php 5.1.6, MySQL 5.0.45, MODx Evolution 1.0.3
      I tested this version (1.4.0) on server and on local computer (Windows XP SP2, Apache 2.0, php 5.2.6) - problems are still the same. The thing is that version 1.3.5 works fine with ordering by name, both in ascending and descending order, but 1.4.0 didn’t. Is there any way to fix the problem?
      P.S. I tried to order files by "filename" as you suggested and it works. But possibility to order by name is important for project.
        • 11055 ☆ A M B ☆
        • 3,112 Posts
        Quote from: Veosys at May 18, 2010, 02:59 AM

        Если речь идет о замене $_ssfile[’resizedimg’][$i] на $_ssfile[’src’][$i] то я везде заменил. Но эти переменные стоят в том куске что отвечает за отображение картинок. Да и вообще в файле galleriffic.php я как то не нашел фрагмента отвечающего за генерацию новых картинок. Вероятно он все же в другом месте.
        Do you use another snippet call on the same page?
        What is your snippet call?

        Quote from: Veosys at May 18, 2010, 02:59 AM

        Ок, жду с нетерпением.
        Bad news is I can’t resolve it. It’s the contentflow’s bug.
        You can visit its website: http://www.jacksasylum.eu/ContentFlow/index.php and you’ll get the same result.
        You have to clear up your FF / Chrome first (by [Ctrl][Shift][Delete] ).
        But then it’ll go as the expected at the second visit.
          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.
          • 11055 ☆ A M B ☆
          • 3,112 Posts
          Quote from: WebraumZ at May 18, 2010, 06:32 AM

          P.S. I tried to order files by "filename" as you suggested and it works. But possibility to order by name is important for project.
          Ahh... right... ’name’.
          I forgot to make that one, as it was from the beginning.
          Looks like I changed something!
          I’ll make the update.
          Thx.

          No, I did not.
          What character are you using?

          1.4.0 RC1 is almost ready.
            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.
            • 31413
            • 52 Posts
            Quote from: goldsky at May 18, 2010, 10:43 AM

            Do you use another snippet call on the same page?
            What is your snippet call?
            Нет, вызов на странице один:
            [!easy2?gid=5 &slideshow=`galleriffic` &ss_config=`example-2` &w=`70` &h=`70` &ss_w=`500` &ss_h=`500` &ss_limit=`100` &ss_bg=`#F5F3E9`!]

            Quote from: goldsky at May 18, 2010, 10:43 AM

            Bad news is I can’t resolve it. It’s the contentflow’s bug.
            You can visit its website: http://www.jacksasylum.eu/ContentFlow/index.php and you’ll get the same result.
            You have to clear up your FF / Chrome first (by [Ctrl][Shift][Delete] ).
            But then it’ll go as the expected at the second visit.
            Действительно... Заходишь первый раз - нормально. Делаешь рефреш полный - и уже ненормально...
              • 11055 ☆ A M B ☆
              • 3,112 Posts
              Quote from: Veosys at May 19, 2010, 02:42 AM

              Нет, вызов на странице один:
              [!easy2?gid=5 &slideshow=`galleriffic` &ss_config=`example-2` &w=`70` &h=`70` &ss_w=`500` &ss_h=`500` &ss_limit=`100` &ss_bg=`#F5F3E9`!]

              Open css/galleriffic-2.css, change everything that related to the height.
              Remember to calculate the border width.
                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.
                • 31413
                • 52 Posts
                Quote from: goldsky at May 19, 2010, 03:44 AM

                Open css/galleriffic-2.css, change everything that related to the height.
                Remember to calculate the border width.

                Так проблема то не в том что картинки отображаются плохо. Я задал такие настройки при загрузке и такие стили что отображается все как надо. Но при этом в папке _thumbnails генерируются совершенно ненужные файлы вида b_01_500x500.jpg которые никак не используются а только место занимают. Как сделать так чтобы они не создавались?
                  • 11055 ☆ A M B ☆
                  • 3,112 Posts
                  Quote from: Veosys at May 20, 2010, 02:23 AM

                  Так проблема то не в том что картинки отображаются плохо. Я задал такие настройки при загрузке и такие стили что отображается все как надо. Но при этом в папке _thumbnails генерируются совершенно ненужные файлы вида b_01_500x500.jpg которые никак не используются а только место занимают. Как сделать так чтобы они не создавались?
                  I was wrong.
                  The ’resizedimg’ was made each time the snippet called &slideshow.
                  For your case, you can comment e2g.snippet.class.php code at line 899
                  <?php //highlighting
                  // $_ssfile['resizedimg'][] .= $this->_get_thumb($cl_cfg, $gdir, $path.$fetch['filename'], $ss_w, $ss_h, $thq);
                  


                  And change also the code at the line 911 below from:
                  <?php //highlighting
                  $count = count($_ssfile['resizedimg']);
                  

                  become
                  <?php //highlighting
                  $count = count($_ssfile['src']);
                  


                  But remember, after this change you will get problem if you try to use other slideshows.
                  This is ONLY for the case like yours.
                    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.
                    • 31413
                    • 52 Posts
                    Quote from: goldsky at May 20, 2010, 03:04 AM

                    I was wrong.
                    The ’resizedimg’ was made each time the snippet called &slideshow.
                    For your case, you can comment e2g.snippet.class.php code at line 899...
                    Закоментировал. Сработало. Однако есть на мой взгляд вот еще существенный недостаток - когда через админку удаляешь картинки - то удаляются только основные картинки. То есть то что нагенерировал скрипт при вызове снипета остается в папке _thumbnails. Удалить это можно только вручную по ftp. А если ты несколько раз экспериментировал с размерами то накапливается там прилично. Может быть можно как то сделать так чтобы при удалении из админки картинки удалялось сразу и все что из нее нагенерировано сниппетом?

                    Quote from: goldsky at May 20, 2010, 03:04 AM

                    But remember, after this change you will get problem if you try to use other slideshows.
                    This is ONLY for the case like yours.
                    Я все прекрасно понимаю. Но в данном случае размер картинок подобран под мои нужды и в дальнейшем меняться не планируется. Все галереи будут одинаковые. Так что меня устраивает.
                      • 19212
                      • 32 Posts
                      I can’t install e2g. I read installing help file and after I delete "install" folder I see in module PHP error (notice) with link to index.php file. (( what’s wrong? sorry for bad english.