We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46526
    • 21 Posts
    Quote from: fourroses666 at Feb 06, 2014, 03:53 PM
    Quote from: haki1986 at Feb 06, 2014, 11:17 AM

    <img src="[[phpthumb? &input=`[+img1+]` &options=`w=250,h=140,zc=C`]]" alt="">

    needs to be: zc=1
    but it probably doesn't solve the problem, use: &input=`[+images_dir+][+filename+]`

    [!EvoGallery? &docId=`[*id*]` &display=`images` &type=`simple-list` &tpl=`fotoboek-ul` &itemTpl=`fotoboek-li`!]

    <li><a href="[+images_dir+][+filename+]" class="fancybox-thumbs" title="[+title+]" data-fancybox-group="thumb"><img class="roundedborder" src="[[phpthumb? &input=`[+images_dir+][+filename+]` &options=`w=85,h=85,zc=1,q=85`]]" alt=""></a></li>

    <ul>
    [+items+]
    </ul>
    <div style="clear:both;"></div>


    I try create EvoGallery chunk like this:

    <img src="[[phpthumb? &input=`[+images_dir+][+filename+]` &options=`w=85,h=85,zc=1,q=85`]]">

    But still doesnt work... it looks like [+images_dir+][+filename+] cant be called inside [[phptumb? ]] :/
    Does enyone can test it??
    U can check here in my example: http://kulczykstudio.pl/eti/test.html

    template code:

    [[EvoGallery? &docId=`[*id*]` &itemTpl=`evo_test`]]

    chunk evo_test code:
    <img src="[[phpthumb? &input=`[+images_dir+][+filename+]` &options=`w=85,h=85,zc=1,q=45`]]" alt="">

    phpthumb will create noimage: 85x85-noimage.fd4.jpg [ed. note: haki1986 last edited this post 12 years, 7 months ago.]
      • 7662 ☆ A M B ☆
      • 276 Posts
      for test write chunk like this:

      <img src="[[phpthumb? &input=`[+images_dir+][+filename+]` &options=`w=85,h=85,zc=1,q=45`]]" alt="">
      <img src="[+images_dir+][+filename+]" alt="">
      


      then we can see where the problems
        http://modx.im - Russian community
        http://extras.evolution-cms.com - Repository for Evolution
        • 46526
        • 21 Posts
        Quote from: dmi3y at Feb 07, 2014, 05:26 AM
        for test write chunk like this:

        <img src="[[phpthumb? &input=`[+images_dir+][+filename+]` &options=`w=85,h=85,zc=1,q=45`]]" alt="">
        <img src="[+images_dir+][+filename+]" alt="">
        


        then we can see where the problems

        Check this: http://kulczykstudio.pl/eti/test.html

        <img src="[[phpthumb... <-- doesnt work
        <img src="[+images_dir+][+filename+]... <--- works ok, but its not a thumb that i want to create :\
          • 7662 ☆ A M B ☆
          • 276 Posts
          Quote from: haki1986 at Feb 07, 2014, 05:37 AM
          Quote from: dmi3y at Feb 07, 2014, 05:26 AM
          for test write chunk like this:

          <img src="[[phpthumb? &input=`[+images_dir+][+filename+]` &options=`w=85,h=85,zc=1,q=45`]]" alt="">
          <img src="[+images_dir+][+filename+]" alt="">
          


          then we can see where the problems

          Check this: http://kulczykstudio.pl/eti/test.html



          update phpthumb in one my site all work correct
          
          	[[EvoGallery? &display=`images` &docId=`[*id*]` &itemTpl=`gallery_list_one_item` &limit=`1` &includeAssets=`0` &sortBy=`sortorder`]]
          
          <li><a id="largeImageSrc" style="display:block;"><img id="largeImage" src="[[phpthumb? &input=`[+images_dir+][+filename+]` &options=`w=480,h=350,zc=1`]]" alt="[+title+]" /></a></li>
          
          
            http://modx.im - Russian community
            http://extras.evolution-cms.com - Repository for Evolution
            • 7662 ☆ A M B ☆
            • 276 Posts
            incorrect path for images

            your site in subfolder?
              http://modx.im - Russian community
              http://extras.evolution-cms.com - Repository for Evolution
              • 23610
              • 37 Posts
              Quote from: haki1986 at Feb 07, 2014, 05:37 AM


              Check this: http://kulczykstudio.pl/eti/test.html

              Maybe "/eti/" in filepath is the issue here?
              Try this for testing:
              <img src="[[phpthumb? &input=`assets/galleries/81/preview.png` &options=`w=85,h=85,zc=1,q=45`]]" alt="">
              

              Does it work? I'm pretty sure its a path thing. If not here then somewhere else.
                • 46526
                • 21 Posts
                Quote from: dmi3y at Feb 07, 2014, 05:53 AM
                Quote from: haki1986 at Feb 07, 2014, 05:37 AM
                Quote from: dmi3y at Feb 07, 2014, 05:26 AM
                for test write chunk like this:

                <img src="[[phpthumb? &input=`[+images_dir+][+filename+]` &options=`w=85,h=85,zc=1,q=45`]]" alt="">
                <img src="[+images_dir+][+filename+]" alt="">
                


                then we can see where the problems

                Check this: http://kulczykstudio.pl/eti/test.html



                update phpthumb in one my site all work correct
                
                	[[EvoGallery? &display=`images` &docId=`[*id*]` &itemTpl=`gallery_list_one_item` &limit=`1` &includeAssets=`0` &sortBy=`sortorder`]]
                
                <li><a id="largeImageSrc" style="display:block;"><img id="largeImage" src="[[phpthumb? &input=`[+images_dir+][+filename+]` &options=`w=480,h=350,zc=1`]]" alt="[+title+]"></a></li>
                
                

                Still nothing: http://kulczykstudio.pl/eti/test.html

                but someone its weird... i write"mas" in title content uploaded images on EvoGallery module and they show me in html:

                <li><a id="largeImageSrc" style="display:block;"><img id="largeImage" src="assets/cache/images/assets/snippets/phpthumb/480x350-noimage.fac.jpg" alt="mas" /></a></li>

                So alt="[+title+]" <-- works but [+images_dir+][+filename+] dont :/

                  • 7662 ☆ A M B ☆
                  • 276 Posts
                  Quote from: pmfx at Feb 07, 2014, 05:59 AM
                  Quote from: haki1986 at Feb 07, 2014, 05:37 AM


                  Check this: http://kulczykstudio.pl/eti/test.html

                  Maybe "/eti/" in filepath is the issue here?
                  Try this for testing:
                  <img src="[[phpthumb? &input=`assets/galleries/81/preview.png` &options=`w=85,h=85,zc=1,q=45`]]" alt="">
                  

                  Does it work? I'm pretty sure its a path thing. If not here then somewhere else.


                  yes trouble with /eti/

                  need fix EvoGallery

                  its not trouble phpthumb

                    http://modx.im - Russian community
                    http://extras.evolution-cms.com - Repository for Evolution
                    • 46526
                    • 21 Posts
                    Quote from: dmi3y at Feb 07, 2014, 06:02 AM
                    Quote from: pmfx at Feb 07, 2014, 05:59 AM
                    Quote from: haki1986 at Feb 07, 2014, 05:37 AM


                    Check this: http://kulczykstudio.pl/eti/test.html

                    Maybe "/eti/" in filepath is the issue here?
                    Try this for testing:
                    <img src="[[phpthumb? &input=`assets/galleries/81/preview.png` &options=`w=85,h=85,zc=1,q=45`]]" alt="">
                    

                    Does it work? I'm pretty sure its a path thing. If not here then somewhere else.


                    yes trouble with /eti/

                    need fix EvoGallery

                    its not trouble phpthumb


                    So which version of EvoGallery i shall use in MODX Evo 1.0.12 ?
                    http://modx.com/extras/package/evogallery <-- this doesnt work on 1.0.12 :/

                    /* EvoGallery */
                    $params['modulePath'] = $modx->config['base_path'].'assets/modules/evogallery/'; <--- the ['base_path'] is /eti/;
                      • 23610
                      • 37 Posts
                      Quote from: haki1986 at Feb 07, 2014, 06:11 AM
                      So which version of EvoGallery i shall use in MODX Evo 1.0.12 ?
                      I think that there is nothing wrong with EvoGallery.
                      Check your system settings, base_path, reset it.