We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10913
    • 66 Posts
    Just wanted to share something with you all.

    This snippet depends on the MaxiGallery snippet.

    Snippet code:
    <?php
    ////// Setting(s) 
    /////////////////////////////////////////////////////////////////////////////////
    //
    // Path where the galleries will be stored (you have to create it and make it writeable!)
    $path_to_galleries="assets/gallery/"; // [ path ]
    //
    
    // Path where eCard is installed
    define(ECARD_PATH, "assets/snippets/ecard/");
    
    // Path where MaxiGallery is installed
    define(MAXIGALLERY_PATH, "assets/snippets/maxigallery/");
    //
    //include snippet file
    $output = "";
    include($modx->config['base_path'].ECARD_PATH.'ecard.inc.php');
    //
    ///////////////////////////////////////////////////////////////////////////////////////////////////
    
    return $output;
    ?>


    Borrowed from the MaxiGallery.

    Usage


    • Create a new page (Read card) with a [[eCard? &mode=`view `]]
    • Create a new page (Write card) with a [[eCard? &viewPage=`(Read card id)`]] call
    • Create a normal MaxiGallery call with target to the new page (Write Card).

    That is the basic usage. Read the code for more info.

    This is still very experimental so YMMV.
      The sun always shines for tough guys.
      • 10913
      • 66 Posts
      At the moment it has very limited usage. Planned features are timed sending and reporting. Also a module for viewing of the sent cards is in planning.
        The sun always shines for tough guys.
        • 26931
        • 2,314 Posts
        Glen, thanks for sharing! smiley
        what is ecard capable of doing at the moment?
          • 10913
          • 66 Posts
          Well...

          It will take name and the email on sender and receiver and a message with a topic. Then it send an email with a link for the receiver informing about the new ecard. When the receiver clicks the link, (s)he is directed to a site with a ecard.

          This uses MaxiGallery for showing images in the card. Basically you could create a gallery with MaxiGallery and link each of those big images to a page with the ecard snippet call. This is work in progress.
            The sun always shines for tough guys.
            • 26931
            • 2,314 Posts
            It will take name and the email on sender and receiver and a message with a topic. Then it send an email with a link for the receiver informing about the new ecard. When the receiver clicks the link, (s)he is directed to a site with a ecard.

            This uses MaxiGallery for showing images in the card. Basically you could create a gallery with MaxiGallery and link each of those big images to a page with the ecard snippet call. This is work in progress.
            thanks, sounds great!