We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11307
    • 136 Posts
    Quote from: goldsky at Jun 16, 2010, 03:43 PM

    @gregst,
    [!easy2? rgid=`gallery_id`!]

    мне необходима случайная картинка из любой галереи, без ее увеличения. чтобы картинка просто бралась из папки gallery (и подпапок), отображалась на странице и ссылалась на определенную страницу на сайте.

    пример. сайт http://spooner.akron3.ru/ главная страница. на ней большая фотография. вот она должна браться из галереи и ссылаться на страницу id=15
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      Change your template.

      Snippet call:
      <a href="[~10~]">
        [!easy2?
        &fid=`3`
        &w=`140`
        &h=`120`
        &thumb_tpl=`path/to/your/tpl/spooner-thumb.htm`
        &css=`path/to/your/tpl/spooner-thumb.css`!]
      </a>
      


      And the spooner-thumb.htm template is simply:
      <div class="thumb">
          <div class="boxcontent">
              <img src="[+easy2:src+]" alt="[+easy2:title+]" width="120" height="100" />
          </div>
      </div>
      


      Or, am I misunderstanding you? tongue
        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.
        • 11307
        • 136 Posts
        Quote from: goldsky at Jun 17, 2010, 01:37 AM

        Change your template.

        Snippet call:
        <a href="[~10~]">
          [!easy2?
          &fid=`3`
          &w=`140`
          &h=`120`
          &thumb_tpl=`path/to/your/tpl/spooner-thumb.htm`
          &css=`path/to/your/tpl/spooner-thumb.css`!]
        </a>
        


        And the spooner-thumb.htm template is simply:
        <div class="thumb">
            <div class="boxcontent">
                <img src="[+easy2:src+]" alt="[+easy2:title+]" width="120" height="100" />
            </div>
        </div>
        


        Or, am I misunderstanding you? tongue

        я делаю так:
        вызов [!easy2?&gid=`3`&limit=`1`&thumb_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
        шаблон <a href="[~15~]><img src="[+easy2:src+]" alt="[+easy2:title+]" /></a>

        на странице выводится одна картинка (первая из галереи с id=3) (кстати, в твоем примере &fid=`3` имелось ввиду &gid=`3` ?)

        мне не нужно превью. мне нужна сама картинка из галереи. большая. причем случайная из всех галерей а не из только с номер 3 (как в примере).

        и как убрать pagination?
          • 11055 ☆ A M B ☆
          • 3,112 Posts
          If you set your gallery folder = assets/images/gallery, you can just attach the image through the TinyMCE.

          E2G uses 4 gallery image harvesters:

          • gid: folder’s id
          • fid: image’s id
          • rgid: random gallery
          • tag: using tag string (E2G 1.4.0)
          You can see the samples here http://arslantic.co.id/evo/e2g-test-page.html

          Quote from: gregst at Jun 17, 2010, 02:14 AM

          и как убрать pagination?
          gallery.htm, remove [+easy2:pages+]
            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.
            • 11307
            • 136 Posts
            я использую Easy 2 Gallery 1.4.0 - Beta 3
            при использовании вызова [!easy2?&rgid=`2`&limit=`1`&rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]

            выводится случайная картинка из папки id=2. как выводить картинки из всех папок? как сделать так, чтобы картинка не уменьшалась?
            сейчас получается вот так: (sorry за IE6 =)



              • 11055 ☆ A M B ☆
              • 3,112 Posts
              Please consider to upgrade to 1.4.0 RC1 r202. Download from the MODx’s extra page.

              I’ve been trying to get the random pictures to be able to run on the same page from the same gallery.
              But, it can not be done (while we’re speaking, i’m still doing it. honest!).

              You should make different galleries:
              (you don’t have to call &limit=`1`. It’s already limited to 1.)

              [!easy2?&rgid=`2` &rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
              [!easy2?&rgid=`3` &rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
              [!easy2?&rgid=`4` &rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
              [!easy2?&rgid=`5` &rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]

              Use CSS to arrange the floating position.
                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.
                • 11307
                • 136 Posts
                я понял.

                создаю отдельную галерею, откуда будут браться картинки (допустим, id=5)

                вызов на главной странице [!easy2?&rgid=`5` &rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]

                шаблон spooner-thumb.htm
                <a href="[~15~]"><img src="[+easy2:src+]" alt="[+easy2:title+]" width="700" height="550" /></a>

                как сделать картинку без ее уменьшения? следует ли в вызове добавить &h=`550` &w=`700` (по размеру самой катинки)
                но тогда все равно делается превью, но оно имеет размер, равный самой картинке
                  • 11055 ☆ A M B ☆
                  • 3,112 Posts
                  hang on...

                  This is not right.
                  I should realize this from the beginning.
                  The &rgid system was invented back from the version 1.3.5, and has never been updated ever since.
                  The concept was very limited.

                  Tell me, is this the random gallery you’re looking for?
                  http://arslantic.co.id/evo/multiple-random-gid-or-rgid.html
                    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.
                    • 11307
                    • 136 Posts
                    мы не понимаем друг друга =)

                    мне нужна 1 картинка (не превью) на первой странице со ссылкой на заданную страницу.

                    уже ясно как сделать следующее:
                    1. как вывести одну картинку из определенной галереи
                    2. как сделать картинку ссылкой на определенную страницу

                    не ясно как делать:

                    1. как вывести картинку из всего множества картинок, разбитых на несколько галерей
                    2. как не делать превью картинки (должна выводиться исходная картинка)


                    на данный момент вывод такой [!easy2?&rgid=`2`&h=`550`&w=`700`&rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
                      • 11055 ☆ A M B ☆
                      • 3,112 Posts
                      Quote from: gregst at Jun 17, 2010, 05:31 AM

                      мы не понимаем друг друга =)
                      не ясно как делать:

                      1. как вывести картинку из всего множества картинок, разбитых на несколько галерей
                      2. как не делать превью картинки (должна выводиться исходная картинка)

                      на данный момент вывод такой [!easy2?&rgid=`2`&h=`550`&w=`700`&rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
                      Lol. Yep, Lost in Translation.

                      Can anyone translate this better than Google? tongue

                      Ok, another try:
                      You want that if people click the navigation from http://spooner.akron3.ru/gallery.html, then it should open the particular gallery id in (e.g.: ) http://spooner.akron3.ru/srilanka.html.
                      Right? huh
                        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.