We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9085
    • 630 Posts
    Quote from: goldsky at Sep 19, 2010, 10:50 AM


    Quote from: esche at Sep 19, 2010, 09:16 AM

    Fatal error: Call to undefined function mb_get_info() in ...\assets\modules\easy2\install\index.php on line 527
    Может стоит добавить корректную обработку:

    if (function_exists(..) && mb_get_info()... )

    UPD version: e2g-1.4.0-rc1-r268.zip
    You have to have the PHP Multibyte String enabled on your php.ini settings.
    Yes, I understand.
    But to except Fatal Error i think it’s better to check function existing.
    Thank for your module and support.
      Правильно заданный вопрос повышает вероятность получения нужного ответа.
      Что-то не работает? Загляните в лог ошибок!
      Есть проблема? "Локализуйте" её!
      Ответы на большинство вопросов по MODx | MODx RTFM | API Evo Revo | галопом по Европам Азиям smiley wikibooks(ru) Ditto(en) | Wayfinder e-book | Заметки и о MODx
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      Quote from: esche at Sep 19, 2010, 11:45 PM

      Yes, I understand.
      But to except Fatal Error i think it’s better to check function existing.
      Thank for your module and support.
      hm...
      ok, i’ll add the checker.
        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.
        • 20050
        • 67 Posts
        Quote from: goldsky at Sep 19, 2010, 10:50 AM

        @modx_user,
        Ignore the "457 Невозможно выставить права доступа".
        Replace the assets\modules\easy2\includes\classes\e2g.module.class.php with this.


        К сожалению замена файла не принесла результат. Модулю не удаётся переносить папки. Папки физически не создаются.

        Приходится удалять, а потом создавать в нужном месте в другом уровне иерархии.

        Однако если создать новую папку - всё нормально. undecided

        Пока же я создаю новую папку и переношу фотографии из старой.
          [!ditto? !][!ditto? !][!ditto &margaritto=`yes`!]
          • 20050
          • 67 Posts
          Друзья, подскажите где задать размер и цвет текстового водяного знака?
            [!ditto? !][!ditto? !][!ditto &margaritto=`yes`!]
            • 16141
            • 8 Posts
            При загрузке изображений некорректно обрабатывается значение высоты. В настройках на вкладке "Настройка изображений" установлены значения ширина:958 высота:640. При загрузке изображение уменьшается до 958 пикселей по ширине но по высоте остается больше 640 пикселей! Кроме того если выставить ширина:0 высота:640 - изображение также не уменьшается до 640 пикселей по высоте. Т.е. параметр "высота" игнорируется.

            Также проблема при показе слайд шоу. Выставлен метод изменения resize. Портретные изображения уменьшаются корректно. Ландшафтные изображения обрезаются при большом соотношении ширина/высота. Параменты &ss_w и &ss_h выставлены 958 и 640 соответственно. Ландшафтные изображения обрезаются по ширине, слева к изображению добавляется вертикальная белая полоса, и отображаются высотой 640 пикселей. Изменение параметра &ss_allowedratio не дает никаких результатов (кэш очищал).

            Easy 2 Gallery 1.4.0-RC1-r268
            MODx 1.0.4

            Пробовал на локальном сервере и на хостинге.

            Downloading images properly handled the height. In the settings tab "Picture Settings" are set to width: 958 height: 640. When I load the image is reduced to 958 pixels in width but the height is greater than 640 pixels! In addition, if set width: 0 Height: 640 - picture is not resized to 640 pixels in height. Ie the "height" is ignored.

            Also a problem when showing a slide show. Put method of changing the resize. Portraits are reduced correctly. Landscape images are cropped at a large ratio of width to height. Paramenty & ss_w & ss_h and exhibited 958 and 640, respectively. Landscape images are cropped to the width of the left image is added to the vertical white stripe, and displays the height of 640 pixels. Changing the setting & ss_allowedratio not give any results (cache cleared).

            Easy 2 Gallery 1.4.0-RC1-r268
            MODx 1.0.4

            Tried on the local server and hosting.
              • 11055 ☆ A M B ☆
              • 3,112 Posts
              Quote from: modx_user at Sep 21, 2010, 09:23 AM

              Друзья, подскажите где задать размер и цвет текстового водяного знака?
              apparently you have to hard-coded it by yourself.
              see

              • private function _watermark($fp)
              • or file: show.easy2gallery.php,
              you can change this part
              <?php // only for highlighting
              
              
                      $text_color = imagecolorallocate($im, 0, 0, 0);
                      imagestring($im, 2, $x - 1, $y, $e2g['wmt'], $text_color);
                      imagestring($im, 2, $x + 1, $y, $e2g['wmt'], $text_color);
                      imagestring($im, 2, $x, $y - 1, $e2g['wmt'], $text_color);
                      imagestring($im, 2, $x, $y + 1, $e2g['wmt'], $text_color);
                      imagestring($im, 2, $x + 1, $y + 1, $e2g['wmt'], $text_color);
                      imagestring($im, 2, $x - 1, $y - 1, $e2g['wmt'], $text_color);
              
                      $text_color = imagecolorallocate($im, 255, 255, 255);
                      imagestring($im, 2, $x, $y, $e2g['wmt'], $text_color);
              


              @kokamvd,
              i’ll check this.
                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
                @kokamvd,
                I found that the resize code is the legacy of the previous version (from the 1.3.0 or so):
                <?php // only for highlighting
                
                    private function _resize_img ($f, $inf, $w, $h, $thq) {
                // ... more code here
                
                            // RESIZE
                            if ($inf[0] > $inf[1]) $h = round($inf[1] * $w / $inf[0]);
                            else $w = round($inf[0] * $h / $inf[1]);
                
                // ... more code here
                    }
                

                That means:

                If : (img-width > img-height), the height-setting = round (img-height) * width-setting / img-width)
                else: width-setting = round(img-width * height-setting / img-height)
                img-width > img-height is a landscape orientation picture.
                So basic the concept is that the image will only be resized by height for the landscape picture, and resized by width for the portrait one.

                I believe it was to avoid shortage portrait pictures while your settings works only for landscape dimension.

                Hmmm...
                Looks like I need to separate these resizing between the different orientations.

                What is your situation?
                Do you have both orientations?
                  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.
                  • 16141
                  • 8 Posts
                  Yes, I have pictures of both orientations. Live example can be found here http://shanti.nedzu.ru/wedding IMG_0027.jpg and IMG_0034.jpg cropped. Give me your emal or icq and I will send you to log into the admin panel
                    • 11055 ☆ A M B ☆
                    • 3,112 Posts
                    just send me the problem pictures (IMG_0027.jpg and IMG_0034.jpg , original dimension) and how does it should be resized, to [email protected] .

                    EDIT:
                    What do you actually expect from height=0 ?
                      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.
                      • 16141
                      • 8 Posts
                      If height=0 image should resize exhibited width, and in proportion to height. Or I do not understand correctly the question?