We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18389
    • 169 Posts
    Hello,
    I have been poring over my codes, css etc and the forums and can’t find out why I am recieving an additional comma (,) after the text in my "carouselBtn".
    The text on the button should read "Thumbnails" not "Thumbnails,"
    Can someone please take a look at my page and js??

    http://www.markojokic.com/index.php?id=53

    Thanks,
    Marko
      www.markojokic.com
      • 23299
      • 1,161 Posts
      Its in the bottom div...
      </div>
      
      			<script type="text/javascript">
      			function startGallery() {
      			var myGallery = new gallery($('myGallery53'), {
      			showArrows: true, 
      			showCarousel: true,
      			showInfopane: true, 
      			thumbHeight: 75, 
      			thumbWidth: 100, 
      			thumbSpacing: 10, 
      			embedLinks: false, 
      			fadeDuration: 600, 
      			timed: false, 
      			delay: 3500, 
      			preloader: true, 
      			slideInfoZoneOpacity: 0.7, 
      			carouselMinimizedOpacity: 0.4, 
      			carouselMinimizedHeight: 20, 
      			carouselMaximizedOpacity: 0.7, 
      			textShowCarousel: 'Thumbnails,' 
      			});
      			}
      			window.onDomReady(startGallery);
      			</script>
      </body>
      </html>


      This line specifically:

      textShowCarousel: ’Thumbnails,’


        • 18389
        • 169 Posts
        I see where it is in the output... when I view the page source and all.
        I just can’t find where it’s getting inserted from.
        my:
        jd.gallery.js

        and modx template don’t show it anywhere. I thought it was a loose comma that I might have accidently punched in, but I can’t find it if it is.

        Could it be in the maxigallery.class.inc or maxigallery php?
        It’s driving me crazy.

        By the way photowebmax, as you can see, I took your advice about going with a fancier gallery than just a long scrolling page, hehe.
          www.markojokic.com
          • 23299
          • 1,161 Posts
          Looks like you have two different gallery systems on your site?

          I am not sure how to hunt this down. You might want to create a folder on your desktop and copy all the templates, js, php etc and then use your system to do a specific search for the offending characters.

          I hate frustrating stuff like this. I once almost went round the bend trying to figure out why IE was displaying the last three characters from a paragraph at the bottom of a content div. Turns out it was specific code structure that was triggering the well documented IE "echo bug."

          Chasing down JS weirdness and conflicts can be a misery all by itself though...
            • 18389
            • 169 Posts
            Yeah, there are 2 different systems now, but they are separate pages and templates, both using maxigallery, one with pictureview, and one with smoothgallery.
            I don’t think it could be a conflict there.... just what you said, somewhere in all the java and css and even the snippet. I am going to really fine tooth comb it later tonight.

            Thanks for the resonses photomax
              www.markojokic.com
              • 18389
              • 169 Posts
              Solved mysteriously....

              I must have tweaked the "maxigallery.class.inc" early in my testing because I went back to it, made a change, saved and uploaded it, then undid that change and reuploaded it... basically putting the original local file back on the live server.... and POOOF.... no more comma!

              or maybe it was buggy, I’ll never know.

              Anyway, the other possible place to look for where the backend coding outputs the carousel toggle button text is here in maxigallery.class.inc:

              Around line 559:
              textShowCarousel: \’’.$this->mgconfig[’smoothgallery_textShowCarousel’].’\’
              });

              ok signing off about this one,
              Marko
                www.markojokic.com