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

    I’m trying to have one picture randomly taken from all my galleries with Maxigallery 0.5 tu put on my home page.
    My call is : (in a chunk)
    [!MaxiGallery? &gal_query_ids=`all` &order_by=`random` &limit=`1`!]

    The result is one picture, always the same and from one specifique gallery. huh
    (and with a bigger limit is not random)


    Related but different.
    Then i tried Maxisolo with t’at call and it’s not interpreted. (i can see the code in the page) AND i haven’t found
    something like ’all’ parameter for it. Do we have to manualy give it the id ?
    [[MaxiGallerySolo? &galIDs=`7` &pics_to_show=`1` &type=`random` &open=`gallery_browser`]]

    Thanks in advance for any help.
      • 7923
      • 4,213 Posts
      Update to SVN version and it’ll work


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

        Any idea when your next version will be released? grin

        Thanks!
          • 7923
          • 4,213 Posts
          Haven’t thought about it.. But I think I should release it soon as there have been so much fixes.. I would of liked to have more language files in the next release, but I can update them later too.. I’ll go my todo lists trough and see if I still have any major things there, if not, I’ll probably make a new release today..

          EDIT: Here you go..


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 867
            • 241 Posts
            Yep it works (random part etc..) now with the new version. grinA great news for the ftp .

            The only think is that now with this call ;
            [!MaxiGallery? &display=`embedded` &embedtype=`slidebox` &pics_in_a_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1`!]
            When i click on the next image part it come back to the gallery with the miniatures (=where I come from)

            Is it related with the new version ?

            Thanks again for the help and this nice snippet.
              • 7923
              • 4,213 Posts
              It shouldn’t act like that.. can you give a link to the site for me to see? Did you install the v0.5.1?


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 867
                • 241 Posts
                Yes the last 0.51
                http://alchime.info/m/index.php?id=7
                or
                for the One picture randomly chosen it’s the same :
                http://alchime.info/m/

                (edit) and in my main gallery the thumbnail of the childgallery are in one row now - maybe a new basic templating ?
                I tried &rows= but didn’t change anything. Is it only for pictures in a gallery no preview of sub gallery ?
                  • 867
                  • 241 Posts
                  (up)

                  Can i try something ?
                  Any help would be appreciated.

                  +
                    • 7923
                    • 4,213 Posts
                    Quote from: alchime at Apr 15, 2007, 06:40 PM

                    Yes the last 0.51
                    http://alchime.info/m/index.php?id=7
                    or
                    for the One picture randomly chosen it’s the same :
                    http://alchime.info/m/

                    (edit) and in my main gallery the thumbnail of the childgallery are in one row now - maybe a new basic templating ?
                    I tried &rows= but didn’t change anything. Is it only for pictures in a gallery no preview of sub gallery ?
                    I had forgot this thread..

                    Hmm.. the problem could be that you have modx installed in a subdirectory.. try to change this in your gallerypicturetpl.html:

                    <a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox_[+maxigallery.path_to_gal+]gallery">
                    


                    to

                    <a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox_[(base_url)][+maxigallery.path_to_gal+]gallery">
                    


                    or if that doesn’t work, try:

                    <a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox_[(site_url)][+maxigallery.path_to_gal+]gallery">
                    


                    For the second question, yes, childgalleries do not respect the &pics_per_row parameter, I’ll change that.


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 867
                      • 241 Posts
                      I had forgot this thread..
                      That’s what i thought or that you had some works to do...

                      I try both change in the template; in one place only :
                      <li>
                      [+maxigallery.embedtype:is=`slidebox`:then=`
                      <a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox_[(base_url)][+maxigallery.path_to_gal+]gallery">
                      `+]

                      Doesn’t change anything...

                      I plan to move the site from the subdirectory, so if you can’t have the pb i’ll do that and tell you the result afterward. But some may want to use it in a sub so..it’s not really the solution.

                      >>For the second question, yes, childgalleries do not respect the &pics_per_row parameter, I’ll change that.
                      Great, cause if it is very usefull. Please let me/us know.

                      Thanks again Doze.
                      +