vcard lite with g2

boyakaa

Joined: 2003-03-19
Posts: 18
Posted: Thu, 2005-09-15 01:33

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

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-10-04 16:10

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