We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32017
    • 151 Posts
    i have uploaded just four images , but when i click one of them the left right nav bars in the lightbox script says there are 7 ! and i keep clicking past four and it repeats my first image ... its very strange.

    any ideas?

    looking at my source code, i have noticed this is in there twice

    <script type="text/javascript">var MODX_MEDIA_PATH = "media";</script>
    <script type="text/javascript">var MODX_MEDIA_PATH = "media";</script>

    is that causing the problem ? ?
      London web design - MODx specialists
      • 7923
      • 4,213 Posts
      Do you have link to that site? You can PM me with site details if you do not wish to share it public.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 32017
        • 151 Posts
        pm sent
          London web design - MODx specialists
          • 12652
          • 228 Posts
          I just noticed it getting called twice on one of my pages... okay, noticed it before but was "focusing" on another issue at the time and couldn’t be bothered with more than one challenge at the time wink
            | Identity Developments delivers SEO focused web design and web presence services
            - it&#39;s not about websites, it&#39;s about your identity. |
            • 25663 MODX Staff
            • 12,272 Posts
            double registering of the media path should not be a problem.
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 7923
              • 4,213 Posts
              The problem was that he was using MaxiGallery and MaxiGallerySolo at the same page and both were set to use Lightbox v2. They both use the same rel attribute name, so ligthbox script collected all pictures to the same set. Fix was to rename the rel attribute to something different in MaxiGallerySolo..



                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 32017
                • 151 Posts
                Quote from: doze at Oct 11, 2006, 06:30 AM

                The problem was that he was using MaxiGallery and MaxiGallerySolo at the same page and both were set to use Lightbox v2. They both use the same rel attribute name, so ligthbox script collected all pictures to the same set. Fix was to rename the rel attribute to something different in MaxiGallerySolo..



                yup, and that worked perfectly ! nice one
                  London web design - MODx specialists