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
    Is image.php in site root?

    Attachment is 1st post contained all files that needed to work. SVN on google code contains only plugin files without phpThumb or image.php
      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]
      • 27437
      • 49 Posts
      Hi, yes image.php is in root and phpthumb in snippets...

      in htaccess i use

      RewriteBase /Test_CMS

      I need it to test local in a folder called ’Test_CMS’

      could that be a problem?

      with phpthumb config??

      maybe with this line :
      $PHPTHUMB_CONFIG[’document_root’] = realpath((getenv(’DOCUMENT_ROOT’) && ereg(’^’.preg_quote(realpath(getenv(’DOCUMENT_ROOT’))), realpath(__FILE__))) ? getenv(’DOCUMENT_ROOT’) : str_replace(dirname(@$_SERVER[’PHP_SELF’]), ’’, str_replace(DIRECTORY_SEPARATOR, ’/’, dirname(__FILE__))));

        • 19164
        • 1,215 Posts
        Not sure that problem is realy in phpThumb. Is plugin generate any code or nothing happens and source code is not changed?

        @Stefan Are any of standart configuration works for you? If yes - try to replace content of standart file with your own code.
          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]
          • 27437
          • 49 Posts
          Hi metaller,

          i really appreciate your help.

          It doesnt generate any code. I also tried to change user friendly links to remove the rewriteBase. But no difference.

          Can you confirm how i should use it within the tinymce editor???

          I think i need to add a photo with the image button in tinymce > then i change the height and width > save

          then it should work isn’t it?
            • 19164
            • 1,215 Posts
            Yes, plugin must work in editor (TinyMCE or FCKEditor). May be plugin was not correctly installed in your case. But problem is not is modrewrite or phpThumb - plugin even not works.

            I reread your first post.... But nothing happens.. My source code doesn’s show a link.

            I must explain how plugin works. It not changed any source code in your documents, It’s only generate new code on the site frontend or in manager editor in visual mode. But not change anything in source.

            For exmple, if you have

            <img src="assets/images/sample.jpg" width="100" height="100" />


            in source of your document it will be something like this
            <a class="thickbox" title="" href="images/12735ef262a71cfb4b1de760d2f66482/sample.jpg">
            	<img width="250" src="images/c0be78dc0fbeea794dc62cb8701f00c2/thumb_sample.jpg"/>
            </a>
            

            on the frontend and like

            http://modx/image.php?&src=assets/images/sample.jpg&w=100&f=jpeg&q=75&sia=thumb_sample.jpg&hash=f5eec411487e0b43698be56948e72fc7


            in the editor (small resampled image will be shown instead original big)

            But when document will be saved, in source code still be

            <img src="assets/images/sample.jpg" width="100" height="100" />

              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]
              • 4414
              • 63 Posts
              Hi Metaller,

              I would like to ask if there is a way to remove or change the prefix thumb_ that gets attached to every thumbnail?

              <img class="img_container_left" width="279" height="178" alt="test" src="images/d2e2226a2d742a6fe3e474f4d0376cba/thumb_test.jpeg" title="test"/>

              Best regards,

              Stefan
                • 19164
                • 1,215 Posts
                Hi.

                It’s hardcoded in directResize.php. You can find and remove or change $prefix = "thumb_";
                  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]
                  • 4414
                  • 63 Posts
                  Hi Metaller,

                  Thanks a lot for your help!

                  Best regards,

                  Stefan
                    • 4414
                    • 63 Posts
                    Hi Metaller,

                    I would like to know if the current version of DirectResize also works with the newly released beta version of MODx Revolution?

                    DirectResize is such a magnificent tool for resizing pictures that I want to make sure it will be available in MODx Revolution, too.

                    Best regards,

                    Stefan
                      • 19164
                      • 1,215 Posts
                      Hello. I will think about that later when at least RC of Revolution will be released.
                        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]