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

    hope someone can help...

    Im using Maxigallery with the picture next to thumbnails modification, and I have chnaged the layout quite a bit too.

    Basically, when I increase the ’pics_per_page’ variable from 4 to an increased number, the pagination system seems to break and I get something like this:
    [+maxigallery.embedtype:isnot=`smoothgallery`:then=` [+maxigallery.pictures:isnot=``:then=`
    
    THUMBNAILS APPEAR HERE....
    
    
    [+maxigallery.pagenumbers:isnot=``:then=` [+maxigallery.pagecount:isnot=`1`:then=`
    [+maxigallery.currentpage:is=`1`:then=` « previous | `:else=` « previous | `+] 1 | 2 | 3 | [+maxigallery.currentpage:is=`3`:then=` next `:else=` next `+]
    `+] `+] 


    In other words, its not processing this part of the script to render the pagination. These bits of code are appearing on the screen.

    You can see what I mean here: http://paulostrer.com/index.php?id=48&page=1

      • 7923
      • 4,213 Posts
      See the "usefull information" sticky topic and find "PHx syntax printed to page" from there.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 6408
        • 58 Posts
        Thanks Doze,

        Yes apologies - I should have read that post, before I posted, and I have read it and installed PHx - I have undertaken most of what that post suggests with no success so far.

        What Im struggling with is that it did used to work, and suddenly its stopped. It might be a problem with the coding that I have made.

        Dan
          • 6408
          • 58 Posts
          In this post: http://modxcms.com/forums/index.php/topic,35839.0.html - which is a link from the ’read this first’ thread I have followed the steps to install Phx and changed the configuration setting - how do I ’enable thumbnail paging’ - part of step 3? I cant find the setting anywhere.... and a search for it brings up no results.

          Dan
            • 6408
            • 58 Posts
            Looks like i BORKED my template files - so apologies for wasting anyones time - reuploaded the original files and all is working ok.

            Thanks,

            Dan
              • 7923
              • 4,213 Posts
              Ok, but did you understood the reason why it happens?

              It happens when you have certain amount of pictures on a single page. PHx stops to parse it’s syntax and it starts to appear on the document. So you need to either remove phx syntax from maxigallery templates or enable picture paging, so that there are less pictures on a single page.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."