We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10076
    • 1,024 Posts
    great, all seems to work fine. Just that I now need to place the display=picterview inside a container or a wrapper,not sure how I should describe that. The enlarged picture floats where I do not want it. Should I do that in the CSS or in a TV?

    As soon as the site is finished I will let you guys know. It probably is very simple but still..

    Thanks a lot doze for your efforts to help me out. I have been learning a lot lately,

    best, Frank.
      • 7923
      • 4,213 Posts
      I don’t know what you mean, but styling is done in CSS and that has nothing to do with TV’s.. The maxigallery default stylesheet is in /assets/snippets/maxigallery/css/default.css


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 10076
        • 1,024 Posts
        i´ ll try to find it myself, thanks a lot sofar.

        PS what I mean is that when i click a thumbnail, the enlargement is popping up in the main container. Whatever I´ll think I´ll spend a few more nights.

          • 7923
          • 4,213 Posts
          I’m still not understanding.. link to the site would help, but try first if you can figure it out.. wink


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 10076
            • 1,024 Posts
            site is still local (XAMPP), so let you know the URL somewhat later if it goes live.
              • 10076
              • 1,024 Posts
              Hi Doze,

              ran into a strange behaviore. Don´t know if it is a feature or a bug, or an error on my side.
              When logged on in the MODX manager, clicking one of the child object links, be it a button or a picture I get the following error:

              MODx encountered the following error while attempting to parse the requested resource: 
              « PHP Parse Error » 
                
              PHP error debug 
                Error:  getimagesize(C:/Program Files/xampp/htdocs/modx/assets/galleries/13/) [function.getimagesize]: failed to open stream: No such file or directory   
                Error type/ Nr.:  Warning - 2   
                File:  C:\Program Files\xampp\htdocs\modx\assets\snippets\maxigallery\maxigallery.php   
                Line:  885   
                Line 885 source:  $imagesize=getimagesize($modx->config['base_path'].$path_to_gal.$pics[$i]['filename']);    
                
              Parser timing 
                MySQL:  0.1322 s (13 Requests) 
                PHP:  0.2347 s   
                Total:  0.3669 s 


              However, if logout, the links work normally.

              The "gallerie" file initialy was set to attrib -r (or 777) and now is "read only" (attrib +r), and I am not able to change that, strange enough. Thought I ´d let you know,

              I am waiting for the customers permission to go live with this page, so you might see for yourself. If you want.
              Will keep you posted. huh

                • 7923
                • 4,213 Posts
                Could you try with the latest SVN code. I fixed few issues in the pictureview display mode. That above error happens always if the gallery doesn’t yet have any pictures.


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 10076
                  • 1,024 Posts
                  sorry to bother you again. The wiki seems to be down. You re probably working on it?
                  I would like to be able to place the images in a div, where should i do that and also where can I set the prefered size and place for the thumbs, and the images.
                    • 7923
                    • 4,213 Posts
                    For the image sizes, you would use &max_thumb_size and &max_pic_size parameters. To control the html output of maxigallery, you can do a custom templates for it, see the default templates in maxigallery/templates folder. The templates that you are interested in are &childgalleryTpl and &pictureTpl. You can use chunk name as the parameter values to make it load the chunk contents as template or you can use @FILE:/path/to/template/file.html to define a path to a file system file.


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 10076
                      • 1,024 Posts
                      WOW Doze,

                      fast reply, but unfortunately way to complicated for me. Thanks for all your efforts to show me. I will have to figure out a different solution. Frank.