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
    I’m updating this module and have completed the standard (current) feature,
    So here are the fixes:
    1. file’s/folder’s name will not be renamed again
    2. comment with email validation
    3. each of folders will have index.html (Unautorized Direct Access to folder), each time of directory creation or each time synchro action finds a folder doesn’t have index.html.
    4. as #3, this time synchro will exclude index.html, index.htm, index.php, Thumbs.db for the database synchronization.
    5. editing directory name will also rename the real folder’s name.

    Under completion:
    6. Restoring the file’s/folder’s name from the previous release.

    Now, I’m stucked with 1 (one) BIG problem: memory allocation.

    This problem should be solved before this version is released, because I do believe there will be a LOT of names restoration.
    My own obstacle is about renaming 1500+ files (400+ MB) of images in the web server!

    I’ve googled and I found about changing the .htaccess / php memory limit.
    But it won’t be succeeded in share hosting.
    phpMyAdmin and SMF have a ’pause’ process while they are importing data or updating system.

    If you have any idea how to handle this, give me shout.
      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.
      • 21671
      • 244 Posts
      Hi Temus and Goldsky,

      on a gallery i just finished at http://www.wecweddings.com/maki-and-danny.html the client wanted the thumbnails to be number of the images. So if there are 40 images in gallery, they would want the thumbs to be numbered 1 through 40. The only way I could figure out how to do this was to change the thumbnail template to
      <div class="thumb">
      <a id="[+easy2:name+]" href="assets/modules/easy2/show.easy2gallery.php?id=[+easy2:id+]" title="[+easy2:title+] - [+easy2:description+]" [+easy2:glibact+]> [+easy2:name+] </a>
      </div>
      where the name is manually entered for each image. This method leaves a lot to be desired.

      How can I make the above thumb link text dynamically pull from the item number inside the directory; how to get it to look inside the gid parameter directory, count the number of files and then output this images place in the count. I don’t want the filename, or the [+easy2:name+] parameter, or the [+easy2:id+]. The id parameter doesn’t help because it keeps a count of all images in all the folders not images per folder.

      Slide show pro automatically does this and I would like the same functionality (with the accessabilty of the Javascript slideshow) so it is easy for my client to add slideshows to the site after I hand it over to him.

      Any help is greatly appreciated.

      -Noah
        • 11055 ☆ A M B ☆
        • 3,112 Posts
        why not use &limit=`1` and let the crumbs make the link?
          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.
          • 21671
          • 244 Posts
          ANd a little css and we are off to the Races! Thanks a million!
            • 21671
            • 244 Posts
            On second thought, this method works, but it has the downside of doing a page refresh. The end user is going to have to wait longer while the page elements reload. I guess I would then ask for this as a feature request for the new version of if there is a a way to count files in a directory and then put a number on each image as to where it is in the count.

            I like everything about your idea except the page refresh:

            I like that it shows the thumb numbers, I like that it shows the highlighted, or current thumb too.

            Many Thanks,

            -Noah
              • 29487
              • 385 Posts
              @noahlearner
              Quote from: noahlearner at Feb 26, 2010, 11:43 AM

              How can I make the above thumb link text dynamically pull from the item number inside the directory;
              You will need to change that line
              $_e2g['content'] .= $notables ? filler($tpl_thumb, $l) : '<td>'.filler($tpl_thumb, $l).'</td>';

              to
              $l['pos']=$i+1;
              $_e2g['content'] .= $notables ? filler($tpl_thumb, $l) : '<td>'.filler($tpl_thumb, $l).'</td>';
              


              in the "easy2" snippet, and use [+easy2:pos+]
                • 21671
                • 244 Posts
                Hi Temus,

                Thank you so much!!! One more feature request(I hope it is the last).

                How to show which thumb is active. And to have it work with the thumb buttons below image and with the prev and next links too. http://gti.websitewelcome.com/~wecphoto/gallery1.html is an example of a gallery where I’d like to have the thumbs style differently if they are active. Is this possible. Any pointers would help me a bunch.

                Is this a jQuery issue?

                Many Thanks,

                Noah
                  • 29487
                  • 385 Posts
                  Quote from: noahlearner at Feb 26, 2010, 03:27 PM

                  How to show which thumb is active.
                  ...
                  Is this a jQuery issue?

                  Yes. You will need to add this code:
                  <style type="text/css">.thumb.active a {background:#f00;}</style>
                  <script type="text/javascript">
                  jQuery(function(b) {
                  	p_all=b('.thumb');
                  	p_end=p_all.size()-1;
                  	p_cur=0;
                  	p_all.eq(p_cur).addClass('active');
                  	p_all.click(function(){
                  		b(this).siblings().removeClass('active').end().addClass('active');
                  		p_cur=p_all.index(this);
                  	});
                  	b('#cboxNext').click(function() {
                  		p_cur = p_cur==p_end ? 0 : p_cur+1;
                  		p_all.removeClass('active').eq(p_cur).addClass('active');
                  	});
                  	b('#cboxPrevious').click(function() {
                  		p_cur = p_cur==0 ? p_end : p_cur-1;
                  		p_all.removeClass('active').eq(p_cur).addClass('active');
                  	});
                  });
                  </script>
                  
                    • 21671
                    • 244 Posts
                    Hi Temus,

                    I am very impressed with you and the level of help you provided me in my quest to learn your module. It is another example of why MODx rocks and why I’m so excited to be a part of our community. Many Many Thanks!

                    -Noah
                      • 15316
                      • 4 Posts
                      Quote from: goldsky at Feb 23, 2010, 05:39 AM

                      Quote from: Hardoman at Feb 22, 2010, 03:36 PM

                      I got a few problems during the installation, although I repeated all the steps and think, I installed it properly.
                      [...] Please see the attached image.
                      This is odd.
                      What is your manager’s default language?

                      @Goldsky: I had exactly the same problem, with german as my default manager language.

                      Modx 1.0.2, uploaded with Transmit from an OS X system, both tried with Opera and Safari. Didn’t work even after downloading it again from the site and re-uploading it.

                      I solved it for me by changing the default fall-back language in /assets/modules/easy2/install/index.php line 7
                      include '../assets/modules/easy2/install/langs/russian.inc.php';

                      to
                      include '../assets/modules/easy2/install/langs/english.inc.php';


                      Greetings