Hello folks,
I have a been a gallery user for about three years now, Have installed a few versions over time. The latest G2 version is very nice, But would like to be able to add the Paypal feature and e card.
I have read through a few posting and found Vcard lite
However, it seems (I’m no pro just an evening hacker) that the Gallery structure has changed and was wondering if someone would point me. In the right direction to make this work with the latest version of G2
Also, would appreciate a heads up on where i can find and download the latest Paypal mod. The current links that point to the zipped files error out with archive problem?
Quote:
To use vcard with gallery all you need to do is insert this code into the html_wrap/inline_photo.header of gallery
<?
$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 href="http://www.yourdomain.com/thenameofyourvcarddirectory/create.php?f=<?= $url ?>"><font="verdana" size="3"><b>send this photo (below) as a card</b></a></font><br><br></center>
Thanks to Belchior for making this possible.
Teletubby
Posts: 8601
G2 is a completely different app from G1 so that vcard thing won't work with G2 without significant updates.. it's not just a matter of asdding a link..