Please Note: This Gallerycard mod is now part of Gallery 1.5.1!
With Gallerycard you are able to send your Gallery images within an email.
The originally script from http://www.ibps-friedrichs.de was ported to Gallery by freenik, it's easy to configure and require no database.
Please backup your original files before editing.
1. download gallerycard.zip and unzip it to your local PC
2. modify the ecards/ecard_preview.php and replace the location with your Url
3. upload the ecards folder to your Gallery directory
4. edit the inline_photo.header.default in the html_wrap directory of Gallery to include the link on the page.
 | Code:
<?
$photo = $gallery->album->getPhoto($GLOBALS["index"]);
if ($photo->isResized()) {
$name = $photo->image->resizedName;
} else {
$name = $photo->image->name;
}
$url = $gallery->album->getAlbumDirURL("full") .
"/" .
$name . "." . $photo->image->type;
?>
<center>
<a xhref="http://www.yourDomain/gallery/ecards/ecard_form.php?pic=<?php echo $url;?>" ><img xsrc="/gallery/ecards/_ecard_images/postcard.gif" border=0 ></a><br>
</center> |
Save the file as inline_photo.header
If you want to open Gallerycard in a poup window, just copy the javascript from refer-a-friend to Gallery's view_photo.php and change the link in the inline_photo.header to:
 | Code:
<a xhref="javascript:openform('http://www.yourDomain/gallery/ecards/ecard_form.php?pic=<?=$url ?>');" ><img xsrc="/gallery/ecards/_ecard_images/postcard.gif" border=0 ></a><br> |
To change the size of the popup modify the width and hight in the javascript, for example:
 | Code:
window.open(url,"","scrollbars=yes,menubar=no,personalbar=no,width=500,height=600,left=220,top=0"); |
You can test the script in my Gallery,
Happy ecarding 
Download:
Gallery Card (119.14 KB)
Other Websites:
HTML And PHP Scripts - Php Script Ecard
Free HTML and PHP Programming Guides, Lessons and Tutorials
|