We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6848
    • 52 Posts
    Here is modified snippet, which paginates folders (galleries), not only photos.
    I is not perfect, because if you have folders (galleries) and photos on one page it will use the limit parameter to display number of folders on one page and number of photos as well.
    You can see the behavior of this snippet at http://test.bspsf.bg/photogallery.html

    @temus

    If you think this is good feature you can include this in the package
      • 24803
      • 61 Posts
      И вообще идеально было бы сделать чтобы справа был выбор галерей, а слева показщывались бы фотки, текущей выбранной галереи...
      Такое реально? подскажите пожалуйста, очень надо ((

      зы скрипт так и не заработал на галереи номер 3
        • 24803
        • 61 Posts
        В общим скрипт заработал - открыл фотки пайнтом и пересохранил и загрузил через зип архив... видимо не мог обработать фотографию....

        Но одна проблема осталась... как мне вывести текстом список категорий?если в параметрах гид указать 1 то он выведет их, но мне надо тупо текст...и желательно чтобы тот каталог в котором нахожусь как нить по другому выделялся? такое реализуемо малыми силами?
          • 11055 ☆ A M B ☆
          • 3,112 Posts
          Quote from: ddim at Mar 03, 2010, 04:18 AM

          Here is modified snippet, which paginates folders (galleries), not only photos.
          I is not perfect, because if you have folders (galleries) and photos on one page it will use the limit parameter to display number of folders on one page and number of photos as well.
          You can see the behavior of this snippet at http://test.bspsf.bg/photogallery.html

          @temus

          If you think this is good feature you can include this in the package


          @ddim
          1. I’m updating it to do EXACTLY what you’ve done.
          I’ve make change ( still @ my localhost ) to the next bugfix:
          + Joined Thumb grid between Dirs and Files
          + Joined pagination between them both.

          This bug fixing gave me a headache because the script split the process of data filling, but it also includes grid creation. Handling DIV was easy, but I’ve spent my last days to deal with table.tr.td .
          It’s almost done, but still have 1 odd result for directories < 1 table row.

          EDIT: it’s done. I’ll include this in the next bugfix.

          2. I’ve tried your suggestion about SQL optimizing. But then I realized it has nothing to do with the speed, because the slow process came out from thumb creation.
          I’m thinking to give PHPThumb a shot. But i’ll do it after I finish the 1st issue above.

          Cheers.
            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.
            • 24803
            • 61 Posts
            да, вот еще:
            добавляю либо в контент, либо в шаблон: [+easy2:cat_name+] - название текущей директории (ну или любой другой типа ссылкина родительскую дирректорию)

            и он это не отображает....
            Где я не прав?
              • 6848
              • 52 Posts
              @goldsky
              Quote from: goldsky at Mar 03, 2010, 10:27 PM


              1. I’m updating it to do EXACTLY what you’ve done.....

              2. I’ve tried your suggestion about SQL optimizing. But then I realized it has nothing to do with the speed, because the slow process came out from thumb creation.
              I’m thinking to give PHPThumb a shot. But i’ll do it after I finish the 1st issue above.


              1. Perfect. As you can see from my modifications I didn’t touch the tables creation and I didn’t implement more precise counting when there are folders and images, because it would need much more work.
              But what you describe is the way to be done.

              2. Strange, In my case the thumbs creation is fast, the selection is slow. I think the difference in my case is, that the number of images per folder is low (10-15),
              but the number of folder is high - >100

              I tried with PHPThumb and my subjective impression is that the results are the same.

              In general, I think this is The Gallery for modx.
              My respect to other implementations, but they are not comparable to the work you guys have done.

              Regards,
                • 20862
                • 33 Posts
                При установки дает такую ошибку:

                Не удалось обновить код модуля
                Incorrect string value: ’\xD3\xF1\xF2\xE0\xED\xEE...’ for column ’modulecode’ at row 2

                как исправить?
                  • 29487
                  • 385 Posts
                  @Nadin
                  Ставьте последнюю версию модуля, она есть здесь в репозитарии, или по ссылке ниже:
                    • 11055 ☆ A M B ☆
                    • 3,112 Posts
                    Quote from: ddim at Mar 04, 2010, 03:49 AM

                    I tried with PHPThumb and my subjective impression is that the results are the same.
                    Are we talking about the same phpthumb?
                      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.
                      • 20862
                      • 33 Posts
                      а теперь при загрузке фотки дает вот такую ошибку

                      Fatal error: Call to undefined function imagecreatefromjpeg() in F:\site\mysite\manager\processors\execute_module.processor.php(114) : eval()’d code on line 1469 undecided