We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18219
    • 826 Posts
    I have tested with this code:
    [!easy2? &gid=`3` &slideshow=`galleryview` &ss_config=`gallerylight` &ss_allowedratio=`all` !]
    


    I have this result:
    <noscript>
        <div class="jsdisabled">
            <img src="assets/modules/easy2/templates/default/icons/error.png" alt="" />
            <span>Please enable the javascript</span>
        </div>
    </noscript>
    <div id="e2g_wrapper">
    
    </div>
    


    If I turn on debug mode, I get the following error messages :

    Error 8: Undefined variable: php_errormsg
    File: D:\www\mx_test_evo\manager\processors\execute_module.processor.php Line:117

    If I go to the menu ’File’, I have these errors

    Chemin : Editer Easy 2/
    Visible : Visible
    Titre du dossier :
    Sommaire :
    Mot clé :
    Description :

    Error 8: Undefined index: _thumbnails
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\page.default.inc.php Line:134

    Error 8: Undefined index: _thumbnails
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\page.default.inc.php Line:135

    Error 8: Undefined index: _thumbnails
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\page.default.inc.php Line:136

    Error 8: Undefined index: _thumbnails
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\page.default.inc.php Line:136

    Error 2: opendir(../assets/images/gallery/test/1sptizberg1024.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/1sptizberg1024.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/20101007_1805.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/20101007_1805.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/Thumbs.db) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/Thumbs.db) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 8: Undefined index:
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:263

    Error 2: opendir(../assets/images/gallery/test/aquarium.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/aquarium.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/farniente.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/farniente.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/index.html) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/index.html) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 8: Undefined index:
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:263

    Error 2: opendir(../assets/images/gallery/chutemontmorency1280.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/chutemontmorency1280.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/chutemontmorency1280.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/index.html) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/index.html) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/index.html) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 8: Undefined index:
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:263

    Error 8: Undefined index: index.html
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\page.default.inc.php Line:276

    Error 8: Undefined index: index.html
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\page.default.inc.php Line:277

    Error 2: opendir(../assets/images/gallery/laguna_beach_resort_maldives.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/laguna_beach_resort_maldives.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/laguna_beach_resort_maldives.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302
    and

    Error 8: Use of undefined constant ZipArchive - assumed ’ZipArchive’
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\menu.bottom.inc.php Line:39

    If I look on the server, in directory ’image / gallery’, I have 2 images (1280x1024 px and 1024x768) to the root.
    I have a directory ’_thumbnails’ empty.
    and another directory ’test’ with 4 images :
    - 1sptizberg1024.jpg (1024x768 px)
    - 20101007_1805.jpg (1677x1125 px)
    - aquarium.jpg (1024x768 px)
    - and farniente.jpg (1024x768 px)
    These are the original images downloaded.
    No thumbnails, no image generated with the dimensions shown in the default configuration.

    If I change the settings for images: width = 600, height = 400.
    I download a new image in the directory ’test’
    I generated image:
    - pyramidemaya.jpg (533x400 px)
    No image appears on the site

    In the directory ’test’, I get the following errors:

    Error 8: Undefined variable: php_errormsg
    File: D:\www\mx_test_evo\manager\processors\execute_module.processor.php Line:117
    305 : ../assets/images/gallery/test/1sptizberg1024.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/1sptizberg1024.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/20101007_1805.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/20101007_1805.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/Thumbs.db is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/Thumbs.db is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/aquarium.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/aquarium.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/farniente.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/farniente.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/index.html is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/index.html is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/pyramidemaya.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/test/pyramidemaya.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/Thumbs.db is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/Thumbs.db is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/Thumbs.db is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/chutemontmorency1280.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/chutemontmorency1280.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/chutemontmorency1280.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/index.html is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/index.html is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/index.html is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/laguna_beach_resort_maldives.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/laguna_beach_resort_maldives.jpg is NOT a valid folder, probably a file.
    305 : ../assets/images/gallery/laguna_beach_resort_maldives.jpg is NOT a valid folder, probably a file.
    and

    Chemin : Editer Easy 2/test/
    Visible : Visible
    Titre du dossier : Test slideshow
    Sommaire : SlideShow
    Mot clé :
    Description :

    Error 2: opendir(../assets/images/gallery/test/1sptizberg1024.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/1sptizberg1024.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/1sptizberg1024.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/20101007_1805.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/20101007_1805.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/20101007_1805.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/Thumbs.db) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/Thumbs.db) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/Thumbs.db) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 8: Undefined index:
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:263

    Error 8: Undefined index: Thumbs.db
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\page.default.inc.php Line:276

    Error 8: Undefined index: Thumbs.db
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\page.default.inc.php Line:277

    Error 2: opendir(../assets/images/gallery/test/aquarium.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/aquarium.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/aquarium.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/farniente.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/farniente.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/farniente.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/index.html) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/index.html) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/index.html) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 8: Undefined index:
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:263

    Error 8: Undefined index: index.html
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\page.default.inc.php Line:276

    Error 8: Undefined index: index.html
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\page.default.inc.php Line:277

    Error 2: opendir(../assets/images/gallery/test/pyramidemaya.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/pyramidemaya.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302

    Error 2: opendir(../assets/images/gallery/test/pyramidemaya.jpg) [function.opendir]: failed to open dir: No error
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\classes\e2g.public.class.php Line:302
    and

    Error 8: Use of undefined constant ZipArchive - assumed ’ZipArchive’
    File: D:\www\mx_test_evo\assets\modules\easy2\includes\tpl\menu.bottom.inc.php Line:39
    What do you think?

      Marc
      I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      You can ignore them all.
      The script does several tests against files and dirs, by running converted functions, like is_dir(filename) or is_file(dirname), so the script can open a folder even with a dot like an extension.
      Of course PHP will notice the error.

      But I’m curious about no picture, so let’s turn the debug off.
      Have you tried another kind of slideshow?
        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.
        • 18219
        • 826 Posts
        The debug is off.

        When i use this code
        [!easy2? &gid=`3` !]

        I see images on my site.

        When I change my code:
        [!easy2? &gid=`3` &slideshow=`smoothgallery` !]
        or another slideshow (for example)
        [!easy2? &gid=`3` &slideshow=`galleriffic` &ss_config=`example-1` !]
        I don’t have images.
          Marc
          I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
          • 11186
          • 38 Posts
          added a new field in the db named ’bigurl’ in easy2_files

          in e2g.module.class.php

          inserted new lines after 1900,3460,3932 and added:

          . ', bigurl=\'' . mysql_real_escape_string(htmlspecialchars($post['bigurl'][$i])) . '\''



          in e2g.snippet.class.php

          inserted new lines after 1890,1944,1996 and added:

          $_ssFile['bigurl'][] = $fetch['bigurl'];


          inserted a new line after 2098 and added:

          $l['bigurl'][] = $fetch['bigurl'];



          in english.inc.php added:

          'bigurl' => 'Big URL',



          in page.edit_file.inc.php

          inserted a new line after 67 and added:

          <tr>
          <td><b><?php echo $lng['bigurl']; ?></b></td>
          <td valign="top"><b>:</b></td>
          <td><input name="bigurl" type="text" value="<?php echo $row['bigurl']; ?>" size="95" /></td>
          </tr>



          in pane.upload.inc.php

          inserted a new line after 63 and added:

          <tr>
          <td><b><?php echo $lng['bigurl']; ?> :</b></td>
          <td><input name="bigurl[]" type="text" size="95" /></td>
          </tr>


          then in my slideshow index called the new field in the imageElement output like so:

          <a href="' . $_ssFile['bigurl'][$i] . '" title="' . $_ssFile['title'][$i] . '" class="open"></a>



          Now I can alter the big image link to whatever I want. Either an internal resource or external link.

          @goldsky It wasn’t so much that I needed to link the image to a resource as it was that I needed to change the url of the big image link. I played around with the quill snippet trying to populate a drop down with resources so you could link a resource. I couldn’t get it to work, but this isn’t what I really needed anyway. I needed to be able to change the big image link to ’any’ url, internal or external. Thank you very much for pointing out the functions, that led me right to it.
            • 11186
            • 38 Posts
            Here’s a quick modification to the old maxigallery managermanager backend widget to work with e2g. I don’t like the iframe either but it is a bit more convenient than switching back and forth from edit mode to the e2g manager.

            - create a folder named ’e2g_backend_manager’ in assets/plugins/managermanager/widgets/

            - save the following code as a file named ’e2g_backend_manager.php’ and drop it in the folder.

            <?php
            
            //---------------------------------------------------------------------------------
            // mm_widget_e2g_backend_manager 
            //--------------------------------------------------------------------------------- 
            
            function mm_widget_e2g_backend_manager($actid='', $modid='',$docid='', $title = '', $roles='', $templates='') {
                    
                    global $modx, $id, $content, $manager_theme;
                    $e = &$modx->Event;
                    
                    echo $iid;
                    if (useThisRule($roles, $templates)){
                            
                            $title = empty($title) ? "Gallery" : $title;
            
                    if($id != 0){
                   mm_createTab($title, 'e2gmanager', '', '', '<iframe id="e2gmanager" src="'.$modx->config['site_url'].'/manager/index.php?a='.$actid.'&id='.$modid.'&e2gpg='.$docid.'" height="500" width="100%" scrolling="yes" frameborder="0"></iframe>');
                    }
                    else
                    {
                   mm_createTab($title, 'e2gmanager', '', '', 'To use this Tab you need to save and re-open this document');}        
                    }
                    $e->output($output . "\n");
            }
            
            ?>



            $actid = action id
            $modid = module id
            $docid = default landing page for the e2g manager display. I have mine set to the ’files’ page instead of the dashboard.
            $title = the managermanager tab name.
            $roles = roles that can see the tab
            $templates = templates that display the tab

            then add the managermanager rule and adjust accordingly.

            mm_widget_e2g_backend_manager('actid','modid','docid','title', 'roles', 'templates');


            Hope this helps someone.
              • 13137
              • 204 Posts
              Quote from: grabenfub at Oct 27, 2010, 07:00 AM

              Here’s a quick modification to the old maxigallery managermanager backend widget to work with e2g.

              Interesting, I will definitely be checking this out. Nice job. Thanks
                • 18219
                • 826 Posts
                @goldsky
                in e2g.snippet.class.php
                modify line 2158:
                <div class="' . $e2gWrapper . '">


                This will display several gallery on one page.
                  Marc
                  I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
                  • 18219
                  • 826 Posts
                  For my problem to show slideshow, I find some errors:
                  In e2g.snippet.class.php
                  replaced lines 1866, 1977
                  ( $ssLimit == 'none' ? '' : 'LIMIT 0,' . $ssLimit . ' ' )

                  with
                  ( $ssLimit == 'none'||$ssLimit == 'all' ? '' : 'LIMIT 0,' . $ssLimit . ' ' )

                  replaced
                  $ssW
                  with
                  $ss_w
                  replaced
                  $ssH
                  with
                  $ss_h
                  add line after 2024
                  $count = count($_ssfile['src']);

                  replaced lines 2161
                  $output .= $ssDisplay;

                  with
                  $output .= $ss_display;

                  So, I get the structure of the slideshow
                  But I still have the problem to display the url of the images and attributes

                    Marc
                    I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
                    • 18219
                    • 826 Posts
                    If I replace:
                    $_ssFile
                    with
                    $_ssfile

                    I get the right structure of the gallery.
                    The gallery still does not appear but the css file that is in question.
                      Marc
                      I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
                      • 18219
                      • 826 Posts
                      @goldsky
                      If I compare files version of E2G 1.0 rc1 with that of E2G 1.0 rc3, I am trying to remove changes.
                      Have you tested your code before posting the package?
                      - Slideshow files must be present in 2 places : in /libs/slideshows... and /modules/easy2/slideshows. We must choose
                      - The parameters chosen for the image ratios filter all images.I have put the max size to 1.5 to see the pictures in the gallery structure. But I still do not understand why the slideshow does not appear.

                      I’m not here today, I will resume work in the evening
                        Marc
                        I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink