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
    OK that title is nit realy clear hehe
    what I mean is that I am preparing pages with a maxigalley call like this in the template:
    [!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview`!]
    

    and the mgPicture chunk is this:
    <img id="maxImage" src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" alt="[+maxigallery.picture.title:htmlent+]" />
    


    this only works if there are images in this gallery

    now I get this error:
    PHP error debug
      Error: 	getimagesize(/var/www/vhosts/janjet.nl/httpdocs/assets/galleries/107/) [function.getimagesize]: failed to open stream: No such file or directory	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/var/www/vhosts/janjet.nl/httpdocs/assets/snippets/maxigallery/maxigallery.php	 
      Line: 	885	 
      Line 885 source: 	$imagesize=getimagesize($modx->config['base_path'].$path_to_gal.$pics[$i]['filename']);
    


    looks like MG does not check if there are images at all.
    is there a posibility that it wil not show anything when using a call linke this?
    or do I need to use another call?

    Greets Dimmy
      follow me on twitter: @dimmy01
      • 7923
      • 4,213 Posts
      Have you tried the SVN version?


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 7455
        • 2,204 Posts
        Thanks Doze that version rocks

        it works now but did you add the &manage=`0` option?
        I could not find it

        would be great for a call I used
          follow me on twitter: @dimmy01
          • 7923
          • 4,213 Posts
          Quote from: Dimmy at Apr 25, 2008, 01:53 PM

          Thanks Doze that version rocks

          it works now but did you add the &manage=`0` option?
          I could not find it

          would be great for a call I used
          No, the ticket is still open as I haven’t decided yet if I’ll do that or the gallery id parameter. If I’ll do the gallery ID parameter, then you could run multiple gallery instances on a document without problems..


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 7455
            • 2,204 Posts
            I would prefer the Gallery id part that would be excellent and makes MG much more flexible.
            Thanks 4 the reply
              follow me on twitter: @dimmy01