We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    Quote from: tom41 at Mar 19, 2007, 04:19 PM

    ı tryed it with my other pc now (ff 1.5.1 it works but it closes image window when i click somewhere on the page instead hit close link sad
    That is how it’s meant to work, the lightbox closes from the close link or by clicking anywhere in the overlay. Are you using 0.9.6RC1 by any chance and are logged in manager and have quickedit enabled? The latest quickedit uses MooTools and it won’t work with scriptaculous/prototype.


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 30277
      • 75 Posts
      Quote from: doze at Mar 19, 2007, 05:50 PM

      Quote from: tom41 at Mar 19, 2007, 04:19 PM

      ı tryed it with my other pc now (ff 1.5.1 it works but it closes image window when i click somewhere on the page instead hit close link sad
      That is how it’s meant to work, the lightbox closes from the close link or by clicking anywhere in the overlay. Are you using 0.9.6RC1 by any chance and are logged in manager and have quickedit enabled? The latest quickedit uses MooTools and it won’t work with scriptaculous/prototype.
      nah its normally close pop up window if i/you hit close link not clickin anywhere on the page huh

      and yes iam with 0.9.6RC1+ quickedit active
      will it be fixed later ? or never ? i wanna use that lightbox script with modx sad
      btw good knowladge
        • 10487 MODX Staff
        • 1,535 Posts
        You could always try Slimbox, which is a mootools clone of Lightbox 2. So, you shouldn’t get any conflict - and you wouldn’t need to carry the overhead of using Prototype/Scriptaculous as well.
          Garry Nutting
          Senior Developer
          MODX, LLC

          Email: [email protected]
          Twitter: @garryn
          Web: modx.com
          • 33372
          • 1,611 Posts
          Quote from: tom41 at Mar 19, 2007, 06:03 PM

          nah its normally close pop up window if i/you hit close link not clickin anywhere on the page huh
          Nah. Lightbox 2 closes the image if you click above or below the image as well as on the close button. It ignores clicks to the right and left of the image however.
          http://www.huddletogether.com/projects/lightbox2/

          Quote from: tom41 at Mar 19, 2007, 06:03 PM

          and yes iam with 0.9.6RC1+ quickedit active
          will it be fixed later ? or never ? i wanna use that lightbox script with modx sad
          Never. These two script packages are incompatible. You could go back to the previous version of QuickEdit from the 0.9.5 distribution, switch to Slimbox instead (which is very simple), or just not use both QE and Lightbox together.
            "Things are not what they appear to be; nor are they otherwise." - Buddha

            "Well, gee, Buddha - that wasn't very helpful..." - ZAP

            Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
            • 30277
            • 75 Posts
            Thank you all i will try to use that slimbox tomorrow and share it here how its done

            peace out
              • 30277
              • 75 Posts
              Ok first sorry for late answer i was away from web world grin

              Slimbox didnt work also

              what i did is

              <script type="text/javascript" src="[(base_url)]assets/js/slimbox.js"></script>
              <link type="text/css" rel="stylesheet" href="[(base_url)]assets/templates/2/style.css" />
              <base href="[(site_url)]"></base>
              

              * (added slimbox.css to my main css)

              callin it from my page as <a href="[(site_url)]assets/images/logo.png" rel="lightbox" title="my caption">test image</a>

              is there something iam missing ? sad

              Thanks
                • 7923
                • 4,213 Posts
                you need mootools js library too


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

                  I was try to add mootools as copying from my assets/script/mootools to my js dir before post here but it wouldnt work
                  now i downloaded mootools ( full cause not sure which effects it grin) and its working .
                  Thank to you and zap for help
                    • 33372
                    • 1,611 Posts
                    Glad you got it working. Slimbox looks and feels almost exactly the same as Lightbox, and as its name implies it is a bit slimmer if you use only the mootools libraries that it needs. Here are the modules required by Slimbox:

                    Native: Array, String, Function, Element
                    Window: Window.Base, Window.Size
                    Effects: Fx.Style, Fx.Styles (optionally Fx.Transitions)

                    However if you also use other mootools scripts that may require other libraries, you should take that into account.
                      "Things are not what they appear to be; nor are they otherwise." - Buddha

                      "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

                      Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                      • 30277
                      • 75 Posts
                      Thank you Zap by you my mootools.js went from 354,2 kb to 14,1kb
                      I will check full lib later smiley