• [Module] Easy Peasy Gallery 2#

  • xwisdom Reply #1, 6 years, 5 months ago

    Reply
    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:



    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


  • zatoichi Reply #2, 6 years, 5 months ago

    Reply
    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.)


  • sottwell Reply #3, 6 years, 5 months ago

    Reply
    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


  • sottwell Reply #4, 6 years, 5 months ago

    Reply
    Heh! The leading comment in the setup.info file is still

    #:: SMF Connector Setup file


  • zatoichi Reply #5, 6 years, 5 months ago

    Reply
    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.


  • sottwell Reply #6, 6 years, 5 months ago

    Reply
    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.


  • Zaigham (aka zi) Reply #7, 6 years, 5 months ago

    Reply
    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


  • xwisdom Reply #8, 6 years, 5 months ago

    Reply
    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;
       } 
    } 


  • zatoichi Reply #9, 6 years, 5 months ago

    Reply
    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.


  • zatoichi Reply #10, 6 years, 5 months ago

    Reply
    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.