We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 785
    • 2,113 Posts
    Ну почему люди начинают выдумывать то, о чем им совершенно не говорили… Вам что, пяти минут не хватит на обработку изображения? В этом случае надо отказываться от таких изображений.
    Quote from: Bredova at Nov 01, 2010, 10:04 AM

    Это значит, мне надо сносить Easy 2 Gallery 1.4.0-rc3 и ставить 1.35 и не выпендриваться?
    Это значит, в файле assets/modules/easy2/includes/classes/e2g.public.class.php надо найти строку 40, в которой написано
    set_time_limit(0);
    и удалить ее. Со строкой программа будет выполняться до тех пор, пока не выполнит все действия, сколько бы времени это ни заняло, а без нее всего лишь пять минут (если правду говорят, что установлен лимит в 300).
      Создание сайтов на MODx, поддержка сайтов, поисковая оптимизация, программирование, копирайтинг
      Статьи о MODx, регулярно новые публикации
      • 7571
      • 135 Posts
      1.Эту строчку: && ($staticTag == isset($staticTag) ? $tag : NULL) я заменил. Для чего это?
      Сниппет:[!easy2?gid=`2` &ecm=`0` &ecl=`3` &limit=`9` &pagenum_class=`navi` &crumbs=`1` !]
      2. По поводу описания фотографии, прописал &gal_desc=`1`, но вывелся пустой прямоугольник над изображениями. А чтобы под каждым изображением было именно его описание, которое я писал при добавление фотографии, как это сделать?
      3. Как убрать черточку, когда наводишь на эскиз фотографии? Если дать имя фотографии, то будет показывается имя и черточка: "Пример-"
      4. Если несколько страниц, то возможно ли листать приближенные фотографии сразу по всем страницам, а не когда закончилась страница, закрывать приближенную фотографию, открывать след страницу.
      4. Возможно ли в галереи сделать так, чтобы когда фотография приближалась, нельзя было переходить на след фотографии и не появлялся темный фон, а просто увеличивалась бы фотография, ну как в пример, который был приведен раньше: http://www.jaluze.ru/vertikalnye-zhaljuzi/vertikalnyetkanzhaljuzi/
        • 9085
        • 630 Posts

        You can change this from the default.config.easy2gallery.php (fresh installation) from this value:

        ’dir’ => ’assets/images/gallery/’,

        If this is an upgrade, this module will use the existing config.easy2gallery.php values.

        Is it possible to take value from Field "Path" ( the first install step ) and put it into config (fresh installation), if we have write permissions? E2G will be more easy to install smiley

        Thank 4 your support!
          Правильно заданный вопрос повышает вероятность получения нужного ответа.
          Что-то не работает? Загляните в лог ошибок!
          Есть проблема? "Локализуйте" её!
          Ответы на большинство вопросов по MODx | MODx RTFM | API Evo Revo | галопом по Европам Азиям smiley wikibooks(ru) Ditto(en) | Wayfinder e-book | Заметки и о MODx
          • 20050
          • 67 Posts
          Друзья,

          Хочу на главной странице вывести три последние добавленные фотографии из массива разных галерей.

          Указываю самую корневую галерею с id=`5` в которой находятся другие галереи.

          [!easy2? &gid=`5`  &limit=`3` &orderby=`date_added` &showonly=`images` !]


          Не выводит фото.

          Выводит фотографии лишь в том случае, если указать конкретную галерею, например &gid=`147`

          Собственно.. help.
            [!ditto? !][!ditto? !][!ditto &margaritto=`yes`!]
            • 11055 ☆ A M B ☆
            • 3,112 Posts
            Somebody should push that maintenance button of this SMF.
            I didn’t get any notification from this board.

            @modx_user,
            If you’re using RC-3, you can almost do anything with your gallery.
            There is are some ’wild’ parameters that can make you forget other parameters:

            • &gid=`*` (star symbol): show anything
            • &where_dir : imagine the WHERE statements for SQL, for folders. but you should read the help tab about the valid operators
            • &where_file : same as above, but for files

            [!easy2? &gid=`*` &showonly=`images` &where_file=`size,less,20000 AND id,greater,4 OR tag,equal,foo` &slideshow=`smoothgallery` &ss_config=`zoom`!]

              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

              What for?
              The parameters (like &gid and others) are all the snippet call parameters that you give.
              "cat_alias" is what you’ll get.
              You can not set it inside that $customgetparams.

              Here is the live example of connecting E2G to my other custom module+snippet. smiley
              I placed it inside a method, which integrate between a document page to its image folder.
              So the implementation is not by calling the E2G, but that custom snippet.
              E2G only runs as a background, not as a snippet call.
              Try to browse, click on the Archive pictures link if it’s available, then you’ll be redirected to a landingpage, and you’ll notice the changing in the address bar.
              Try also the "Next" and "Previous" document, or even the "Jump" text field.

              So, the &docid parameter is NOT the &gid.
              The &gid is stored inside another database (eg: docalbumid field), and is called as "gid" => $docalbumid[$docid]

              I have understood nothing Something. I have a catalog "catalog". That it was clear what there images lie at it is поясняюще the name "catalog_description". In it pictures at which aren’t present the explaining name img_description. Therefore in parameter alt I want that value from catalog_description was deduced. Or we will tell img_description - empty, <img... alt = "catalog_description">, if not empty, <img... alt = "img_description">


                • 11055 ☆ A M B ☆
                • 3,112 Posts
                Looks like I now understand what you’re up to. tongue
                Have you try to guess [+easy2:cat_description+] ?

                Here is a small secret of the placeholders of Easy 2 Gallery:
                You can call EVERY field in the database as a placeholder, although I or Temus didn’t even mention about them.
                Example:
                This is what WIKI says, and these are the fields that Easy2 has. Look, different.
                Now, what does the snippet do?
                It only adds some more placeholders that need functions to give different result, like [+easy2:title+], which is not exactly a database content, but only a switch function of an empty [+easy2:cat_alias+] so it can roll back as [+easy2:cat_name+].

                I don’t know how deep is your PHP knowledge, but if you can see the last link, it is one of the easy2’s looping processes to fill up the database’s field names + more placeholders (like: w, h, permalink, thumbnail’s target, modx’s alias path link) into output templates.

                So, guess what,
                If you do not set any alias for your folder, then [+easy2:title+] is just the same as [+easy2:cat_name+]
                  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 Nov 04, 2010, 09:06 PM


                  @modx_user,
                  If you’re using RC-3, you can almost do anything with your gallery.
                  There is are some ’wild’ parameters that can make you forget other parameters:
                  ...


                  Спасибо Большое. Сделал апдейт с R1 на R3.

                  [!easy2? &gid=`*` &showonly=`images` &limit=`3` &orderby=`date_added` &order=`ASC` !]


                  Работает.

                  Однако не показывает папки и файлы в администраторском разделе модуля.

                  Пишет:


                  4322 : Please save this configuration first before continue

                  И какой бы кеш не очищал, как бы не сохранял, какое бы действие не делал эта надпись всё время вверху.


                  С чем это может быть связанно?
                    [!ditto? !][!ditto? !][!ditto &margaritto=`yes`!]
                    • 9085
                    • 630 Posts
                    Quote from: modx_user at Nov 04, 2010, 05:16 AM

                    Хочу на главной странице вывести три последние добавленные фотографии из массива разных галерей.

                    2 Goldsky: I have a similar question.
                    Is it possible to display thumbnail which links to another page (without javascript and iframes) - a special page for the galleries?

                    Mainpage snippet like:
                    [!easy2? &gid=`*` &showonly=`folders` &orderby=`date_added` &limit=`2` &pagination=`0` &glib=`0` !]

                    In this case generated link refers to the same document. In some snippets (reflect?) the &landing parameter lets to specify a "target" page. I understand that E2G’s &landing has a different meaning. Am I wrong?

                    Or is it better to write a single snippet that will do this?

                    ps glib=`0` is incorrect, undocumented and not for use at now
                      Правильно заданный вопрос повышает вероятность получения нужного ответа.
                      Что-то не работает? Загляните в лог ошибок!
                      Есть проблема? "Локализуйте" её!
                      Ответы на большинство вопросов по MODx | MODx RTFM | API Evo Revo | галопом по Европам Азиям smiley wikibooks(ru) Ditto(en) | Wayfinder e-book | Заметки и о MODx
                      • 11055 ☆ A M B ☆
                      • 3,112 Posts
                      Quote from: modx_user at Nov 05, 2010, 10:23 AM

                      Пишет:

                      4322 : Please save this configuration first before continue
                      И какой бы кеш не очищал, как бы не сохранял, какое бы действие не делал эта надпись всё время вверху.
                      С чем это может быть связанно?
                      Save the config page first.
                      If it keeps coming, then the script can not delete the old config.easy2gallery.php.
                      Some server do not set script’s permission to delete the FTP user’s uploads.
                      Delete it manually if it happens.

                      @esche,
                      it does work like ajaxsearch’s &landingPage.
                      at the landing page, you should use the snippet call [!easy2? &landingpage=`its_own_id`!]
                      hell yeah, we definitely need &glib=`0`, &css=`0`, &js=`0`, to turn off the headers auto loading.
                      i was just about to create &autoload_js=`0`.
                      EDIT:
                      it works on images only for now. I don’t set it for folder.
                      Yes, I think we need this also. laugh
                        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.