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: gigli at Nov 14, 2006, 02:09 PM

    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.
    I have fixed this in the SVN version


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 10816
      • 28 Posts
      Another problem: when using snippet Maxigallery and Jot together, there is this error message:

      Fatal error: Cannot redeclare class cchunkie in /xxx/assets/snippets/jot/includes/chunkie.class.inc.php on line 11

      because the two snippets are using the same name class CChunkie. It is easy to rename this, but does anyone have the same problem ?
        • 27889
        • 415 Posts
        Sorry I’m under Linux for the moment.
        Found some others bug (or not)


        When they aren’t any subgallerie width display=`childgalleries`
        because the $children is empty :
        Error: Invalid argument supplied for foreach()
        Error type/ Nr.: Warning - 2
        File: /home/soda/public_html/csl2/assets/snippets/maxigallery/maxigallery.php
        Line: 597
        Line 597 source: foreach($children as $child) {

        The same occurs width :
        [[MaxiGallery? &display=`childgalleries` &view_gallery=`22`]]
        Why I want do that ?
        Just because I have a 3 level galleries:
        All gallery with [[MaxiGallery? &display=`childgalleries`]] World
        sublevel width [[MaxiGallery? &display=`childgalleries`]] Europe
        subsublevel width [[MaxiGallery? ]] Helsinki
        That work very fine but I want retrieve some last image from the subsublevel in an other page (like in World).
        But I can do easily with a quick query in the MaxiGallery table or perhaps a binding.
          MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
          MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
          • 27889
          • 415 Posts
          gigli, it is explained here how to add picture comment you can have a look at http://projects.zerobarrier.nl/modx/46.html too , but you’re right, if trying to use jot with MaxiGallery on the same page this error happens.

          Is there any issue Doze ?
            MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
            MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
            • 7923
            • 4,213 Posts
            Quote from: gigli at Nov 14, 2006, 02:35 PM

            Another problem: when using snippet Maxigallery and Jot together, there is this error message:

            Fatal error: Cannot redeclare class cchunkie in /xxx/assets/snippets/jot/includes/chunkie.class.inc.php on line 11

            because the two snippets are using the same name class CChunkie. It is easy to rename this, but does anyone have the same problem ?
            For quick fix, you would need to search and replace "CChunkie" in maxigallery.php and in chunkie/chunkie.class.inc.php, I’ll see what I can do for the next version.

            Quote from: Soda at Nov 14, 2006, 02:42 PM

            Sorry I’m under Linux for the moment.
            Found some others bug (or not)
            Let me see if I understood correctly. Childgalleries display mode works fine always when there is something to display, if there’s not, that error comes up. And you would like to be able to use childgalleries displaymode even if there is no pictures that it would return..? Or is there also some other problems with the childgalleries feature? Not 100% sure I got everything from your post..


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 27889
              • 415 Posts
              Childgalleries display mode works fine always when there is something to display,
              YES
              use childgalleries displaymode even if there is no pictures
              no,
              This is just two differents problems.
              I want to use childgallerie (or an other way) on a page (A) which have no subgallerie. This page must display some latest image from multiple galleries 1,2,... (these galleries contains images).

              MyGalleries (contain [[MaxiGallery? &display=`childgalleries` ]])
              | |
              | Gallery2(contain [[MaxiGallery?]])
              -Gallery1(contain [[MaxiGallery?]])



              PageA (sould display image from Gallery1 and Gallery2)
                MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                • 7923
                • 4,213 Posts
                Quote from: Soda at Nov 14, 2006, 03:28 PM

                I want to use childgallerie (or an other way) on a page (A) which have no subgallerie.
                Use MaxiGallerySolo to do that


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 27889
                  • 415 Posts
                  Ok, for the CChunkie class, I don’t know if it’s ok but as Jot is included by default with MODx, you can perhaps use its file.
                    MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                    MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                    • 27889
                    • 415 Posts
                    When you use ChildGalleries, a manage button is still displayed, but the page doesn’t contain any gallerie (just childs docs contains) I use &manager_webgroups=`no-one`so it is not displayed.
                    (the WebUserGroup no-one doesn’t exist.)

                    Another thing: is there a way to pass variable to watermark_text like : &thumb_watermark_txt=`[+id+]`?
                    perhaps parse the content of &thumb_watermark_txt before pass it to Thumbnail class
                      MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                      MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                      • 7923
                      • 4,213 Posts
                      Quote from: Soda at Nov 15, 2006, 06:29 AM

                      When you use ChildGalleries, a manage button is still displayed, but the page doesn’t contain any gallerie (just childs docs contains) I use &manager_webgroups=`no-one`so it is not displayed.
                      (the WebUserGroup no-one doesn’t exist.)
                      To not have the manage button in a document that contains just child galleries, do a custom gallery outer template and do not put that placeholder there.. in this version, it should be possible to have childgalleries and document specific images both be displayed. Haven’t test it though.. but if you go in to the picturemanagement in your childgalleries document and upload some pics, they should appear below the child galleries.

                      Quote from: Soda at Nov 15, 2006, 06:29 AM

                      Another thing: is there a way to pass variable to watermark_text like : &thumb_watermark_txt=`[+id+]`?
                      perhaps parse the content of &thumb_watermark_txt before pass it to Thumbnail class
                      Yea, you can do that.. you can use placeholders in any snippet call in modx..


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

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