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

    Here is my first snippet.

    /****************
    * MooShowGallery beta.0.1
    * author heliotrope
    *
    * Credits: Most of the code is highly inspired from
    * Modx team dvpt
    *
    * Used Classes:
    * - makeForm => OpenGeek
    * - makeTable => OpenGeek
    * - iptc_image => Patrick O’Lone
    *
    * Piece of code and Functions
    * ditto => Mark Kaplan
    * wayFinder => kylej
    *
    * .js from Mooshow
    * www.mooshow.eatpixels.com
    *
    *
    *
    *****************/

    FEATURES:
    Display a mooshow Gallery from a folder in assets/images/
    Edit IPTC Infos for displayed images.

    INSTALLATION:

    1/ Upload mooshow folder to assets/snippets/

    2/ Create requiered chunks

    Run phpMyAdmin to insert mooChunk.sql
    Required for mooshow - makeForm

    3/Create a new snippet Called mooShowGallery
    Copy and paste the mooshow.snippet.php code.

    4/Create a doc from wich you want to call mooShowGallery
    Sample call:
    [[mooShowGallery? &pathToImg=`myFolder`]]
    [+galleryOutputTable+] //admin table
    [+mooFormEdit+] //form to edit IPTC Infos

    5/Set the doc to uncached.
    Or else visitors wil seed admin pages.

    PARAMS :

    &pathToImg starts from assets/images/
    for Additionnal params see snippet code

    IMAGE FILES MUST BE 777

    KNOWN ISSUE:
    IPTC are restricted to JPG Files.
    ...

    You can view a sample here

    FRONT END
    ==> http://www.dixsix.fr/contribs/mooshow-meets-modx.php

    BACKEND
    ==>


    Any comment or improvements are welcome.


    :-)

      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 25663 MODX Staff
      • 12,272 Posts
      Very cool indeed. I really like the Mooshow gallery and find it really easy to use. Does this work with mootools yet?
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 11975
        • 2,542 Posts
        mootools huh

        Never heard ... is that a snippet or js api name for moo package.

        :-)

          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • 25663 MODX Staff
          • 12,272 Posts
          Mootools is the better/faster/more capable combined version of all teh moo.fx + moo.dom + moo.ajax: http://mootools.net/ (and coincidentally a strong contender for the JS-library of choice for MODx post-095).
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 18219
            • 826 Posts
            @Heliotrope :
            The file ’mooChunk.sql’ content a error of syntax SQL. We can’t use this.

            Last edit :
            Error :

             MySQL a répondu:Documentation
            #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--INSERT INTO `modx_site_htmlsnippets` VALUES ('mooGallery', 'chunk pour output ' at line 1 
            

            Last edit :With which version can one test the snippet?

              Marc
              I'm French... Sorry for my bad English, I use ' Google Translator' or other... but that remains that tools wink
              • 7923
              • 4,213 Posts
              Looks very good! Nice job heliotrope!


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 11975
                • 2,542 Posts
                @Marc

                here is a new one (attached to the original post), I’ve tested it and works.

                Let me know if you have any trouble with it

                :-)
                  Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                  • 18219
                  • 826 Posts
                  It’s Ok for the last file of mooChunk.sql wink I test your snippet.
                    Marc
                    I'm French... Sorry for my bad English, I use ' Google Translator' or other... but that remains that tools wink
                    • 6726
                    • 7,075 Posts
                    As I said on the french side, way to go ! I told you Ryan would like it tongue

                    It’s really great, not to mention it’s a first snippet ! I’ll give this extensive testing as soon as I am done with my two projects...
                      .: COO - Commerce Guys - Community Driven Innovation :.


                      MODx est l'outil id
                      • 18436
                      • 135 Posts
                      How in the Hell do I actually output the damn images? Can get the backend interface without any problems. I’m testing the new snippet on a right-protected page so therefore am logged in, do I have to be logged out to view the actual slideshow?

                      Might I also suggest mkaing an administration module for handling different galleries?