We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    I am running 09 rev 6 but all I get is a blank screen on the front end when plugin is enabled. but also in the manager when I want to edit / create a document all i see in that frame is white (nothing is returned somehow)

    I installed it the way its written in the first post.

    I get no errors on screen or in the logs.

    What could be the problem? I had it with the rev 2 version so I update to rev6 but I have the same problem.

    Dimmy
      follow me on twitter: @dimmy01
      • 19164
      • 1,215 Posts
      Do you realy sure that all files in their places? It seems that there are no some files that required. You can remove all @ before require functions in  the plugin code and in the directResize.php - MODx must show errors in this case.

      New file simple_html_dom.php was added to includes folder in rev 5.
        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
        Quote from: Metaller at Feb 04, 2009, 06:51 AM

        Do you realy sure that all files in their places? It seems that there are no some files that required. You can remove all @ before require functions in the plugin code and in the directResize.php - MODx must show errors in this case.

        New file simple_html_dom.php was added to includes folder in rev 5.

        this file is not in SVN rev6 where can I get this file? (simple_html_dom.php)

        and yes I had a typo directResize instead of directresize
        and another problem is that the images are not cached somehow assets/images/.phpthumb_cache is empty
          follow me on twitter: @dimmy01
          • 19164
          • 1,215 Posts
          File is in SVN, look.

          By default, cache folder is /assets/snippets/phpthumb/cache/, you can change it in phpThumb.config.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]
            • 17499 ☆ A M B ☆
            • 872 Posts
            Take a look at http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/, what do you think about it? Is there a tiny possibility that you can switch over to that solution if it happen to be better ?
              • 19164
              • 1,215 Posts
              I don’t think that it is realy better than PHPThumb. It seems that it can simply resize images. PHPThumb abilities are better for many times: resizing, watermarking, many and many filters.
                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]
                • 17499 ☆ A M B ☆
                • 872 Posts
                Fair enough since i’m not the develloper of this snippet.

                Does phpthumb can crop the picture like Timthumb (just for information, in fact i’ve already did use phpthumb on real website but i don’t know if it can do it as simply as Timthumb <-- the crop thing ^^)
                  • 19164
                  • 1,215 Posts
                  Yes, phpThumb can crop images. DirectResize crops thumbs with default parameters.
                    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]
                    • 27749
                    • 53 Posts
                    Quote from: lossendae at Feb 09, 2009, 05:23 PM

                    Does phpthumb can crop the picture like Timthumb (just for information, in fact i’ve already did use phpthumb on real website but i don’t know if it can do it as simply as Timthumb <-- the crop thing ^^)

                    Hi,
                    you can use directresize + phpThumb + phx custom modifier. I just finished cooking this one:

                    <?php
                    // filename: thumb.phx.php
                    
                    	$sia = preg_match_all("/^((http|https|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+\.[^#?\s]+)(#[\w\-]+)?$/", $output, $matches, PREG_SET_ORDER);
                    	foreach ($matches as $val) {
                    	$sia = $val[6];
                    	}
                    
                    	$output = 'image.php?src=' . $output . '&' . $options . '&sia=' . $sia';
                    	return $output;
                    ?>
                    


                    You should be able to use all the parameters of phpThumb including croping etc..
                    i.e.: [*image_in_a_tv:thumb=`w=150`*]
                      • 19164
                      • 1,215 Posts
                      Hi. You can use all of PHPThumb parametes directly in DirectResize.

                      $dr_local["thumb_phpthumb_parms"]["config_name"]["phpthumb_parm_name"] = parm_value;


                      Example: $dr_local["thumb_phpthumb_parms"]["all"]["ra"] = 90; 

                      It will translated to PHPThumb parameter &ra=90

                      PHPThumb fltr parameter must be called as array:

                      $dr_local["big_phpthumb_parms"]["all"]["fltr"][] = "sep|50|A28065";
                      
                      $dr_local["big_phpthumb_parms"]["all"]["fltr"][] = "blur|3";


                      It will translated to &fltr[]=sep|50|A28065&fltr[]=blur|3

                        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]