We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11055 ☆ A M B ☆
    • 3,112 Posts
    you forgot to mention whether this is in module side or web.
    remember, E2G works both sides, and the Evo also has different permissions.
      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.
      • 20135
      • 188 Posts
      Quote from: goldsky at Sep 22, 2010, 05:51 AM

      you forgot to mention whether this is in module side or web.
      remember, E2G works both sides, and the Evo also has different permissions.
      Sorry, this is module-side.
        • 18913
        • 654 Posts
        I don’t know what if any gallery app could do this, but I thought I’d ask here. What I need to do is be able to drag 5 to 10 small images from a larger thumbnail grid onto a strip which would then "glue" them together into a larger image that the user can save (right-click and save-as).

        It would seem some sort of jQuery-puzzle approach could work (e.g. http://tom.leapwing.co.uk/tech/jquery-puzzle-demo/) but I’m not really sure where to begin. Does anyone have any thoughts whether or not Easy 2 Gallery could be adapted to this task, or do I need to look at something else? Do any of the existing galleries have a drag-and-drop capability that would get things started?

        Thanks in advance,
        Matt
          • 11055 ☆ A M B ☆
          • 3,112 Posts
          hello matt,

          actually that’s very easy.
          I should remind you how e2g [including the Revo’s Gallery or other gallery management] works.
          Its purpose is only to manage the gallery.

          Now the best of e2g, you can decide how the output should be.
          It provides you 2 ways of image outputs:
          1. by grid as the default (which is the original output since the 1.3 version)
          2. by raw image list to be processed as slideshow (or others, since 1.4.0 where the flexibility begins).

          From the 1.4.0 rc-4 (or below rc, I forget tongue), e2g provides you with 2 methods (let’s say the private methods, which in RC5/PL will have these as the public accessible methods to deal with AJAX) that can be used to retrieve the result:
          <?php // highlighting
          
          $ssParams = $this->_getSlideShowParams();
          $ssFiles = $this->_getSlideShowFiles();
          

          That puzzle demo as an example.
          As I can read the raw HTML, I know that it actually deals with some sliced images, and play them with a jQuery’s script.
          Now understand this: the magic relies on the Javascript.

          So it doesn’t matter how you want the output will be, as long as you can make/borrow some JS scripts, you can have that magic on your hands. grin
          To answer your question according to that specific example, here is the e2g’s demo.
          If you want to see the code, would you ask on the RC-4 thread? 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.