We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7690
    • 166 Posts
    Great module. I have already forgotten about the headache i get from MaxiGallery!
    Really, really great module. Keep up the work!

    1 bug:
    When an image upload has failed, you get a white screen. When you click on Easy2 module again, than it shows the failed image in the grid.
    There is no error message.

    ====
    As a thanks for this great gallery, i have translated it in Dutch.
      • 26931
      • 2,314 Posts
      would it be possible to add the functionality of creating a gallery for every new ressource ( that got the Easy2Gallery call in it ), so that you wouldn’t need to add the gallery id by hand?
      ...got a little workaround in order to connect a ressource with a gallery ( without entering the gallery ID to the Snippet call manually )

      1. create a Snippet "select2gal"
      <?php
      $output = '';
      $result = $modx->db->query( 'SELECT cat_name, cat_id FROM `modx_easy2_dirs` ' );
      $gallarray = $modx->db->makeArray( $result );
      $num_rows = mysql_num_rows($result);
      $lastgall = ($num_rows)-1;
      
      for ($i = 0; $i < $lastgall ; $i++) {
          $firstitems .= $gallarray[$i][cat_name];
          $firstitems .= '==';  
          $firstitems .= $gallarray[$i][cat_id];
          $firstitems .= '||';  
      }
      
      $lastitem = $gallarray[$lastgall][cat_name] . '==' . $gallarray[$lastgall][cat_id];
      $output = "$firstitems $lastitem";
      return $output;
      ?>

      2. create a new TV "galleries"
      Input Type: DropDown List Menu
      Input Option Values:
      @EVAL return $modx->runSnippet('select2gal');
      assign it to your template

      3. create a Gallery Template with your easy2gallery call like in it e.g.
      [!easy2?gid=[*galleries*]&w=100&h=100&thq=90!] 
      important is that part: gid=[*galleries*]

      4. now you’ll be able to select the gallery from a DropDown Menu and connect it with your ressource

      ... guess i could extend it to output nothing if no gallery has been selected

      hope this makes sense smiley j

      *edit: okay, i’ll rewrite it a bit to get rid of the last double pipes ... please correct if it’s too bad - i’m a php noooooob smiley / it’s working
        • 11055 ☆ A M B ☆
        • 3,112 Posts
        @sharkbait,
        thx for the input.

        i just finished up the module part, on renaming all file’s / folder’s names back while upgrading.
        but, right now i’m breaking down all the snippet code into pieces, and gather them inside a class.

        I just want to remind you, that Easy 2 Gallery doesn’t not only have a &gid call, but also a &fid call (single image id), and random image with $rgid parameter as the gal-id.
        This is why I rework the snippet. something came up after I changed a little thing. 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.
          • 26931
          • 2,314 Posts
          i just finished up the module part, one renaming all file’s / folder’s back while upgrading.
          but, right now i’m breaking down all the snippet code into pieces, and gather them inside a class.

          I just want to remind you, that Easy 2 Gallery doesn’t not only have a &gid call, but also a &fid call (single image id), and random image with $rgid parameter as the gal-id.
          This is why I rework the snippet. something came up after I changed a little thing.
          goldsky, thanks for all your work on this!
            • 11055 ☆ A M B ☆
            • 3,112 Posts
            @sharkbait, thx to the previous authors.
            I’m only a troubleshooter [,maker :p]
            Quote from: DNA at Mar 11, 2010, 07:11 PM

            Great module. I have already forgotten about the headache i get from MaxiGallery!
            Really, really great module. Keep up the work!

            1 bug:
            When an image upload has failed, you get a white screen. When you click on Easy2 module again, than it shows the failed image in the grid.
            There is no error message.
            ====
            As a thanks for this great gallery, i have translated it in Dutch.

            I bet it came from a lot of images, or a big image.
            The next release will include an output buffer to avoid PHP’s memory limitation.
            I’ve tested it in my own live project, for 400+ MB file, and it ran only for 15.9054811001 seconds :p

            ow, and thx for the translation, I’ll include it into the next release.
              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.
              • 7690
              • 166 Posts
              wow that is nice!

              1 usability problem.
              You can’t move images into a folder or out of a folder, once the image is uploaded.
                • 15316
                • 4 Posts
                Second the usability problem (DNA), run into the same one right now.

                A different ’problem’, more a best practice. Once inside a gallery, the users most certainly wish to navigate back. So I would need a link "back" or something like it as soon as a User opens a gallery. How do you guys solve this for you, any suggestions?

                Thanks smiley
                  • 7690
                  • 166 Posts
                  dunno, but maybe something like:

                  <?php
                  
                  if([+easy2:cat_id+] != [+easy2:parent_id+]) {
                  echo "<a href=\"[~[+easy2:parent_id+]~]\">back</a>";
                  }
                  ?>


                  Or something?

                  ====
                  but i have used easy2 on 1 website now. And i already think that this is far more better dan MaxiGallery.
                  This is far more user friendly. MODx should pre-install this in the install files, not Maxigallery.
                    • 11055 ☆ A M B ☆
                    • 3,112 Posts
                    Quote from: DNA at Mar 15, 2010, 07:10 AM

                    wow that is nice!

                    1 usability problem.
                    You can’t move images into a folder or out of a folder, once the image is uploaded.

                    that’s also one known problem i’m facing off.
                    i have already a todo list to create ’move to folder...’.
                    if you’re using 1.3.5 it’s almost impossible since the queries depends on category’s ID-wrapping (if you’re curios, check the code).

                    i hope i can also get this thing done in 1.3.6.

                    Quote from: kamilente at Mar 15, 2010, 07:36 AM

                    Second the usability problem (DNA), run into the same one right now.

                    A different ’problem’, more a best practice. Once inside a gallery, the users most certainly wish to navigate back. So I would need a link "back" or something like it as soon as a User opens a gallery. How do you guys solve this for you, any suggestions?

                    Thanks smiley
                    is it about manager side or web page?

                    Quote from: DNA at Mar 15, 2010, 08:28 AM

                    but i have used easy2 on 1 website now. And i already think that this is far more better dan MaxiGallery.
                    This is far more user friendly. MODx should pre-install this in the install files, not Maxigallery.
                    There is one thing that Maxigallery has its best, its developer(s) persistent support.
                    There were many gallery options out there, but I guess nothing beats those people’s patience on answering questions and upgrading it.

                    This module was hidden beneath russian’s forum, until Temus release this into repository about 3 months ago. It was far after the MODx 1.0.2 GA release. The original author Cx2 didn’t even continue on answering questions.

                    My point is its not all about the good program, it’s also about the person behind it.
                      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.
                      • 15316
                      • 4 Posts
                      Quote from: DNA at Mar 15, 2010, 08:28 AM

                      dunno, but maybe something like:
                      <?php
                      
                      if([+easy2:cat_id+] != [+easy2:parent_id+]) {
                      echo "<a href=\"[~[+easy2:parent_id+]~]\">back</a>";
                      }
                      ?>


                      Thank you DNA. Unfortunately I have, being new to ModX, some problems using it.
                      As it is php code, it should go in a snippet, right? But like this, [+easy2:cat_id+] wouldn’t be processed. In a chunk I can’t use php. So what should I do with it? smiley

                      Thank you for your help