We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for <a href="http://modxcms.com/extras/package/619">Easy 2 Gallery 1.4.0-beta 3</a> by goldsky.

    Brief Description:
    ********** 1.4.0-Beta 3 **********

    + ONLY support UTF-8 filenames/folders. Other than that should stay at Easy 2 Gallery 1.3.5.



    + Fixed small bug in pagination calculation, again...

    + Introducing additional parameters:

    --+ &slideshow : simple (more type of slideshow will be added soon)

    ----+ &ss_w - slideshow width box, default = 400 (in px)

    ----+ &ss_h - slideshow height box, default = 300 (in px)

    ----+ &ss_bg - box background color, default = white

    ----+ &ss_allowedratio - allowed width/height ratio of image dimension inside slideshow box, default 0.75*(&ss_w/&ss_h) - 1.25*(&ss_w/&ss_h).

    Options:



    * &apos;minimumfloatnumber-maximumfloatnumber&apos;, eg: `1.0-2.0`

    * &apos;none&apos; - disable this ratio, all landscape/portrait images will be shown



    ----+ &ss_limit - limit number of images for the slideshow, default NULL.

    More images mean slower page loading.



    + Invalid characters checking

    + Numbering on duplication

    + Additional tab inside module: Comments Manager

    + Introducing additional parameters:

    --+ &resize_type : inner | shrink | resize

    --+ &thbg_red (Red in RGB background color)

    --+ &thbg_green (Green in RGB background color)

    --+ &thbg_blue (Blue in RGB background color)

    + All textarea now supports TinyMCE

    + Directory database now includes Description.

    + Comment system now has IP Address ignoring

    --> when you&apos;re ignoring an IP Address, comment hyperlink will be hidden from the specified IP Address

    + Fixed the SQL upgrade code

    + Now you can have multi IDs, for &fid, &gid, &rgid

    + Introducing some parameters:

    --+ &showonly : images | folders

    --+ $customgetparams (for nesting with other snippets)

    + Directory & images share same pagination

    + English libraries, except lightwindow (author&apos;s site is dead)

    + Broken down Module into classes and templates, will be very useful for further development of any additional PHP functions or Module&apos;s interface.

    + See the help page

    + Libraries arguments now have been merged in one file only: includes/config.libs.easy2gallery.php



    MODULE

    1. file&apos;s/folder&apos;s name will not be renamed again

    2. the original folder&apos;s & file&apos;s names restoration in the upgrading installation process

    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&apos;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&apos;s name.

    6. change the default installation language.

    7. add output buffering to avoid PHP&apos;s memory limit.

    8. add natural sort order of gallery&apos;s list



    SNIPPET

    1. Now with PHP classes.

    2. Directories and files are now sharing the same Grid and Pagination. The &limit parameter applies as the joined result.

    3. Comment with email validation.



    LANGUAGE

    1. English

    under old.* files, still need to be done:

    2. Russian

    3. Spanish ( credit: redstormj (Jose R. Lopez) )

    4. Dutch ( credit: DNA )
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      UPDATE


      30-04-2010
      Releasing Easy 2 Gallery 1.4.0 Beta 4 for too many bug fixing and adding slideshows.

      20-04-2010
      Added Galleriffic slideshow.

      + change the snippet’s call on the slideshow part, make it flexible:
      <?php // highlighting
      // include the available slideshow file config
      if (!file_exists(E2G_SNIPPET_PATH.'includes/slideshow/'.$slideshow.'/'.$slideshow.'.php')) {
          $ss_display = 'slideshow config for <b>'.$slideshow.'</b> is not found.';
      } else {
          include_once(E2G_SNIPPET_PATH.'includes/slideshow/'.$slideshow.'/'.$slideshow.'.php');
      }
      // return the slideshow
      return $ss_display;
      

      So by this changes, additional slideshow’s folder and slideshow’s php file should be added under the same name with the slideshow’s title.
      + Just replace all the files with the E2G 1.4.x - galleriffic.zip, this will overwrite the snippet’s class, too.
      + the call: [!easy2? &gid=`25` &slideshow=`galleriffic` &ss_config=`example-5` &w=`70` &h=`70`!]

      • use &gid/ &fid/ &rgid to get the library
      • &slideshow=`galleriffic` is the specified slideshow type

      • &ss_config options:
        [list]
        [li]example-1
      • example-2
      • example-5
      [/li]
      [li]$ss_w = CSS’s maximum width of image slides[/li]
      [li]$ss_h = CSS’s maximum width of image slides[/li]
      [li]$ss_bg = CSS’s background color[/li]
      [li]$w and $h are the thumbnail sizes in this slideshow.
      There will be a new cache file under _thumbnails if these differ with the default config.
      [/li]
      [/list]

      for easy reminding of the existing examples in galleriffic’s site. You don’t need examples 3 and 4, do you? wink
      Sample? Of course you’d ask.
      http://arslantic.co.id/evo/galleriffic-with-e2g.html

      16-04-2010
      I found a bug around line 714 of file: e2g.module.class.php
      <?php //highlighting
      @chmod('../'.$gdir.utf8_decode($_POST['filename']), 0644) or die('683');
      


      Please change to be like this
      <?php //highlighting
      @chmod('../'.$gdir.utf8_decode($_POST['newfilename'].$ext), 0644) or die('714');
      
        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.
        • 11798
        • 43 Posts
        Quote from: goldsky at Apr 16, 2010, 01:44 AM

        I found a bug around line 714 of file: e2g.module.class.php
        <?php //highlighting
        @chmod('../'.$gdir.utf8_decode($_POST['filename']), 0644) or die('683');
        


        Please change to be like this
        <?php //highlighting
        @chmod('../'.$gdir.utf8_decode($_POST['newfilename'].$ext), 0644) or die('714');
        


        Thanks, I will change that for my installation!
          • 11798
          • 43 Posts
          Hi there,

          somehow, I have a weird effect here: No matter if I use Highslide or Fancybox or a different thumbnail viewer from the config, it works good and fast with Firefox but extremely slow with IE and Opera.
          Being on the Fancybox-project site, there is no similar problem with IE.
          Additional info: The snippet call is uncached. My logs don’t show any errors.

          It would be great, if anybody could test that as well. Thanks.



            • 11055 ☆ A M B ☆
            • 3,112 Posts
            Replace all of these:

            • the lib/ libraries with this libs.zip
            • the lib’s config under includes
            Please, use the ZIP above. They are included already.

            Anyway,
            this is my test site: http://arslantic.co.id/evo/
              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.
              • 11798
              • 43 Posts
              Thanks for your help, but it did not fix the problem.

              I don’t know, if we have some caching issues here or what the reason is. It takes up to 20 seconds to resize an image from one of the thumbs with IE8 and Opera, 2-3 seconds with FF. This also happens on your sites (by the way: well done http://sejarah-gpi.org/ smiley )

              If you are on the project sites, e.g. on http://randomous.com/floatbox/demo it works well with Opera and IE.
              Probably, I should try to use the latest versions.

              Greetings
                • 4620
                • 12 Posts
                Hi everyone!

                I’m reposting my problem, I missed the right forum the first time..


                I installed the module ’Easy 2 Gallery 1.4.0-beta 3’ sucessfully and it’s working fine.
                Now I’m trying to integrate galleriffic as Temus suggests in this post for E2G 1.3.5 but I can’t manage to get it working:
                http://modxcms.com/forums/index.php/topic,44591.msg265378.html#msg265378

                Can anyone help me with this?
                Or sharing any other solution to show thumb + images in the same page?

                Thanks!
                Carina
                  • 11055 ☆ A M B ☆
                  • 3,112 Posts
                  @Hardoman,
                  I’ll try to find the problem.
                  Anyway, thx for your comment. laugh

                  @Carins,
                  I’ll make up one for you and others who want this.
                  The 1.4.0 works different way.
                  Give me a day.
                    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
                    Hi, quick question: Has anyone tested the capacity of the gallery? What’s the maximum limit that the gallery or MODx can deal with?

                      • 11055 ☆ A M B ☆
                      • 3,112 Posts
                      Quote from: moniarde at Apr 20, 2010, 02:46 AM

                      Hi, quick question: Has anyone tested the capacity of the gallery? What’s the maximum limit that the gallery or MODx can deal with?
                      Depends on server’s settings (php’s limitation, RAM/clock speed for file processing).

                      My last project is handling 350-400 MB, 1900 files, 258 folders.
                      I’m not saying it’s enough, since my client is expecting that site should handle 5 times more of the current size.
                      The database is still adding up.
                      So, the test has not yet got its limit for now on.
                      I don’t know about other people.
                        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.