We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8677
    • 50 Posts
    Quote from: goldsky at Oct 07, 2010, 12:58 PM

    @Elena,
    Is your server’s ’save_mode’ turned on?
    http://stackoverflow.com/questions/2560762/php-mkdir-and-apache-ownership

    no, turned off.
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      Do you mind to PM me your manager’s access?

      Does it work on your localhost?
        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.
        • 8677
        • 50 Posts
        Quote from: goldsky at Oct 07, 2010, 01:09 PM

        Do you mind to PM me your manager’s access?

        I send.

        Quote from: goldsky at Oct 07, 2010, 01:09 PM

        Does it work on your localhost?

        I don’t know, i don’t create this site on localhost, only in internet.
          • 11055 ☆ A M B ☆
          • 3,112 Posts
          Wow... when did you check the modx’s error logs?
          It’s full of this:
          Implicit cloning object of class ’e2g_snip’ because of ’zend.ze1_compatibility_mode’
          or
          Implicit cloning object of class ’e2g_mod’ because of ’zend.ze1_compatibility_mode’

          Try to turn it off:
          http://php.net/manual/en/ini.core.php#ini.zend.ze1-compatibility-mode

          Try this work around for your e2g.module.class.php, line 1247:
          <?php
          
          
          if (!$chmodolddir && ($row['cat_id']!=1)) {
              $_SESSION['easy2err'][] = __LINE__.' : '.$lng['chmod_err'];
              $_SESSION['easy2err'][] = __LINE__.' : '.'../'.$this->_e2g_decode($gdir.$row['cat_name']);
          }
          // elseif (!$renamedir && ($row['cat_id']!=1)) {
          if (!$renamedir && ($row['cat_id']!=1)) {
              $_SESSION['easy2err'][] = __LINE__.' : '.$lng['update_err'];
              $_SESSION['easy2err'][] = __LINE__.' : '.$this->_e2g_decode($gdir.$newdirname);
          }
          
            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.
            • 6862
            • 97 Posts
            Quote from: goldsky at Oct 07, 2010, 12:58 PM

            @De Ribas,
            Tell me about how you use the filename: 8.jpg, s8.jpg, b8.jpg
            I have done the script, but the next thumb won’t come up.
            bNAME.jpg - Оригинальная картинка большого разрешения
            NAME.jpg - Картинка 600x400
            sNAME.jpg - Превью 120x80

            Превью обязательно должно иметь имя sNAME.jpg.
            Картинки должны быть в одной папке.
            Ссылку на bNAME.jpg можно неиспользовать удалив ее.

            Я предполагаю что проблема в том что превью и картинка в разных папках?
            Тогда наверно надо отредактировать строки 67-68 в файле script.js
              • 11055 ☆ A M B ☆
              • 3,112 Posts
              Quote from: De at Oct 07, 2010, 01:57 PM

              Я предполагаю что проблема в том что превью и картинка в разных папках?
              Тогда наверно надо отредактировать строки 67-68 в файле script.js
              hmm... you need to fix how the JS fetching the images.

              I’ve make the script (as attachment), so you can call the snippet:
              [!easy2? &gid=`2` &slideshow=`deribas` &ss_limit=`20` &w=`120` &h=`80`&ss_w=`600` &ss_h=`400` &ss_allowedratio=`all`!]
              Note: please check the folder paths, since I put all files into that way (assets\libs\slideshows\deribas).

              But,
              you must realize that E2G will create thumbnails by its own function, so their name will be like this:
              8.jpg will be split and be added with *_pageId_sessionId_dimension.jpg (see _imgShaper() method in e2g.snippet.class.php, of 1.4.0 RC2):

              8_id42_sid1_120x80.jpg [thumbnail]
              8_id42_sid1_600x400.jpg [left-panel]
              8_id42_sid1_originalSize.jpg [if you click the thumbnail]

              So, go ahead to change your JS file.
              It’s yours now.
                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.
                • 6348
                • 90 Posts
                Обнаружил, что изи 2 криво работает с превьюшками - если пропорции исходного изображения 16:9 и в настройках размеры превьюхи заданы как 16:9, то превьюшка сгенерится правильно, но если попадется вытянутое по вертикали изображение, то обрежется сверху и снизу (что не всегда правильно), а если стороны исходного изображения соотносятся как 4:3, то справа будет белый прямоугольник:

                поэтому я решил доработать галерею. Вот как выглядит стандартный менеджер по загрузке картинок:
                При клике на картинку (та, что справа) по замыслу должно открываться всплывающее окно с возможностью кропинга изображения. С помощью фиребага я нахел, где в html коде она вставляется, но никак не найду php ф-л, который формирует этот код. Хелп((
                  • 11055 ☆ A M B ☆
                  • 3,112 Posts
                  @daima,
                  E2G version 1.35?
                    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.
                    • 6348
                    • 90 Posts
                    Quote from: goldsky at Oct 08, 2010, 06:19 AM

                    @daima,
                    E2G version 1.35?
                    точно. Сейчас поставил easy2g-1.4.0-rc1. Там эта проблема решена (правда кое-как: либо по краям добавляется фоновый цвет для эскизов, либо отрезает нужные края). При этом база старой галереи накрылась, так что картинки придется вносить заново и как-то медленно 1.4 работает. Столько мусора туда добавили. Скорей всего откачусь на 1.35, так что вопрос в силе
                      • 11055 ☆ A M B ☆
                      • 3,112 Posts
                      @daima,
                      The speed depends on how many pictures you’re hosting.

                      When I added features for RC-1, I did realize the performance issue, because everything loads on 1 page with several tabs.

                      That’s why I made a big change for RC-2, where 1 page means 1 section (was tab like < 1.4.0-RC-1).
                        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.