We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    thank you for replying

    as to the resizing, does that mean I would set the parameters for the large image like this:
    $big_width = 400;
    $big_height = 400;

    as to the plugin itself, I’m having a really hard time to get it to work - where ever I add "drlightbox" most of the time, it just gets replace with a blank and I still have my large image - no links no nothing - this happens about 9 times out of 10 - sometimes it works but most of the time it doesn’t?!

    this is what I usually end up with: 
    <img alt="picture " class="right" src="assets/images/DSC00003.JPG" title="picture " />
    Please not the following: I’ve tried adding drlightbox to the alt and title tag - it looks that when you replacing the drlightbox text, you’re leaving a blank so I end up with something like this alt="text "

    could it be that I need to remove the sizes (width and height tag) that tinyMCE sets automatically in order to get this to work?

    hope to get this working and thank you in advance for your input.

    p.s. some other issues with large images: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16000 bytes) in path\assets\plugins\directresize\includes\Thumbnail.class.php on line 379
      • 19164
      • 1,215 Posts
      Oops, i forgot to add empty drgalleries folder to archive, sorry. I do it now.

      $big_width and $big_height is not set thumbnail sizes. It means that is original image is more than $big_width x $big_height - big image will be generated and reduced proportionately with sizes no more than $big_width x $big_height.

      If you are using any of default configuration file, all you need is to set width or height (or both) to your image tag. Its mandatory. i.e <img alt="picture " class="right" src="assets/images/DSC00003.JPG" width="100" height="200" /> - plugin is create thumb 100x200 and lightbox link.

      About fatal error - it seems that you are trying to use very big images from digital camera and php can’t to process it. It is a problem of you hosting configuration, not plugin.

      Sorry for my english, i trying to explain all qyickly w/o any translator.
        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]
        • 19889
        • 616 Posts
        doesn’t work for me - sorry.

        as soons as I have something like this
        <img class="right" height="80" src="assets/images/DSC00003.JPG" width="120" title="drlightbox" /> 
        , the plugin fails to work - if I have it like this:
        <img class="right"  src="assets/images/DSC00003.JPG" title="drlightbox" /> 
        the plugin seems to work.

        Am I doing something wrong
          • 19164
          • 1,215 Posts
          Did you change anything in configuration file? What configuration parameters do you use?
            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]
            • 19889
            • 616 Posts
            this are my settings:

            <?php
            
            $tpl = <<<HTML
            <a href="[+dr.bigPath+]" rel="lightbox" title="[+dr.title+]">
            	<img src="[+dr.thumbPath+]" width="[+dr.thumbWidth+]" height="[+dr.thumbHeight+]" title="[+dr.title+]" class="[+dr.class+]" />
            </a>
            HTML;
            
            /*$header  = 	'
            <link rel="stylesheet" href="'.DIRECTRESIZE_PATH.'libs/lightboxv2/css/lightbox.css" type="text/css" media="screen" />
            <script type="text/javascript" src="'.DIRECTRESIZE_PATH.'libs/lightboxv2/js/lightbox_setup.js"></script>
            <script type="text/javascript" src="'.DIRECTRESIZE_PATH.'lang/english.lightboxv2.js"></script>
            <script type="text/javascript" src="'.DIRECTRESIZE_PATH.'libs/lightboxv2/js/prototype.js"></script>
            <script type="text/javascript" src="'.DIRECTRESIZE_PATH.'libs/lightboxv2/js/scriptaculous.js?load=effects"></script>
            <script type="text/javascript" src="'.DIRECTRESIZE_PATH.'libs/lightboxv2/js/lightbox.js"></script>
            ';*/
            
            /*
            Uncomment the line below if you use Maxigallery with lightboxv2 effect in the same site
              ,    Maxigallery   lightboxv2   
            */
            //$maxigallery_jscss_packs = "lightboxv2";
            
            $lightbox_mode 			= 1;
            
            $allow_from 			= "assets/images";
            
            $resize_method			= 0;
            
            $big_width  			= 400;
            $big_height 			= 300;
            
            $thumb_default_width 	= 120;
            $thumb_default_height	= 90;
            
            ?>
              • 19164
              • 1,215 Posts
              Aha. With this setting all that you are doing is right. If width and height is not set in image tag - plugin use default settings from $thumb_default_width and $thumb_default_height. You are set $lightbox_mode to 1, so you must to use drlightbox label. In this case images can be in any folder, not only in assets/images.

              Hmm, but <img class="right" height="80" src="assets/images/DSC00003.JPG" width="120" title="drlightbox" /> must work too, i’ll check it.
                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
                Hi,
                I use this plugin and its great!
                However - when used ditto to generate news and pagination and the cropping method of thumbnail generation (portrait was croped to size of landscape) always the first image was processed right, others too but in the second and n-th ditto generated listing all images were croped to the height of the image (even those who had other height set). I would thing I do something wrong but strangely everything behave right when the sorting in ditto was set to ASCending.

                To be more specific:
                I have a ditto news-spot with
                1 large image (width set, some class set) - this one is non-clickable (only resized, no link)
                6 small images (width set) - thumbnails, clickable
                When generating the images i use:
                [*id:is=`8`:or:is=`25`:then=`<a href="[+dr.bigPath+]" rel="lightbox" title="[+dr.title+]" ><img src="[+dr.thumbPath+]" alt="" /></a>`*]
                [*id:is=`5`:or:is=`34`:then=`<a href="[+dr.bigPath+]" rel="lightbox_[+dr.title+]" title="[+dr.title+]" ><img src="[+dr.thumbPath+]" class="[+dr.class+]" alt="" /></a>`*]
                
                [+dr.class:is=`main`:then=`<img class="main" alt="" src="[+dr.thumbPath+]" />`+]
                

                And as I say - when listing more than one spot, the first large image gets processed right, but the second, third etc... on each page when I do pagination gets cropped to the height of the small (thumb).
                This only occured when sortBy=`ASC` in ditto.
                  • 19164
                  • 1,215 Posts
                  Need time to understand so many english words smiley Thanks, i’m trying to find and fix this problem. I have some reports about other bugs with WYSIWYG-mode and labels, it all will be fixed in the short time.
                    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]
                    • 16610
                    • 634 Posts
                    Finally I had the time to test this plugin. I must admit that it works even better than I anticipated, it’s almost transparent to basic users. Many thanks for the authors for their excellent work.
                      Mikko Lammi, Owner at Maagit
                      • 17855
                      • 43 Posts
                      Hi

                      Is there a problem with using this version 0.8 with TinyMCE?

                      I am having problems with images inserted WYSIWYG.

                      If you give them a size they appear ’normal’ size, they appear not to be processed. The plugin works when used in templates/chunks etc.

                      Thanks - great so far BTW!