We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3586
    • 27 Posts
    So, here is the first release of the SPGM-snippet.

    See SPGM with MODx in action

    Features:
    - (s)FTP upload of images and folders
    - per gallery configuration
    - per gallery and/or per image captions
    - random images for gallery icons
    - easy to use and configure (well PHP-knowledge not necessary)
    - once set up it’s running and running and running and ...
    - fun using it

    Features not yet working and/or planned:
    - unlimited image zoom
    - css not completely checked
    - x(html) validity not checked
    - usage of snippet-parameters


    Installation instructions

    1. Download the file http://utopia.proempel.de/downloads/spgm.tar.gz.
    2. Unpack the file.
    3. Create a new snippet with the manager, call it SPGM or something like that and copy-paste the content of snippet.spgm.php into it.
    4. Download the original SPGM-files from SPGM Homepage.
    5. Unpack the SPGM files into a folder called spgm on your server.
    6. Insert the following lines into your template between <head> and </head>:
    <script type="text/javascript" src="spgm.js" type="text/javascript"></script>
    <script type="text/javascript" src="spgm/contrib/overlib410/overlib.js" type="text/javascript"></script>

    7. Insert the content of spgm.css into your templates css-file at assets/templates/<YourTemplate>/site.css.
    8. Create a new page in MODx with content [[SPGM]] or however your called it.
    9. You can change preferences by editing the spgm/gal/spgm.conf file. For further instructions and details of configuring SPGM consider the SPGM readme and homepage.
    10. Upload images via (s)ftp as described by SPGM readme.
    11. Have fun!

    !!Please remember!!
    This snippet is still a pre-version and some things might not work properly. Please backup your images and/or MODx installation (only files, database is not needed by SPGM).

    If you have any questions, comments or hints of better coding or for problem solving, please feel very free to do this here.

    Also I’m looking for testers, cause it is only running at my own site at the moment and I need some feedback. Thanks to all volunteers smiley!

    Cheers,
    bll0
    • Well, my partner just asked me for a simple gallery on his site, so I’ll give it a try!

      I can’t use the snippet, it’s in some kind of text encoding that my Mac can’t interpret or convert.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 3586
        • 27 Posts
        Good hint! Here is the snippet as an attachment.

        You can configure a lot of stuff by editing the snippet "define" at the beginning. I want to change them to be set by parameter.

        Thanks for trying!
          • 3586
          • 27 Posts
          And here is the css-file too. Sorry, I just forgot it.