We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8790
    • 526 Posts
    hi,

    When testing this, I found that it was still not using the sortorder column, but that it was sorting on the ID of the image. To "fix" this, specify "sortorder" in the sortBy parameter or change the default setting in the snippet (in the manager).

    These fixes applied to a clients site fixed it there also.
    can you explain this please ?

    I don’t understand what have to be done

    Thank you
      Schtroumpf Grognon - Grouchy Smurf
      ---------------------------------
      Faites pas attention.. - Don't pay attention
      http://www.dzi-neo.net
      • 9994
      • 133 Posts
      I’m useing this gallery, had no problems what so ever.

      But after uploading an album i was starting to get errors, see image attached.
      Fist 10 images go ok, but number 11 and 12 gets stuck, i see number 21 and 22 gets stuck too, and prolly 31 and 32 also. These images stays on 100% and after some minutes it says, http error.

      I’m working with modx 1.0.4 with apache hosting and PHP Version 5.2.12 - GD Support enabled - GD Version bundled (2.0.34 compatible) - Mysql Client API version 5.0.77

      Also deleting a complete album would be handy if its possible.
        Best CMS eva!
        • 18373 ☆ A M B ☆
        • 3,141 Posts
        Quote from: elz64 at Jun 17, 2010, 03:05 AM

        hi,

        can you explain this please ?

        I don’t understand what have to be done

        Thank you


        Can you clarify what you want to do? :p


        Quote from: fourroses at Jun 17, 2010, 06:34 AM

        I’m useing this gallery, had no problems what so ever.

        But after uploading an album i was starting to get errors, see image attached.
        Fist 10 images go ok, but number 11 and 12 gets stuck, i see number 21 and 22 gets stuck too, and prolly 31 and 32 also. These images stays on 100% and after some minutes it says, http error.

        I’m working with modx 1.0.4 with apache hosting and PHP Version 5.2.12 - GD Support enabled - GD Version bundled (2.0.34 compatible) - Mysql Client API version 5.0.77

        Also deleting a complete album would be handy if its possible.

        I’d advise you to check out the uploadify forum as that sounds like something with the uploader. http://www.uploadify.com/forum/
          Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

          Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
          • 32678
          • 290 Posts
          I have uploaded 9 images but only 4 show up within the module. I can see the images within the appropriate folder. Also, I resized the the max dimensions in config (lowering the value to 500) with no change. Here’s the call I placed -- just want to test this out: [[EvoGallery? &display=`images` &type=`jquery-cycle`]]

          I’m running MODx 1.0.4 internally on MAMP and PHP 5.2.13.

          What is the issue?

            • 18373 ☆ A M B ☆
            • 3,141 Posts
            Quote from: wpicotte at Jun 17, 2010, 06:37 PM

            I have uploaded 9 images but only 4 show up within the module. I can see the images within the appropriate folder. Also, I resized the the max dimensions in config (lowering the value to 500) with no change. Here’s the call I placed -- just want to test this out: [[EvoGallery? &display=`images` &type=`jquery-cycle`]]

            I’m running MODx 1.0.4 internally on MAMP and PHP 5.2.13.

            What is the issue?

            Changing the config file only affects images being uploaded after that (as that’s when the images are being created).

            You posted earlier in this topic about problems with uploading - could you explain what those problems were? Probably half of the images not showing up has to do with some upload issues (files being uploaded, but not being added to the database)
              Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

              Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
              • 32678
              • 290 Posts
              Changing the config file only affects images being uploaded after that (as that’s when the images are being created).

              OK, I’ll have to delete everything and try again.

              You posted earlier in this topic about problems with uploading - could you explain what those problems were? Probably half of the images not showing up has to do with some upload issues (files being uploaded, but not being added to the database)

              The uploader seems to hang during the process. I’ll clear the queue, try again, and get message about replacing the existing file. As mentioned, I see the files in the appropriate folder. I checked the dB table and it contains four records, presumably corresponding the 4 of 9 images I can see in the module...
                • 8790
                • 526 Posts
                Hi,

                How can I set a height in pixel for the thumbs ??

                (max size seams to be for width and it’s a problem to force thumbs to bedisplayed into a sized div with while img have css size properties (quality degraded)

                Thank you
                  Schtroumpf Grognon - Grouchy Smurf
                  ---------------------------------
                  Faites pas attention.. - Don't pay attention
                  http://www.dzi-neo.net
                  • 18373 ☆ A M B ☆
                  • 3,141 Posts
                  I’d assume max size in the config file is max width or height, depending on which one is bigger.

                  To trim thumbs to a square, try looking into CSS’s clip() property.... http://www.seifi.org/css/creating-thumbnails-using-the-css-clip-property.html
                    Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

                    Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
                    • 13622
                    • 74 Posts
                    Hi,

                    Does anyone know of a way to get the gallery id within EvoGallery? There’s no placeholder for the gallery id that could be used inside an item template? What about using PHx to strip the [+images_dir+] so only the ID is left?

                    If you need more context:
                    I have a single page portfolio website. Within MODx there is the homepage, and a container called "Projects." With in projects are several pages for each project. I’m trying to use a combo of Ditto, EvoGallery & GetField to automatically grab the document title & a image TV with a manually generated thumbnail from the appropriate document within the "projects" container.

                    I can’t use [[GetField? &docid=`[*id*]` &field=`pagetitle`]] because it just returns the value of the homepage, where the ditto call is being made.

                    Here’s the setup if you need even more context:

                    The ditto call on the single portfolio page:
                    [!Ditto? &startID=`2` &tpl=`projectsTemplate` &orderBy=`ASC`!]


                    projectsTemplate:
                    <div class="example">
                    [[EvoGallery? &docId=`[+id+]` &display=`images` &type=`simple-list` &itemTpl=`projectGalleryItem` &itemTplFirst=`projectGalleryItemFirst` &sortBy=`sortorder`]]
                    </div>


                    projectGalleryItemFirst:
                    <a href="[+images_dir+][+filename+]" title="[[GetField? &docid=`[*id*]` &field=`pagetitle`]]" class="sample" rel="mm"><img src="[+thumbs_dir+][+filename+]" alt=""/></a>


                    projectGalleryItem:
                    <a href="[+images_dir+][+filename+]" title="[+title+]" class="sample" rel="mm"></a>


                    The purpose behind all this madness is so I can create my own thumbnail, and use the pagetitle field to automatically name & group photos, instead of having to fill in each field with Evo.

                    Thanks for your help!

                      • 26931
                      • 2,314 Posts
                      jasonimani,

                      i’m not 100% sure what you are trying to do ...maybe i’m wrong, but e.g. i call
                      [!EvoGallery? &display=`galleries` &docId=`3` &itemTpl=`galleryItem`!]
                      to grab an overview listing of all galleries within folder ID 3.
                      {{galleryItem}}
                      <div class="galleryoverview">
                      <a class="teaserimg" href="[~[+id+]~]">
                      <img src="[+phx:input=`[+images_dir+][+filename+]`:phpthumb=`&w=150&h=110&q=95`+]" alt="[+title+]" />
                      </a>
                      <p><strong>[+pagetitle+]</strong><br />
                      [+introtext+] <a class="teaserlink" href="[~[+id+]~]">zur Galerie</a></p>
                      </div>
                      see the screenshot for the result. j

                      // this works very much like a listing you would do with Ditto