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