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
    Great! Thanks.
      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]
      • 7455
      • 2,204 Posts
      I like an extra placeholder for the config files, is it posible to get a [+dr.documentId+] kind of placeholder? that holds the id from the page the image is on?
      would be great for use in ditto that way a thumbnail could have a link in it that goes to the page the image belogs to, in Ditto I cold do <a href="[~[+id+]~]" >[[directResize snippetcall]]</a> but that does ofcourse not worl because the template in in the config already has an <a>.
      I made a new one using jquery hover thing the config tpl looks like this:

      $tpl = <<<HTML
      <a class="load-local" href="#" rel="#image[+dr.originalFilenameNoext+]">
      <img src="[+dr.thumbPath+]" width="[+dr.thumbWidth+]" height="[+dr.thumbHeight+]" alt="[*pagetitle*]"/></a>
      <p style="display:none;" id="image[+dr.originalFilenameNoext+]"><img src='[+dr.bigPath+]' alt="" title= ""/></p>
      HTML;
      


      and would be great if It could be like this:
      $tpl = <<<HTML
      <a class="load-local" href="[~[+dr.documentId+]~]" rel="#image[+dr.originalFilenameNoext+]">
      <img src="[+dr.thumbPath+]" width="[+dr.thumbWidth+]" height="[+dr.thumbHeight+]" alt="[*pagetitle*]"/></a>
      <p style="display:none;" id="image[+dr.originalFilenameNoext+]"><img src=’[+dr.bigPath+]’ alt="" title= ""/></p>
      HTML;
        follow me on twitter: @dimmy01
        • 19164
        • 1,215 Posts
        Did you try to use [*id*] in the $tpl?
          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]
          • 7455
          • 2,204 Posts
          the problem is that its called on another page using ditto
          so [*id*] would result in a link to the same page that the ditto call is on
            follow me on twitter: @dimmy01
            • 19164
            • 1,215 Posts
            If your images is in TV, you can use this:

            Ditto tpl

            <a class="load-local" href="[~[+id+]~]" rel="#image[+id+]">
            <img src="[+TV_image+]" width="100" height="100" alt="[+pagetitle+]" drthumbonly /></a>
            <p style="display:none;" id="image[+id+]"><img src=’[+TV_image+]’  width="600" height="400" alt="" title= "" drthumbonly /></p>

            TV_image is a TV with image path.
              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]
              • 7455
              • 2,204 Posts
              ok but its not only the thumb
              it like this now:
              http://choco.1-vision.eu/bonbons-geschenken/valentino-ballotins.html

              the hover image needs to be there, all I want is that I can also click the thumb for the info page

              Dimmy
                follow me on twitter: @dimmy01
                • 19164
                • 1,215 Posts
                Not sure that understand. Is ...href="[~[+id+]~]" ... not working?
                  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]
                  • 7455
                  • 2,204 Posts
                  in the config of directresize?

                  no if I do that the resulting link wil be this:

                  domainnaim.tld/[~~]

                  strange is it not?

                  but is it hard to create a id placeholder for dr ?
                    follow me on twitter: @dimmy01
                    • 19164
                    • 1,215 Posts
                    In the ditto call. All my previous code is for ditto.

                    It is not hard to add new placeholders, but I want to complete new version with old functionality based on phpThumb before any improvements.
                      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]
                      • 29525
                      • 388 Posts
                      I’m stuck.

                      I have used DirectResize on a previous project. Works great! Love it!

                      Now I’m working on a new project on my wamp server and I can’t seem to get it to work.

                      Plugin is enabled
                      Configuration settings seem right
                      &config=Configuration;string;highslide &clearCache=Cache clear mode;list;0,1,2;0

                      System Events are checked
                      Using TinyMCE
                      Insert image into editor with size attributes set (smaller than original)
                      Save the page

                      Image appears in thumbnail size on the front-end page but there are no links

                      This is what is generated:

                      In the head:

                      <link media="screen" type="text/css" href="assets/plugins/directresize/libs/highslide/style.css" rel="stylesheet">
                      </link>
                      <script src="assets/plugins/directresize/libs/highslide/highslide.packed.js" type="text/javascript">
                      </script>
                      <script src="assets/plugins/directresize/lang/english.highslide.js" type="text/javascript">
                      </script>
                      <script type="text/javascript">


                      In the body:

                      <div class="image">
                      <img height="68" width="102" src="assets/drgalleries/49/thumb_filename.jpg"/>



                      MODX 0.9.6.1p2
                      PHP 5.2.5
                      Apache 2.2.6
                      SQL 5.0.45

                      I’m not sure what to look for here. Any help would be great!

                      Thank you!

                      Terry
                        www.terrybarthdesign.com