We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26931
    • 2,314 Posts
    Hi Lt.Dan,

    I have tried this solution but it doesn’t work for me. Where should this additional javascript be inserted?
    it goes to your js-function
    maybe this can help (it’s not finished yet, and therefore not published) have a look at the source-code:
    http://kunane.com/modx/index.php?id=5

    j
      • 17573
      • 10 Posts
      Thanks for your help, but I’m still having no luck... I put your script into a chunk and called it but no help.

      Here are my two calls...

      Image: (the ’mgJsPicture’ is for the script you provided)
      [!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview` &js=`mgJsPicture`!]


      Thumbs:
      !MaxiGallery? &galleryPictureTpl=`mgGalleryPicture` &js=`mgJs` &disable_rightclick=`0` &pics_per_row=`3` &max_thumb_size=`36` &max_pic_size=`758` &pic_use_watermark=`1` &pic_watermark_type=`image` &pic_watermark_img=`images/logo.png` &manage_target=`8`!]


      Here is my test page... prev/next doesn’t do anything...

      http://loributlerart.com/gallery-test.htm

        • 7923
        • 4,213 Posts
        You shouldn’t use the &js parameter in both snippet calls.. remove it from the second call.


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 17573
          • 10 Posts
          Quote from: doze at Sep 01, 2009, 07:25 AM

          You shouldn’t use the &js parameter in both snippet calls.. remove it from the second call.

          The js in the second call is for thumbs/pic on one page so clicking a thumb will load that picture. I removed the mgJs call but the prev/next links still don’t work.
            • 26931
            • 2,314 Posts
            i use jQuery (in NoConflicht mode) for that setup, therefore the "jq" in the javascript (which replaces jQuerys $-sign), if you haven’t called jQuery in your header, it won’t work
              • 17573
              • 10 Posts
              Quote from: sharkbait at Sep 01, 2009, 07:34 AM

              i use jQuery (in NoConflicht mode) for that setup, therefore the "jq" in the javascript (which replaces jQuerys $-sign), if you haven’t called jQueryin your header, it won’t work

              That’s probably the issue. Can you explain to me what code I need to put in the header.
                • 26931
                • 2,314 Posts
                did you check the link i posted above smiley
                  • 17573
                  • 10 Posts
                  Quote from: sharkbait at Sep 01, 2009, 07:46 AM

                  did you check the link i posted above smiley

                  Yes, now I’ve got your transition effects working wonderfully, but still the prev/next links to not work.

                  Can you take a look at this and see if you can tell why? http://loributlerart.com/gallery-test.htm
                    • 26931
                    • 2,314 Posts
                    yes, i already checked..you’re almost there smiley

                    you can delete the first js-function in your header (you called it twice)
                      • 17573
                      • 10 Posts
                      Quote from: sharkbait at Sep 01, 2009, 08:02 AM

                      yes, i already checked..you’re almost there smiley

                      you can delete the first js-function in your header (you called it twice)

                      Ok, I removed the functions from the header and kept the path to jquery in the header.

                      Your functions are called in a chunk, which are obviously work for the transitions... however, the prev/next links still do not work. embarrassed