We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7708
    • 9 Posts
    Как то неожиданно словил ошибку:
    snippet calls wrong gallery id:1, order, or wrong limit.
    SELECT * FROM modx_easy2_files WHERE dir_id IN (1) AND width/height >=0.5 AND width/height<=1.5 AND status = 1 ORDER BY date_added ASC LIMIT 0, all
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'all' at line 1
    

    p.s. — вызов [!easy2?gid=`1` &slideshow=`simple`!]

    может префикс - хостера??
      • 18743
      • 2 Posts
      ошибка при выводе галереи в 1.4.0 RC-4

      Error: include() [function.include]: Filename cannot be empty
      Error type/ Nr.: Warning - 2
      File: ../assets/modules/easy2/snippet.easy2gallery.php
      Line: 56
      Line 56 source: include $e2g[’jsdisabled_tpl’];

      и почему предлагает tpl jsdisabled? java выключена имеется ввиду?
        • 11055 ☆ A M B ☆
        • 3,112 Posts
        you guys are coming from upgrading.
        Please, SAVE CONFIGS first.
          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.
          • 18743
          • 2 Posts
          понятно, в настройках надо нажать save config
            • 7571
            • 135 Posts
            Здравствуйте.
            Обновил до версии 1.4.0 RC-4
            1.Теперь каждый эскиз, который не имеет названия, автоматически называется по своему названию файла. Выглядит не очень красиво, как можно это убрать?
            2. Спасибо, что добавили пагинацию, но при создании своего класса, например &pagenum_class=`navi` и даже в конфигурации галереи в настройках шаблонов, если указать другой класс, а не e2gpnums, нечего не меняется.
            3. Почему то не работают JC: colorbox, fancybox, floatbox, фотографии открываются просто на новой странице.
            4. Ни в одном из этих JC не появляется описание фотографии, только ее "имя" и и "итого" ([+easy2:title+]-[+easy2:summary+])
              • 11055 ☆ A M B ☆
              • 3,112 Posts
              Please note, these are all for the default templates.
              You should change yours if you use a custom template.

              Quote from: Djeak at Nov 10, 2010, 10:07 AM

              Здравствуйте.
              Обновил до версии 1.4.0 RC-4
              1.Теперь каждый эскиз, который не имеет названия, автоматически называется по своему названию файла. Выглядит не очень красиво, как можно это убрать?
              Search the thumbnail_1.htm, change this as you wish
              <a href="[+easy2:link+]" title="[+easy2:filename+]-[+easy2:summary+]" [+easy2:glibact+]>
              


              Quote from: Djeak at Nov 10, 2010, 10:07 AM

              2. Спасибо, что добавили пагинацию, но при создании своего класса, например &pagenum_class=`navi` и даже в конфигурации галереи в настройках шаблонов, если указать другой класс, а не e2gpnums, нечего не меняется.
              It’s been said, it is deprecated.
              Change the class directly on the gallery_1.htm template.
              <div class="e2gpnums">[+easy2:pages+]</div>
              


              Quote from: Djeak at Nov 10, 2010, 10:07 AM

              3. Почему то не работают JC: colorbox, fancybox, floatbox, фотографии открываются просто на новой странице.
              Oh? how about log-off the Manager?

              Quote from: Djeak at Nov 10, 2010, 10:07 AM

              4. Ни в одном из этих JC не появляется описание фотографии, только ее "имя" и и "итого" ([+easy2:title+]-[+easy2:summary+])
              Total? then this is a directory_1.htm. change this:
                      <div class="dirname thumbinfo">
                          <a href="[+easy2:link+]">
                              <b>[+easy2:title+]</b><!-- ([+easy2:count+])-->
                          </a> 
                      </div>
              
                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.
                • 7571
                • 135 Posts
                Спасибо.
                1. В файле thumbnail_1.htm делаю так, чтобы выводилось описание под экскизом:

                 <div id="description_[+easy2:id+]" style="color: gray;">
                            [+easy2:description+]
                        </div>


                Но описание растягивает эскиз.
                Можно ли сделать так, если описание длиннее по ширине эскиза, то переносилось на другую строчку?
                  • 9085
                  • 630 Posts
                  Quote from: Djeak at Nov 12, 2010, 01:55 PM

                  Но описание растягивает эскиз.
                  Можно ли сделать так, если описание длиннее по ширине эскиза, то переносилось на другую строчку?
                  Эм.. а точно эскиз растягивается? rolleyes

                  Если известна ширина блока - используйте CSS (что-то вроде width:200px;).
                   <div id="description_[+easy2:id+]" style="color: gray;width:200px;">
                              [+easy2:description+]
                  </div>


                  ps. вообще, считается, что лучше в случае многократного повторения, определять css-правила через класс и выносить их в отдельный файл..
                    Правильно заданный вопрос повышает вероятность получения нужного ответа.
                    Что-то не работает? Загляните в лог ошибок!
                    Есть проблема? "Локализуйте" её!
                    Ответы на большинство вопросов по MODx | MODx RTFM | API Evo Revo | галопом по Европам Азиям smiley wikibooks(ru) Ditto(en) | Wayfinder e-book | Заметки и о MODx
                    • 11055 ☆ A M B ☆
                    • 3,112 Posts
                    well,
                    It was make for another way.
                    The identical id ("description_[+easy2:id+]") is a target for the library to render another caption.
                    You might need to change the onclick action and/or the HTML block header.
                    Examples:
                    Highslide
                    Floatbox

                    Please refer to its website for further API.
                      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.
                      • 7571
                      • 135 Posts
                      esche
                      Описание растягивает не фотку, а задний фон фотографии, наверное, правильнее было выразиться, что описание растягивает блок.