We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29525
    • 388 Posts
    I can’t seem to get these two parameters to work.

    First, the image mask doesn’t show up. I thought there might be a problem with the mask I created, so I thought I’d try the demo mask. The mask files are in the folder specified in path. The images have been sized to 675x380 px same as the gallery. I uploaded the images after I specified all the parameters show below. Cleared the cache. The gallery is working just fine, just no mask.

    Update: Immediately after I posted this (of course. . . ) I opened another browser to the site and the demo mask was there!! So I then tried the mask file that I created, and got a white space instead of the image (although the info pane continues to slide up and down. I tried to switch it back but it still shows a white space. I’m wondering now if I’m just doing these things out of sequence? Is there an specific order for changes to the parameters, uploading the images, clear cache, open close browser, log off/on. I think I’m missing something.

    Secondly, the info pane also appears, but the title descriptions are not appearing. When I enter the titles/description from the front end with manage pictures and click save, the title descriptions disappear from the input form and do not appear on the info pane when it slides up and down on the image.

    This is the call.

    [!MaxiGallery? &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &max_pic_size=`675` &smoothgallery_width=`675`  &smoothgallery_height=`380`    &smoothgallery_showInfopane=`true` &smoothgallery_fadeDuration=`1800` &smoothgallery_embedLinks=`false` &smoothgallery_delay=`5500` &smoothgallery_preloader=`true` &smoothgallery_showCarousel=`false` &smoothgallery_showArrows=`false` &pic_use_imagemask=`1` &pic_mask_img=`assets/snippets/maxigallery/imagemask/demomask-frame2.png` !]
    


    Also one other thing. When I upload these images using manage pictures, the images are transferred, but then I get the following error. If press the back button the page reappears and the gallery has been updated and work just fine (items above excepted)

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	chmod() [function.chmod]: No such file or directory	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/home/hallflav/public_html/assets/snippets/maxigallery/maxigallery.php	 
      Line: 	372	 
      Line 372 source: 	chmod($mg->path_to_gal.$name,0666); 	 
     
    Parser timing
      MySQL: 	0.0064 s	(4 Requests)
      PHP: 	7.4584 s	 
      Total: 	7.4648 s	 
    


    This all looks so simple, until I actually try it!! smiley

    I appreciate all your help.

    Terry
      www.terrybarthdesign.com
      • 7923
      • 4,213 Posts
      Quote from: Terry at Jul 22, 2008, 04:44 PM

      I can’t seem to get these two parameters to work.

      First, the image mask doesn’t show up. I thought there might be a problem with the mask I created, so I thought I’d try the demo mask. The mask files are in the folder specified in path. The images have been sized to 675x380 px same as the gallery. I uploaded the images after I specified all the parameters show below. Cleared the cache. The gallery is working just fine, just no mask.

      Update: Immediately after I posted this (of course. . . ) I opened another browser to the site and the demo mask was there!! So I then tried the mask file that I created, and got a white space instead of the image (although the info pane continues to slide up and down. I tried to switch it back but it still shows a white space. I’m wondering now if I’m just doing these things out of sequence? Is there an specific order for changes to the parameters, uploading the images, clear cache, open close browser, log off/on. I think I’m missing something.
      When ever you change parameters that affect the images (eg. size change, shadows, masks etc.) you need to re-upload the images, because these things are done on upload.

      So the correct order is:
      1. Change snippet parameters
      2. Delete old images
      3. Upload new images
      4. (optional step) It might be needed to clear the browser cache in the case of SmoothGallery as it preloads the gallery images to cache via javascript.
      5. View the gallery

      Quote from: Terry at Jul 22, 2008, 04:44 PM

      Secondly, the info pane also appears, but the title descriptions are not appearing. When I enter the titles/description from the front end with manage pictures and click save, the title descriptions disappear from the input form and do not appear on the info pane when it slides up and down on the image.

      This is the call.

      [!MaxiGallery? &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &max_pic_size=`675` &smoothgallery_width=`675`  &smoothgallery_height=`380`    &smoothgallery_showInfopane=`true` &smoothgallery_fadeDuration=`1800` &smoothgallery_embedLinks=`false` &smoothgallery_delay=`5500` &smoothgallery_preloader=`true` &smoothgallery_showCarousel=`false` &smoothgallery_showArrows=`false` &pic_use_imagemask=`1` &pic_mask_img=`assets/snippets/maxigallery/imagemask/demomask-frame2.png` !]
      

      Seems that something is wrong in your installation. It might be that something in your server environment is causing the image titles / descriptions not to save. Might be some mod_security setting or something related to used MySQL / PHP versions. Do you have access to the apache error logs? That would be a good place to search for a error message. Also look at the System Events in MODx manager to see if there are some error messages generated. Have you tried a simpler snippet call? For example just [!MaxiGallery!]? and try also with the newer version (see below).

      Quote from: Terry at Jul 22, 2008, 04:44 PM

      Also one other thing. When I upload these images using manage pictures, the images are transferred, but then I get the following error. If press the back button the page reappears and the gallery has been updated and work just fine (items above excepted)

      « MODx Parse Error »
      MODx encountered the following error while attempting to parse the requested resource:
      « PHP Parse Error »
       
      PHP error debug
        Error: 	chmod() [function.chmod]: No such file or directory	 
        Error type/ Nr.: 	Warning - 2	 
        File: 	/home/hallflav/public_html/assets/snippets/maxigallery/maxigallery.php	 
        Line: 	372	 
        Line 372 source: 	chmod($mg->path_to_gal.$name,0666); 	 
       
      Parser timing
        MySQL: 	0.0064 s	(4 Requests)
        PHP: 	7.4584 s	 
        Total: 	7.4648 s	 
      


      This all looks so simple, until I actually try it!! smiley

      I appreciate all your help.

      Terry
      Please try the test version for v0.6, it should have a fix for this.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 29525
        • 388 Posts
        Doze

        Thank you very much. When I get done with my day job later today, I will spend some time on this. Stay tuned.

        Terry
          www.terrybarthdesign.com
          • 29525
          • 388 Posts
          Doze

          Just wanted to let you know I have resolved all my problems here. Turns out it was a combination of things.

          First, I was not updating, reloading images, etc in the proper sequence. That in itself help me identify one problem. Thanks.

          Second, while testing and trying to sort this out prior to my posting, I had placed a call in the template as well as in a chunk. Sloppy work on my part. Once I realized that and took out the second call, things started behaving as I would expect. I am no longer getting the parse errors when loading images.

          Third, I took your advice and used a simpler call. Starting with the minimum, adding one parameter at a time and testing each addition, I discovered I didn’t need all of them. That left just the masking problem.

          With the previous items resolved, the demo masks worked as expected and I realized the mask I had created was incorrect. Instead of using white as the area for the image to show through, I had created a transparent ping with no color. This resulted in an entirely white image in the gallery rather than the masked image.

          Again thank you for your support.

          Terry
            www.terrybarthdesign.com
            • 7923
            • 4,213 Posts
            Good that you got it all solved, have a happy time with MODx! smiley


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 2603
              • 104 Posts
              I use imagemask and watermark.
              But imagemask is not transparent but black (althow I’ve made png file with transparent element).

              [!MaxiGallery? &display=`embedded` &smoothgallery_width=`748` &smoothgallery_height=`228` &max_pic_size=`748` &pic_use_watermark=`1` &pic_watermark_valign=`bottom` &pic_watermark_img=`assets/galleries/news.png` &pic_watermark_type=`image` &pic_use_imagemask=`1` &pic_mask_img=`assets/snippets/maxigallery/imagemask/mask.png` &pic_mask_bgcolor=`000000` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &smoothgallery_embedLinks=`false` &smoothgallery_showArrows=`false` &smoothgallery_showCarousel=`false` &smoothgallery_showInfopane=`false` &smoothgallery_delay=`9000`!]


              Can I make mask transparent?

              Thanks a lot
                Getting higher! | www.djabuzz.com
                • 7923
                • 4,213 Posts
                No, Image masking feature doesn’t create transparent images, it uses the &..._mask_bgcolor settings for the background color.


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."