We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40447
    • 165 Posts
    Hi,
    I tried all day to get E2G to work without success.
    I use modx evo 106 and xampplite on my laptop which both I trust because I never had problems with them designing websites in modx evo 106.

    I installed the latest version of Goldsky E2G with success, all installation check marks were green. System check :

    Database collation latin_swedish_ci (don't know about this one !)
    OK PHP version 5.3.1
    OK PHP magic_quotes_gpc()=OFF
    OK PHP Multibyte String enabled
    OK PHP ZipArchive
    OK assets/libs

    I can acces the menu dashboard, see the interface and upload new images. With FileManager I can upload images to assets/images/gallery

    However, when I create a resource and do a simple snippet call [!easy2!] I get all kinds of different errors:
    1. when I use a blank template I get the error "Javascript library error."
    2. when I use a minimal template FireFox shows a black screen.
    When I check view page source I see the following at the end of the page:
    <div id="content">
    Javascript library error.
    </div>
    

    3. When I use Opera as a browser I also get the error "Javascript library error."
    4. When I try [!easy2? &gid=`*` &slideshow=`smoothgallery` &ss_config=`slidingtransition` !] I get the following error :
    snippet calls wrong gallery id:*, order, or wrong limit.
    SELECT * FROM modx_easy2_files WHERE dir_id IN (*) AND width/height >=0 AND width/height<=0 AND status = 1 ORDER BY LIMIT 0,
    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 '*) AND width/height >=0 AND width/height<=0 AND status = 1 ORDER BY LIMIT 0,' at line 1

    What also is confusing is that in some setups for the module it is said to use :
    include_once(MODX_BASE_PATH.'assets/modules/easy2/index.php');

    and in others :
    <?php
    include_once(MODX_BASE_PATH.'assets/modules/easy2/index.php');
    ?>

    and in other setups it is said to use:
    <?php
    $o = include_once(MODX_BASE_PATH.'assets/modules/easy2/index.php');
    return $o;
    ?>

    and in another without the <?php and ?> tags which seems to work.
    $o = include_once(MODX_BASE_PATH.'assets/modules/easy2/index.php');
    return $o;

    wich one is correct ? I guess the one without the <?php and ?> tags as it seemed to work.

    Also I am not sure anymore what kind of template I have to assign to the resource calling the snippet, a blank template, a minimal template or a custom template declaring script calls for E2G ?
    I thought E2G is already taking care of calling js scripts and css styles, or am I mistaken ?

    As a newbie, I guess I am overlooking something basic but I can't see it yet.
    I guess it's true what they say about modx, that it is actually for people with coding experience.

    Also when I go to Modules => Easy2Gallery =>Menu => Files, the whole files menu shows up vertically instead of horizontally. How can I change this to horizontally ?

    Greetings Brian.
    [ed. note: sitecms last edited this post 11 years, 8 months ago.]
    • Plugins and modules code don't use the <?php tags in the Manager editing field; they are included in a lot of examples to trigger the color-coded syntax highlighting feature of various editors.

      You may be having conflicts with other plugins that also load the javascript libraries. Check especially the plugin configuration for QuickManager+.
        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
        • 40447
        • 165 Posts
        Plugins and modules code don't use the <?php tags in the Manager editing field; they are included in a lot of examples to trigger the color-coded syntax highlighting feature of various editors.
        Thanks for demystifying that ghost code issue for a newbie. Anyway both E2G and EvoGallery are not for me. Flash plugin crashes, java script lib errors, and even my evo manager crashes. Can it have something to do with FF version 12 ? Seems that only MaxiGallery runs stable on my system. I find those galleries a bit overkill, so many parameters. Going back to old school coding your own picture gallery. Here is an interesting alternative:
        http://minigal.dk/features.html
        http://minigal.dk/demo/index.php?list=1&page=1
        http://minigal.dk/minigal-nano.html
        http://minigal.dk/minigalnano/



        • There is another option; check out this tutorial for using a custom TV to make a simple gallery. http://thecmspros.com/2011/01/introduction-to-custom-tvs-in-modx-evolution/
          http://thecmspros.com/2011/02/custom-template-variables-in-evolution-1-5/ [ed. note: sottwell last edited this post 11 years, 8 months ago.]
            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
          • I guess I'm too much late to answer this?
              Rico
              Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
              MODx is great, but knowing how to use it well makes it perfect!

              www.virtudraft.com

              Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

              Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

              Maintainter/contributor of Babel

              Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.