We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9757
    • 82 Posts
    I’ve already reported this issue on google code, but I’ll post it here too.

    Why did you remove "title" field for folders? It’s an important thing because sometimes you want to give a name for folder/album with characters that are invalid for the file system.

    Another bug is with utf-8 names. Yes, it will work for "Österreich" and "This is Iñtërnâtiônàlizætiøn" but it won’t for "Zażółć gęślą jaźń" (it’s a meaningless sentence with all Polish non-standard characters). In this case there is an annoying error:


    I think that the best solution for this problem will be a configuration option for transliteration just like in TransAlias plugin. You could then choose what you want - to save files with utf-8 character or to transliterate them.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Is this the latest available version?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 6848
        • 52 Posts
        Hi,
        I didn’t find time yet to test beta4, but I did some change in the thumbnail creation in beta3 snippet which might be useful
        It uses PhpThumb library for image manipulation.
        There were actually 2 reasons to do this

        1. To try with PhpThumb
        2. To have adaptiveResize. It seems 2 of the 3 options you have try to behave as adaptiveResize, but I didn’t have big success with them.
        What is actually adaptiveResize in PhpThumb
        - crop the original from center to the proportions of the target
        - resize the result to the size of the target

        What I implemented is following:

                    // Crop from center
                    if ($resize_type == 'inner') {
                        $thumb->cropFromCenter($w, $h);
                    }
                    // Resize to fit in both directions
                    elseif ($resize_type == 'shrink') {
                        $thumb->resize($w, $h);
                    }
                    // Adaptive resize - Crop to proportions and resize to fit
                    else {
                        $thumb->adaptiveResize($w, $h);
                    }
        
        


        The resizing algorithms probably don’t fit to the names in the combo, but I’m too lazy to change the names laugh
        I’m too lazy to implement one more resizing which would be $thumb->resizePercent(50); and which would fit better to the name ’shrink’, but I don’t like this kind of thumbnail where the picture doesn’t fill the thumbnail.

        Anyway, it has good performance and I think it is useful, so find it attached.

        Regards,

        PS - forgot to put link to PhpThumb:
        http://phpthumb.gxdlabs.com/
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          In the module’s Config tab, the Thumbnail Settings tab, the Display Settings section, what is the "Columns" field supposed to do?

          I had presumed it would set how many columns of thumbnails; for example a setting of 3 with a Pictures per Page setting of 9 would produce a 3 by 3 block of thumbnails.

          This is not the case, however. The Columns setting doesn’t appear to be having any effect at all.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 10257
            • 55 Posts
            Column setting effects are visible when you use table instead of div - or when you do you css right für div wink
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              when you do you css right für div
              Can you please clarify this? How does the css need to be done? At this point, I just have it installed with no changes.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 11055 ☆ A M B ☆
                • 3,112 Posts
                The original Easy 2 Gallery uses css name inside the core code.
                They are these classes:

                • e2g - Grid’s class
                • e2g_currentCrumb
                • e2gback
                • e2gpnums

                If you’re not in rush, I’ve already pulled out that situation and make the change inside the config.
                  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: sottwell at May 21, 2010, 09:10 AM

                  In the module’s Config tab, the Thumbnail Settings tab, the Display Settings section, what is the "Columns" field supposed to do?

                  I had presumed it would set how many columns of thumbnails; for example a setting of 3 with a Pictures per Page setting of 9 would produce a 3 by 3 block of thumbnails.

                  This is not the case, however. The Columns setting doesn’t appear to be having any effect at all.

                  Table will set the column number, while the pictures still come out by amount you’ve set.
                  Div is floated left.
                    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.
                    • 10257
                    • 55 Posts
                    I have seen a show_group parameter in the code, but it seem to be ignored as I set it on different easy2 calls. I’d like to group my pictures from one site into different groups, so you don’t have all pictures connected with prev/next.

                    What do I miss?
                      • 11055 ☆ A M B ☆
                      • 3,112 Posts
                      Have you called the snippet each of the galleries, which use &show_group differently?
                        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.