We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18373 ☆ A M B ☆
    • 3,141 Posts
    I’ve yet to try out phpThumb... but I think the error is in how the file is specified in your phx call... you’ll want the whole path and file name included, and not just the file name cause then it will search your phpThumb folder.

    I think you should put the main phpthumb.php / image.php file in the root of your folder (make sure your snippet points there too), and then slightly modify the EvoGallery code to also return a placeholder which has the complete path to use in your phpThumb call.

    Put it in the assets/snippets/evogallery/classes/gallery.class.inc.php file, around line 205, as long as it is after the $item_phx declaration and before parsing the templates. Like so:

    $item_phx->setPHxVariable('image_withpath', $this->config['galleriesUrl'] . $row['content_id'] . '/' . $row['filename']);

    (note: untested)

    Then instead of using [+filename:phpthumb.... use [+image_withpath:phpthumb....
      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.
      • 8790
      • 526 Posts
      hi,

      Thank a lot!

      I did not had to deal with phpthumb.php moving to root dir, the point was actually a full image path was not managed.

      This new PL made it, and I suggest it should be part of the package.

      (I still do know why the Evo embedded phpthumb does not works, and now it’s time to see how to make the plugin for rte to works too)
        Schtroumpf Grognon - Grouchy Smurf
        ---------------------------------
        Faites pas attention.. - Don't pay attention
        http://www.dzi-neo.net
        • 25803 ☆ A M B ☆
        • 721 Posts
        This looks like an interesting module. Are there any examples of the various types on the front end? I’m using a call like this:

        [[EvoGallery? &docId=`[*id*]` &type=`simple-list`]]


        I can see that tpl.item.default.txt in the simple-list folder generates the thumbnails and I can use CSS to float the thumbnails beside each other.

        When clicked on however, we just see the image. I did a search for lightbox in the docs but the only match I get is the lightbox within the module.

        Is there a way to make the images show up in a lightbox in a similar manner to say slimbox (where we have the previous/next controls, as well as image caption and description?

        Is this where we need to use the @SCRIPT feature? Something only programmers would be able to do?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          You can use EvoGallery’s templating system to generate any structure you need, and thus you can use any gallery script you please. I’m rather fond of this one.

          http://www.google.co.il/search?hl=en&source=hp&q=jquery+galleries&cts=1278490623355&aq=f&aqi=&aql=&oq=&gs_rfai=
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 25803 ☆ A M B ☆
            • 721 Posts
            Right, I see. Very nice. Give you the basics, placeholders, templates that you can use or modify, and then you go to town using whichever lightbox or other gallery technology you wish. I went with Slimbox 2 and it works wonderfully. Great backend. Now to try to get the ManagerManager bit to function.
              • 25803 ☆ A M B ☆
              • 721 Posts
              Quote from: Mark at Jun 30, 2010, 06:28 AM

              Quote from: tambourine at Jun 30, 2010, 02:38 AM

              Please, give me another advise: is there possible to get width and height of the picture through placeholders?

              Not out of the box.... but here’s a fix to get that functionality:

              Can you give an example of how to use these as placeholders?
                • 18373 ☆ A M B ☆
                • 3,141 Posts
                Quote from: rx2 at Jul 07, 2010, 01:33 PM

                Quote from: Mark at Jun 30, 2010, 06:28 AM

                Quote from: tambourine at Jun 30, 2010, 02:38 AM

                Please, give me another advise: is there possible to get width and height of the picture through placeholders?

                Not out of the box.... but here’s a fix to get that functionality:

                Can you give an example of how to use these as placeholders?

                You’ll have to modify the snippet’s code, but then the [+width+] and [+height+] placeholders are available. They contain he width/height in pixels so you could use it like this:
                <img src="[+images_dir+][+filename+]" width="[+width+]" height="[+height+]" alt="[+title+]"></img>
                  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.
                  • 25803 ☆ A M B ☆
                  • 721 Posts
                  Quote from: Mark at Jul 08, 2010, 04:49 AM

                  Quote from: rx2 at Jul 07, 2010, 01:33 PM

                  Quote from: Mark at Jun 30, 2010, 06:28 AM

                  Quote from: tambourine at Jun 30, 2010, 02:38 AM

                  Please, give me another advise: is there possible to get width and height of the picture through placeholders?

                  Not out of the box.... but here’s a fix to get that functionality:

                  Can you give an example of how to use these as placeholders?

                  You’ll have to modify the snippet’s code, but then the [+width+] and [+height+] placeholders are available. They contain he width/height in pixels so you could use it like this:
                  <img src="[+images_dir+][+filename+]" width="[+width+]" height="[+height+]" alt="[+title+]"></img>


                  Right, thanks. Wasn’t thinking. So when you set &width=`something` etc., the placeholder picks that up from the snippet call.
                    • 36926
                    • 701 Posts
                    Hi, Anyone managed to sort galleries by a TV value? Doesn’t look like it’s been set up to do so.

                    Thanks

                    Ben
                      • 27444 ☆ A M B ☆
                      • 117 Posts
                      Is EvoGallery comaptible with the Revolution Release?
                        Steven James McLean
                        Tech Lead
                        springbokagency.com