We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2901
    • 277 Posts
    Hi Folks
    since two days I try to find where I could change & in the url call to & which makes the validation fail. the code generated in pagination looks like this
    	<div class="pagenumbers">
    	« vorher | 1 | <a href="/~admin21/index.php?id=7[glow=red,2,300]&[/glow]page=2">2</a> 
    	| <a href="/~admin21/index.php?id=7[glow=red,2,300]&[/glow]page=2">weiter »</a> 
    	</div>
    

    Thanks in advance

    EDIT: Added code tags
      • 11975
      • 2,542 Posts
      Hi,

      try by editing this row in maxigallery class (line 740)

      return $modx->makeUrl($docid, $docalias, join('&',$urlstring));



      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 2901
        • 277 Posts
        Hi heliotrope

        this seems to be ok, it looks like this already with &amp;

        return $modx->makeUrl($docid, $docalias, join(’&amp;’,$urlstring));

        thanks anyway.

        here ist the site if you wanna have a look at the code

        http://server8.ispace.ch/~admin21/index.php?id=7
          • 2901
          • 277 Posts
          for the time being I solved it with this plugin

          $js = ’&page’;
          $modx->documentOutput = str_replace($js,’&amp;page’,&$modx->documentOutput);

          but I don’t think this is really the best solution. So if anyone has a better solution to solve the probem in within MaxiGallery, I would really appreciate it.
            • 7923
            • 4,213 Posts
            It’s a problem in $modx->makeUrl function, it uses & chars instead of &amp.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 2901
              • 277 Posts
              so I guess I will have to use my solution until the next release ist out right?
                • 7923
                • 4,213 Posts
                Yes, although I think that it’s not fixed in next release either..

                EDIT: Try to change in maxigallery.class.php line 740 from:

                return $modx->makeUrl($docid, $docalias, join(’&’,$urlstring));

                to:

                return $modx->makeUrl($docid, $docalias, join(’&amp;’,$urlstring));


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 2901
                  • 277 Posts
                  in the download I got from the repository the maxigallery.class.php
                  is already set to
                  return $modx->makeUrl($docid, $docalias, join(’&amp;’,$urlstring));
                  in line 740.

                  well so I will keep my solution as long as I don’t get any problems with the site

                  thanks anyway
                    • 7923
                    • 4,213 Posts
                    Quote from: bbeer at Mar 11, 2007, 01:31 AM

                    in the download I got from the repository the maxigallery.class.php
                    is already set to
                    return $modx->makeUrl($docid, $docalias, join(’&amp;’,$urlstring));
                    in line 740.
                    Umm.. no it’s not.


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 2901
                      • 277 Posts
                      I checked again
                      in my installation it is set to &amp; I guess I did it after the typ of heliotrope before. However there was no change the & was not displayed as &amp;