We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33673
    • 14 Posts
    I’m in need of the random image feature. Hope it’s high on the list. wink

    What I’d like is a way to make it fetch random images from multiple or single galleries with specified amount of images per row.

    Perhaps also be able to name the different galleries?

    Also I edited the code to use the title and description you define to be used in the alt and title attribute on img tag. This should be standard since those tags are used to describe the image for accessability.

    Another feature I’d like to see is to make the urls SEO friendly instead of using query strings.

    Otherwise a great snippet. Thanks.
      • 12089
      • 27 Posts
      Quote from: doze at May 22, 2006, 02:30 AM

      Quote from: hexagone at May 20, 2006, 02:52 PM

      Hi, great gallery and CMS. I’ve been playing around with the gallery for the last two days and I can’t get the drop shadows to work.
      The snippet call looks OK to me.. do you have the dropshadow images in assets/snippets/maxigallery/dropshadow/? Have you changed the shadow picture names?

      No, I haven’t changed any of the default images. If it might help the default image mask don’t work also. I don’t get any error messages the image simply display without any drop shadow.
        Hexagone3internet -  marketing - advertisinghexacontact.comEmail marketing service
        • 7923
        • 4,213 Posts
        Quote from: Zyles at May 22, 2006, 07:16 AM

        I’m in need of the random image feature. Hope it’s high on the list. wink
        What I’d like is a way to make it fetch random images from multiple or single galleries with specified amount of images per row.
        I believe with MaxiGallerySolo you can do this.. have you tried it?

        Quote from: Zyles at May 22, 2006, 07:16 AM

        Perhaps also be able to name the different galleries?
        What do you mean by this? You can put any names to the documents what holds the galleries, use pagetitle and display it anywhere on the template you wan’t or put gallery title straight to the content area or whatever..?

        Quote from: Zyles at May 22, 2006, 07:16 AM

        Also I edited the code to use the title and description you define to be used in the alt and title attribute on img tag. This should be standard since those tags are used to describe the image for accessability.
        The title tags of pics should have text where the link goes, if the pictures have some link. The alt text should have the picture date. But I haven’t checked that are those same way in all the different display modes.. I haven’t paid very much attention to that side of the code yet as I’m going to make the snippet template driven sometimes soon (I hope) and people can then define the output them selves much easier..

        Quote from: Zyles at May 22, 2006, 07:16 AM

        Another feature I’d like to see is to make the urls SEO friendly instead of using query strings.
        Not possible. Sorry. Or it would be, but too much work to implement at this time.


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 7923
          • 4,213 Posts
          Quote from: hexagone at May 22, 2006, 09:16 AM

          No, I haven’t changed any of the default images. If it might help the default image mask don’t work also. I don’t get any error messages the image simply display without any drop shadow.
          What’s the path where you have copied the snippet files? Are you sure that all files and folders are in place? Do you use Windows server?


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 26538
            • 7 Posts
            Hi there,
            I’ve got Maxigallery working great on my site and use the ’Lightboxv2’ method of displaying images, but a couple of things i noticed were:

            1. When using Opera for Windows browser, the opacity of the background doesn’t work (i.e. you can’t see the web page behind, only a black screen).
            2. The ’PREV’ and ’NEXT’ buttons seem a bit hard to get activated.

            Anyone know what might be causing this? or is it just a bizarre Opera thing!!! Why can’t everyone just use Firefox!! smiley Life would be soooooooo much easier then!

            Cheers

            Seb
              • 7923
              • 4,213 Posts
              Quote from: Sebastiaan at May 29, 2006, 10:19 AM

              1. When using Opera for Windows browser, the opacity of the background doesn’t work (i.e. you can’t see the web page behind, only a black screen).
              2. The ’PREV’ and ’NEXT’ buttons seem a bit hard to get activated.
              Maybe try this. If that doesn’t help, google.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 26538
                • 7 Posts
                Thanks for that Doze!
                I now know a bit more about Opera, and it seems it doesn’t support opacity via CSS. I also found an alternative to Lightbox which is a bit ’lighter’ (i.e. doesn’t bloat the first page load with so much code). Incase anyone is interested there is a link here:

                http://www.subimage.com/dhtml/subModal/

                The example uses a transparent PNG for the opacity, and it does work in Opera! Guess you can do this with Lightboxv2 also.

                One thing for sure.....I’ve come out of this thread more knowledgeable about Lightbox, Modal windows, Opera & opacity! smiley Atleast now if my mother asks me "..what did you learn today.." I can have something to say! smiley

                Cheers

                Seb
                  • 28373
                  • 204 Posts
                  Nice!

                  I stumbled across something quite funny, if you add this script to your index head

                  <script language="javascript">
                  function redirect(url) {
                  // redirects the browser to the given url
                  document.location.href = url;
                  }
                  </script>
                  


                  The add this code to modalContent.html
                  <button onclick="javascript:redirect('http://www.google.com/');">Surf Inside Me</button>
                  


                  It transforms the window into a browser, the background remains, inside the widow is the URL content (in this instance google.com)

                  I haven’t tried it with IE, just Mac FF - quite weird but opens up a few possibilities like having multiple windows inside one document each browsing different URLs - and no, I don’t know why you’d want to do that smiley

                  Maybe it’s old news - still, quite fun smiley

                  oh - if it’s new then ’Starbuck’ + ’Sebastiaan’ invented it grin

                    • 22303 MODX Staff
                    • 10,725 Posts
                    Is it not possible to use HTML in the title or description of the images? I need to be able to place elements in there (i.e. to PayPal buttons, other links, etc.), but it seems to treat all the input as sort of plain text and sort of HTML. Is this planned for another version or am I missing a key parameter or step in setup?
                      • 7923
                      • 4,213 Posts
                      Quote from: OpenGeek at Jun 09, 2006, 03:25 PM

                      Is it not possible to use HTML in the title or description of the images? I need to be able to place elements in there (i.e. to PayPal buttons, other links, etc.), but it seems to treat all the input as sort of plain text and sort of HTML. Is this planned for another version or am I missing a key parameter or step in setup?
                      The user inputs are filtered through htmlentities function, so it’s not possible. But just remove the htmlentities calls from the snippet and it will be. I guess it would be good to add a configurable parameter whether inputs are wanted to be converted to html entities or not..


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

                      This discussion is closed to further replies. Keep calm and carry on.