We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32963
    • 1,732 Posts
    Hello Everyone,

    Here’s the modxified verion of Easy Peasy Gallery 2 by Nick_NP from Etomite.
    I’ve managed to update this module to support the lastest fixes etc.


    Quick Installation and Setup quide:
    -------------------------------------

    1) Download and extract the photogallery.zip file.
    2) FTP or copy the files into the root of your website
    3) Run the install/index.php file to install the module
    4) Follow the on screen instructions.

    After install run the PhotoGallery Admin panel and click on the Install/Clear Galleries button.

    Usage:
    Calls to the gallery snippet are made using the gallery’s ID (as displayed on the admin panel).

    example:

    [[PhotoGallery?galleryid=`4`]]

    Where 4 is the id of your photo gallery.

    For more information please see the help section accessible via the admin panel.


    How to uninstall the module
    ---------------------------------------

    1) Run the Admin Panel
    2) Click the "Uninstall galleries" button to remove agllery tables
    3) Delete the module, snippet and files (assets/modules/epg2) associated with the photo gallery
      xWisdom
      www.xwisdomhtml.com
      The fear of the Lord is the beginning of wisdom:
      MODx Co-Founder - Create and do more with less.
      • 33393
      • 30 Posts
      Unable to load dynamic library ’./gd2.so’ - ./gd2.so: cannot open shared object file: No such file or directory

      What did I do wrong?

      I am still learning how modules work etc, (Still learning how the TV’s work for that matter.)
        "Adversus solem ne loquitor." -don’t speak against the sun (don’t waste your time arguing the obvious) Something I sometimes need to be reminded of.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Looks like your Apache server’s php module was compiled without the GD library support. Check the phpinfo() view in Administration->View system info. You should see something like this ’--with-gd’ in the Configure command section (near the top) as well as a "gd" section further down in the (alphabetical) list of available modules.

        I see that the module attempts to dynamically load the GD library if it’s not available; here’s some interesting info on the dl() function:

        http://il2.php.net/dl
          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
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Heh! The leading comment in the setup.info file is still

          #:: SMF Connector Setup file
            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
            • 33393
            • 30 Posts
            Quote from: sottwell at Dec 20, 2005, 03:17 AM

            Looks like your Apache server’s php module was compiled without the GD library support. Check the phpinfo() view in Administration->View system info. You should see something like this ’--with-gd’ in the Configure command section (near the top) as well as a "gd" section further down in the (alphabetical) list of available modules.

            I see that the module attempts to dynamically load the GD library if it’s not available; here’s some interesting info on the dl() function:

            http://il2.php.net/dl

            No, phpinfo tells me gd is installed. ’--with-gd’
            GD version = bundled (2.0.28 compatible)
            Should there be a mod_gd listing as well?

            My first basic assumption is always that I don’t know enough about how it’s supposed to work. So I’m not sure if I’m missing something about how the module system... for instance I was looking for the admin panel and finally figured out that the box to the left of the module popped up a menu. I chose ->run module. That’s when I get the error.

            For instance, the quickedit module runs a help page. Am I assuming correctly that this is where and how to run the admin panel?

            The other thing I thought was maybe I’m missing a file.
              "Adversus solem ne loquitor." -don’t speak against the sun (don’t waste your time arguing the obvious) Something I sometimes need to be reminded of.
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              No, looks like your gd is fine. Hopefully the module’s developers will have more to say. I only ran the earlier version for a while, so really can’t say much more.
                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
                • 33337
                • 3,975 Posts
                I get this in EventLog viewer:
                Not supported in multithreaded Web servers - use extension=php_gd2.dll in your php.ini
                


                I have XAMPP install in windows, and GD2 is enabled and working in other tests.

                regards,

                zi
                  Zaigham R - MODX Professional | Skype | Email | Twitter

                  Digging the interwebs for #MODX gems and bringing it to you. modx.link
                  • 32963
                  • 1,732 Posts
                  Hmmm,

                  Try commenting out lines 68-75 inside the module code. The module is trying to load the GD lib but it seems to be failing on different install.

                  // attempt to load GD2 library
                  if (!extension_loaded('gd2')) { 
                     if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) { 
                  		if(!@dl('php_gd2.dll')) return 0;
                     } else { 
                  		if(!@dl('gd2.so')) return 0;
                     } 
                  } 
                    xWisdom
                    www.xwisdomhtml.com
                    The fear of the Lord is the beginning of wisdom:
                    MODx Co-Founder - Create and do more with less.
                    • 33393
                    • 30 Posts
                    Yes. It works like a charm now. I even created a test gallery to make sure. Although the wanring that I didn’t have gallery tables did throw me for a second.
                      "Adversus solem ne loquitor." -don’t speak against the sun (don’t waste your time arguing the obvious) Something I sometimes need to be reminded of.
                      • 33393
                      • 30 Posts
                      Um, well I have a gallery but clicking on the thumbnails doesn’t take me anywhere. I see the status bar making alot of noise but it’s too fast for me to read. No actually, I think it just reloads the same page.

                      I think I need to delve in a little and read to see if there is a setting I neglected.
                        "Adversus solem ne loquitor." -don’t speak against the sun (don’t waste your time arguing the obvious) Something I sometimes need to be reminded of.