We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12941
    • 87 Posts
    I’m attempting to use this, also with Evolution 1.0, and having some difficulty. Is there some incompatibility with the new version of ModX? I’d appreciate it if someone could look into it.

    The following is the code I am using, which worked previously in 0.9.6.3.

    <img src="[[MiniPhoto? &file=`[*news photo*]` &width=`145` &height=`145` &quality=`93` &dir=`mini` &isclip=`1` &interlace=`0` &bgcolor=`ffffff`]]" class="img" />


    [*news photo*] being my image TV.

    I am not even getting the "no photo" image to show up.
      • 6998
      • 25 Posts
      I just switched to MaxiGallery instead, turns out it was better for what I was doing anyway.

      Never solved my problem with MiniPhoto. huh

      Best of luck!
        • 25321
        • 18 Posts
        Quote from: delorean88 at Sep 06, 2009, 02:46 AM

        Hey, all I can get is the "no photo" image. I’m using a TV for the image and I uploaded one in the TV slot, but it won’t show. Do you need to/need to not use the image widget? Is it a problem with calling the snippet from a Chunk?

        When I put the value of the TV directly into the snippet, it works, but when I use [*tvname*] in the snippet, I get the "no photo" image. Suggestions?

        Thanks for any help, I’m new.

        PS- I’m trying to use this with slimbox, so if anyone has suggestions for the easiest setup, let me know. smiley

        PPS- I’m using MODx 1.0

        Hi!

        Perhaps the problem in the parser MODx 1.0.
        The order of parsing text parser MODx 1.0 is:
        [*Parameter*]
        [[Snippet]]
        [!Snippet!]
        [(Setting)]
        [+PlaceHolder+]
        {{Chunk}}

        If the snippet is called from the contents of the document, as the parameter passed is not value of parameter, but the string "[*parameter*]".
        This applies to any snippet, takes as an argument [*parameter*].

        The solution: create a chunk "myphoto", to put into Chunk call Snippet [[MiniPhoto? &file=`...` ...]].
        Use a chunk {{myphoto}}, where you want to display your photo.

        --
        Translated Google smiley
          • 25321
          • 18 Posts
          Quote from: ingero at Sep 15, 2009, 06:29 PM

          I’m attempting to use this, also with Evolution 1.0, and having some difficulty. Is there some incompatibility with the new version of ModX? I’d appreciate it if someone could look into it.

          The following is the code I am using, which worked previously in 0.9.6.3.

          <img src="[[MiniPhoto? &file=`[*news photo*]` &width=`145` &height=`145` &quality=`93` &dir=`mini` &isclip=`1` &interlace=`0` &bgcolor=`ffffff`]]" class="img" />


          [*news photo*] being my image TV.

          I am not even getting the "no photo" image to show up.

          You may also insert a snippet call in chunk
            • 12941
            • 87 Posts
            I’m getting the nophoto image to show up by putting the snippet call in a chunk and calling that in my template, but there is an image to display, and it’s not displaying it.

            Here’s my chunk contents:

            [[MiniPhoto? &file=`[*team image*]` &width=`440` &height=`330` &quality=`93` &dir=`mini` &isclip=`1` &interlace=`0` &bgcolor=`ffffff`]]


            Here’s how I’m calling it from my template:

            <img src="{{team photo}}" alt="[*pagetitle*]" />


            Is that what you had in mind or did I misunderstand?

            OR, did you mean that the template should have:
            <img src="[[MiniPhoto? &file=`{{team photo}}` &width=`440` &height=`330` &quality=`93` &dir=`mini` &isclip=`1` &interlace=`0` &bgcolor=`ffffff`]] alt="[*pagetitle*]" />


            And the chunk should contain:
            [*team image*]


            ??
              • 12941
              • 87 Posts
              Nevermind, I seem to have figured this out. When I call it uncached, it seems to do the trick. However, if I’m using an uncached ditto call, and using miniphoto in my template, it works cached, so I’m not quite sure what the issue is, but if you’re having trouble try playing around with that. The extra chunk does not seem to be necessary, as I’m using it just fine without it. MiniPhoto is working with 1.0!

              I also wanted to point out that I was having some trouble with Parsing errors until I unchecked the cacheable box on the second tab while you’re editing a document.
                • 25321
                • 18 Posts
                Available new version MiniPhoto 1.3
                http://modxcms.com/extras/package/275

                Now you can use water marks.
                  • 15193
                  • 9 Posts
                  Hi!

                  Getting this error

                  "Fatal error: Function name must be a string in /home/ptcarr5/public_html/assets/snippets/miniphoto/miniphoto.inc.php on line 69"

                  "The image filename containig empty space like image 2.jpg will cause this.
                  Can it be fixed somehow without renaming the files." Wrong suspect.

                  Miniphoto isn’t supporting bmp images.



                    • 7810
                    • 26 Posts
                    Somehow when using this handy snippet on pages, their cache files gets read only and causes errors, like:
                    Warning: unlink(D:\Tinklapiai\xampp\htdocs\ab\assets\cache/docid_4.pageCache.php) [function.unlink]: Permission denied in D:\...\manager\processors\cache_sync.class.processor.php on line 67

                    when cleaning cache via manager, and
                    Warning: Cannot modify header information - headers already sent by (output started at D:\...\manager\processors\cache_sync.class.processor.php:67) in D:\...\manager\processors\save_htmlsnippet.processor.php on line 138

                    when saving a document.
                    It’s kinda frustrating. Any idea how to fix?
                      MODx is great! Thanks for great work!

                      Portfolio, mostly MODx: dbdizainas.lt
                      • 12941
                      • 87 Posts
                      Lucy, I’m not sure, I’m using 1.2. The 1.3 seems to not work properly when I use the fix from mac2000, which I find very useful.

                      Now, I have gotten this to work, except there’s something strange going on with the cache. If I refresh the page, then the images show up broken until I physically delete the photos from the server and let MiniPhoto recreate them. I have no idea why this is working.

                      I am using it with ditto and have tried making my Ditto calls cached and uncached. I’ve also tried making my MiniPhoto calls cached and uncached too.

                      Any ideas?