We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30879
    • 40 Posts
    where can i find maxigallery.txt its not in the zip?

    ive made my call in the conetn but im not getting any button added etc.
      • 7923
      • 4,213 Posts
      Quote from: tworak at Jul 14, 2009, 01:52 PM

      where can i find maxigallery.txt its not in the zip?
      You can use the same as what is in the released version

      e.g:
      ////// Setting(s) 
      /////////////////////////////////////////////////////////////////////////////////
      //
      // Path where the galleries will be stored (you have to create it and make it writeable!)
      $path_to_galleries="assets/galleries/"; // [ path ]
      //
      // Path where MaxiGallery is installed
      define(MAXIGALLERY_PATH, "assets/snippets/maxigallery/");
      //
      //include snippet file
      $output = "";
      include($modx->config['base_path'].MAXIGALLERY_PATH.'maxigallery.php');
      //
      ///////////////////////////////////////////////////////////////////////////////////////////////////
      
      return $output;
      



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

        Ill enter that code - its just from the repos the link is dead and 404s on me.


        Quote from: doze at Jul 14, 2009, 02:47 PM

        Quote from: tworak at Jul 14, 2009, 01:52 PM

        where can i find maxigallery.txt its not in the zip?
        You can use the same as what is in the released version

        e.g:
        ////// Setting(s) 
        /////////////////////////////////////////////////////////////////////////////////
        //
        // Path where the galleries will be stored (you have to create it and make it writeable!)
        $path_to_galleries="assets/galleries/"; // [ path ]
        //
        // Path where MaxiGallery is installed
        define(MAXIGALLERY_PATH, "assets/snippets/maxigallery/");
        //
        //include snippet file
        $output = "";
        include($modx->config['base_path'].MAXIGALLERY_PATH.'maxigallery.php');
        //
        ///////////////////////////////////////////////////////////////////////////////////////////////////
        
        return $output;
        


          • 33337
          • 3,975 Posts
          Where is the snippet code? OR maxigallery.php is the snippet code in the 0.6 archive attached to the 1st post?

          Also, is that the latest version?
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 26931
            • 2,314 Posts
            hey zi,

            it’s the snippet code posted above & all the other necessary files are attached to the first post

            j
              • 33337
              • 3,975 Posts
              Thanks Shark!
                Zaigham R - MODX Professional | Skype | Email | Twitter

                Digging the interwebs for #MODX gems and bringing it to you. modx.link
                • 10076
                • 1,024 Posts
                Hi,

                could I somehow use a snippet call inside gallerypicture.html, for example:

                [!PayPal?name=[+maxigallery.picture.title:htmlent+]&text=Click here to buy name=[+maxigallery.picture.title:htmlent+]&price=[+maxigallery.picture.price:htmlent+!]]


                I think not, but maybe I am wrong?

                Frank.
                  • 7923
                  • 4,213 Posts
                  Sure you can, no problem. But it’s best to leave the default templates untouched (so you can always re-visit them to look how they work). Create a new chunk based on the default template (content of gallerypicture.html file) and define your custom template chunk in the maxigallery snippet call.

                  But yeah, you can use snippets in MaxiGallery templates just fine.


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 16302
                    • 20 Posts
                    Hi there, thanks for this great snippet.

                    After installing version 0.6 i still have a strange problem with the lightbox v2. Please take a look at this screenshot, especially on the right border. The thin border is overlapping the window but i dont know why. At first i thought it was a problem with the lightbox, then i built in the jquery lightbox. The conclusion is: same problem sad tested it with Firefox 3.5.2 and IE 8
                      • 7923
                      • 4,213 Posts
                      You probably have css collisions between your site css and ligthbox css. Read more about it here. http://modxcms.com/forums/index.php/topic,36851.0.html


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