We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25951
    • 9 Posts
    I am using the highslide configuration file and I think the latest revision of DirectResize. Images are properly "highslided" but caption is missing... anyone got an idea?

    Here is my string for configuration:

    &config=Configuration;string;highslide


    and this is how the highslide.config.php looks like - well I did not change something, everything is as I downloaded it:

    <?php
    $dr_global["path"] = "
    assets/images/
    ";
    
    $dr_local["header"]["all"]  = 	'
    <script type="text/javascript" src="'.DIRECTRESIZE_PATH.'libs/highslide/highslide.packed.js"></script>
    <link rel="stylesheet" href="'.DIRECTRESIZE_PATH.'libs/highslide/highslide.css" type="text/css" media="screen" />
    <script type="text/javascript">
    	hs.graphicsDir	= "'.DIRECTRESIZE_PATH.'libs/highslide/graphics/";
    	hs.outlineType 	= "rounded-white";
    </script>
    ';
    
    $dr_local["tpl_thumb"]["all"] = <<<HTML
    [+dr.shortcut.source2thumb+]
    HTML;
    
    $dr_local["tpl_lightbox"]["all"] = <<<HTML
    <a href="[+dr.big.src+]" class="highslide" onclick="return hs.expand(this, {captionId: 'caption[+dr.id+]'})">
    	[+dr.shortcut.tpl_thumb+]
    </a>
    <div class="highslide-caption" id="caption[+dr.id+]">
    [+dr.title+]
    </div>
    HTML;
    
    ?>
    


    And this is how the html-code around the image looks in the frontend:

    <div id="" class="highslide-caption" style="display: block;"> </div>


    The id stays blank "" - can this be true when the template uses id="caption[+dr.id+]"? And of course the div container has no input. I tried using dr.alt instead but nothing changed. I also tried caching and uncaching the documents the images are shown.

    I appreciate any help. smiley Thanks in advance.

    Alexander
      • 25951
      • 9 Posts
      Had to use different placeholders instead. So I solved the problem myself.
        • 12941
        • 87 Posts
        I know the extra page doesn’t have 1.0 listed as a compatible version... but has anyone got this to work in 1.0 ?
          • 19889
          • 616 Posts
          Hello
          I was wondering what the status is of this plugin - as to my latest information, it is not longer supported/developed by Metaller - are there any alternatives out there.

          Thanks
            • 6038
            • 228 Posts
            Quote from: ingero at Oct 12, 2009, 10:19 AM

            I know the extra page doesn’t have 1.0 listed as a compatible version... but has anyone got this to work in 1.0 ?

            yes
              • 38755
              • 43 Posts
              Just upgraded a 0.9.6.3 site to Evo 1.0.1, DirectResize is working fine here.
                • 23360
                • 258 Posts
                Thank Doze for you answer and the like.
                I would like to try it but to be sincerly, I did underdstand well how to implement it.

                I download the package and I copied
                1) image.php > root
                2) phpthumb folder > /assets/snipest/ folder
                3) directrsize folder > /assets/plugin/ folder
                4) I add the
                # DirectResize Friendly URLs part
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteRule ^images/([a-z0-9]{32})/.*\.(png|gif|jpe{0,1}g)$ assets/plugins/directresize/furl.php?q=$1 [NC,L,QSA]

                into the .htaccess file

                5)I did :
                On the "System event" tab check OnWebPagePrerender, OnBeforeDocFormSave, OnDocFormPrerender
                Copy and Paste the following into "Plugin configuration" on the Configuration tab
                &config=Configuration;string;thickbox

                But now, I have no idea to use that tool with a picture I added from the WYSIWYG, when I edit a page.

                Do you have an exemple? or some instruction more?

                many thank
                  • 34120
                  • 236 Posts
                  I’m using DR with a template vaiable. When I upload a large image all is working fine on the frontend but the manager is still pulling in the original image. So not great if the image is vary big. Is there a way to use the resized image in the manager?

                  Many thanks

                  Quote from: mmjaeger at Nov 04, 2009, 11:36 PM

                  I was wondering what the status is of this plugin - as to my latest information, it is not longer supported/developed by Metaller - are there any alternatives out there.
                  I’m wondering the same thing.

                    • 29525
                    • 388 Posts
                    I’m having a little trouble with this.

                    This is my first time using this version of DR with this version of modx.

                    DirectResize plugin v0.9.0 rev 2 - highslide configuration
                    Modx 1.0.2

                    With plugin enabled, the images are not visible, although the border from my style sheet is visible. On mouse over the cursor changes to enlarge the image (zoom). When clicked, the icon spins and says loading, but that’s as far as it goes.

                    Any thoughts?
                      www.terrybarthdesign.com
                      • 5340
                      • 1,624 Posts
                      Any javascript errors?