We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19164
    • 1,215 Posts
    This is an auto-generated support/comment thread for DirectResize.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    Its like Maxigallery but for single images.

    Fix with lost placeholders inside img tag after document saving

    0.9.0 beta with PHPThumb is here. Please, read this message
      DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

      Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

      [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
      • 19164
      • 1,215 Posts
      Sorry, i forgot to add empty drgalleries folder to archive. If you have no this folder, create it as subfolder in assets.
        DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

        Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

        [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
        • 32645
        • 377 Posts
        Is it possible to combine DirectResize with Template variables? If so, please give an example of how to do this.
          • 8883
          • 59 Posts
          [+phx:if=`[*docthumbnail*]`:is=``:then=``:else=`<img src="[*docthumbnail*]"  title="[+phx:if=`[*docthumbdescr*]:is=``:then=`[*menutitle*]`:else=`[*docthumbdescr*]`+]" alt="[+phx:if=`[*docthumbdescr*]:is=``:then=`[*menutitle*]`:else=`[*docthumbdescr*]`+]" align="left" width="180" class="drlightbox">`+]


          docthumbnail is a TV with type image.
          Image Widget is not used (thats why I insert "<img ....")
          Insert the code above in a chunk and use it in your template.
            • 32645
            • 377 Posts
            Thank you so much for this -- I actually got the thumbnailing to work with your plug-in!

            [+phx:if=`[+tv_vehicle_picture+]`:isnot=``:then=`<img src="[+tv_vehicle_picture+]" width="100" style="border:none;" />`+]
            


            Quick question -- how do you change the border colour produced by the plug-in? It is a dark grey colour.
              • 19164
              • 1,215 Posts
              Look for *.css in the assets\plugins\directresize\libs\your_config_name
                DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

                Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

                [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
                • 32645
                • 377 Posts
                Okay - thanks so much!
                  • 8883
                  • 59 Posts
                  I figured out that the Plugin havin problems with http://www.domain.de and http://domain.de
                  First one - no problems
                  Second (without www: the plugin does not create/show thumbs or the lightbox/slimbox/... link
                    • 19164
                    • 1,215 Posts
                    I need more information about this problem. domain.de is the domain where plugin installed or where located images processed by plugin.
                      DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

                      Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

                      [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
                      • 32645
                      • 377 Posts
                      I got the thumbnail working within a ditto template - but it totally ignores my Alt tag - and it puts in HTML code that is sometimes empty and so invalidates my page.

                      I’d like to change the HTML - I can do this within the config file - but the documentation seems to imply you can do it via chunks by setting up your own template.


                      Parameters
                      $tpl = Chunk name (defaulted to assets/plugins/ directresize/templates/lightboxv2.html

                      Placeholders
                      [+dr.alt+]

                      But I am confused as to how to do this - Am I right in thinking I create my own config file - or is it done via the ditto call?