We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    Quote from: Soda at Nov 14, 2006, 08:52 AM

    [[MaxiGallery? &view_gallery=`[+id+]`  &pics_per_page='1' ]]

    Is that a typo just in your post or is your snippet call actually that? If that’s your actual snippet call, try &pics_per_page=`1`


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 27889
      • 415 Posts
      undecided I slap me with a large trout
      I must sleep sorry.

      I will remove the two posts in a couple of minutes, no-one need that.

      Thanks for your help,

      but the call display only the first gallery, is it possible to have multiple MaxiGallery call on one page.
        MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
        MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
        • 7923
        • 4,213 Posts
        Naah, don’t remove your posts, I actually found some bugs when looking into the things in your post smiley

        The snippet will not run more than once due to some minor "bugs". To fix this, change the include_once(...) in the snippet code in modx manager to just include(...).

        And to get what you want, you need to create "mgOuterTpl" chunk with the following content: [+maxigallery.pictures+]

        Then in your Ditto template, use: [[MaxiGallery? &view_gallery=`[+id+]` &pics_per_page=`1` &galleryOuterTpl=`mgOuterTpl`]]

        PS. if you want to use some maxigallery strings in your maxigallery templates, you need to change the language file including from include_once to just include too.. I have made the necessary fixes and will probably post new beta soon.. altough, I found some bugs in PHx today, so I might wait until those are fixed. (and bS` does not have internet connection this week I hear...)


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 27889
          • 415 Posts
          Thank you it works very well, just a little thing(not important for my use) :the first "manage picture" is ok the others are very tiny (without text), in the manage picture too (upload, apply ...), all are tiny and without text.

          An other thing: Trying to upload (locally) a third images, and tell me some problem of rights. The images are correctly upladed and displayed, just the chmod seems to fail, perhaps @chmod will not raise an error.

          Error: chmod(): No such file or directory
          Error type/ Nr.: Warning - 2
          File: /home/soda/public_html/csl2/assets/snippets/maxigallery/maxigallery.php
          Line: 244
          Line 244 source: chmod($path_to_gal.$name,0666);
          I ’m trying to made an other gallery on an other page and the upload is ok (same image).

          PS:You’re the best !
            MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
            MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
            • 7923
            • 4,213 Posts
            Yes, to fix that later issue, you have to do what I said about the language files.. BUT, I found another issue with the feature you are using. It does not point to correct gallery when you click on the images (unless you are using embedded display mode). I fixed that too..

            And also, I made a little change. When you use &view_gallery parameter to view a gallery from some other page and then go to browse it’s images and click "index" link to go back to gallery index, previously that went to the gallery document, now it comes back to the document that had that &view_gallery parameter where the user moved to the picture in the first place.. I think it’s more intuitive to use that way.

            If you have a SVN client installed, get the newest version from maxigallery svn.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 27889
              • 415 Posts
              I will get the SVN but the error I tell you happend with the language file modified in maxigallery.php (the two include for default and others)
                MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                • 7923
                • 4,213 Posts
                Works fine with my version. Can’t remember if I did any other changes (I think not), but if it’s not working for you even with the SVN version, report back. And just to make sure, your galleryOuterTpl chunk has something like [+maxigallery.pictures+][+maxigallery.managebutton+] ?


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 27889
                  • 415 Posts
                  All working well with current svn. I’m contine playing with it smiley
                  Once I’m ok with all I will write a Ditto/MaxiGallery in the wiki.
                    MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                    MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                    • 7923
                    • 4,213 Posts
                    Just found out that when using slidebox or lightbox, accessing the page with IE causes errors.. can someone confirm this? What about IE 7?


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 10816
                      • 28 Posts
                      Quote from: doze at Nov 13, 2006, 11:32 AM

                      So it was linking the css file, but it just did not work for you in your browser? What browser are you using? It seems that modx is including css by using the @import method.. I can change it to <link> if there’s some problems with that. But I guess @import should work ok too.

                      Exactly the same, and works with the hack.
                      I’m using Firefox 2.0.

                      This discussion is closed to further replies. Keep calm and carry on.