We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27930
    • 23 Posts
    Quote from: xupypr at Apr 05, 2010, 01:08 AM

    Господа, подскажите.

    Сделал галерею заказчику, ручками перенес кучу альбомов с его старого сайта, и тут он говорит, мол а давайте сделаем подкатегории (((( ... теперь вопрос, как сделать перенести альбомы в альбомы, т.е. создать категории и туда перенести альбомы?

    а кнопка синхронизировать поможет? если раскидать все по фтп по папкам?
      • 32960
      • 26 Posts
      Quote from: Sokos at Apr 05, 2010, 03:01 AM

      Quote from: xupypr at Apr 05, 2010, 01:08 AM

      Господа, подскажите.

      Сделал галерею заказчику, ручками перенес кучу альбомов с его старого сайта, и тут он говорит, мол а давайте сделаем подкатегории (((( ... теперь вопрос, как сделать перенести альбомы в альбомы, т.е. создать категории и туда перенести альбомы?

      а кнопка синхронизировать поможет? если раскидать все по фтп по папкам?
      Как я понял, синхронизация происходит с БД... при синхронизации скорее всего просто потрет папки, которых нет в базе.


      Попробывал просто все на локальном компе распределить как надо, затем загнал в архив и залил в корень. Ошибок не выдало, написалось количество залитых файлов, НО в писке не появились не папки ни файлы (((
        • 29487
        • 385 Posts
        @xupypr
        Вообще синхронизация идёт с файлами, а не с базой, то есть новые файлы и папки добавятся в базу, а отсутствующие - сотрутся.
        По крайней мере в 1.3.5. Протестировать 1.4 у меня пока времени не хватает.
          • 32960
          • 26 Posts
          Подскажите еще вот какую вещь.

          Все синхронизировано, все файлы присутствуют, но при просмотре выдает ошибку

          Error: mysql_num_rows(): supplied argument is not a valid MySQL result resource
          Error type/ Nr.: Warning - 2
          File: /home/b/ ... /assets/modules/easy2/classes/e2g.snippet.class.php
          Line: 251
          Line 251 source: $file_num_rows = mysql_num_rows($file_query_result);

          Кажется понял в чем ошибка.
          Возникает тогда, когда структура такая
          folder
          -folder
          ----folder
          --------file
          --------file
          --------file
          --------file
          ----folder
          --------file
          --------file
          --------file
          -folder
          ----folder
          --------file
          --------file
          ----folder
          ----folder
          ----folder
          -folder
          ----folder

          тогда, если обратиться к папке внутри которой нет фото, а также папки, выдает ошибку.

          error... if inside folder -> folders (not files)


          e2g v 1.4.0
            • 11055 ☆ A M B ☆
            • 3,112 Posts
            uhm...
            you can add @ in front of mysql_num_rows and mysql_fetch_array as well.

            i’ll fix the code.
            thx for reporting.
              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.
              • 32960
              • 26 Posts
              Quote from: goldsky at Apr 07, 2010, 02:36 AM

              uhm...
              you can add @ in front of mysql_num_rows and mysql_fetch_array as well.

              i’ll fix the code.
              thx for reporting.
              if I add @, then gallery not show (((
              It is possible to make documents with a call snippet for any gallery... but it’s not cool (

              ------------------------
              new trubble )))

              When open photo and right click -> "Save image as..." saved "show.easy2gallery.php"

              Browser FireFox 3.5... in Google Chrome normal.
              in Safaryi -> "show.easy2gallery.php.jpg"
              in F##kng IE -> "untitled.bmp"
                • 11055 ☆ A M B ☆
                • 3,112 Posts
                hang on...
                i’m sure that i’ve set if there is no file inside a folder, then the folder will NOT be shown in the gallery by the snippet.

                anyway, there is a little more bugfix on pagination calculation.
                please use this file below.

                Quote from: xupypr at Apr 07, 2010, 03:13 AM

                When open photo and right click -> "Save image as..." saved "show.easy2gallery.php"

                Browser FireFox 3.5... in Google Chrome normal.
                in Safari -> "show.easy2gallery.php.jpg"
                in F##kng IE -> "untitled.bmp"
                which IE?
                  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.
                  • 32960
                  • 26 Posts
                  which IE?
                  IE6 ))))
                    • 11055 ☆ A M B ☆
                    • 3,112 Posts
                    Quote from: xupypr at Apr 07, 2010, 04:51 AM

                    which IE?
                    IE6 ))))

                    OUCH!!!
                    Dude, I’m not supporting IE6.
                    Sorry for disappointing you sad.
                      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.
                      • 32960
                      • 26 Posts
                      Quote from: goldsky at Apr 07, 2010, 05:48 AM

                      Quote from: xupypr at Apr 07, 2010, 04:51 AM

                      which IE?
                      IE6 ))))

                      OUCH!!!
                      Dude, I’m not supporting IE6.
                      Sorry for disappointing you sad.
                      ))))) I know )) and hate IE6 too...