Hi,
When I use the code which is provided I only see an tumb image
I think I have to change this part of the code to see the full one, but i getting a error.
I changed getThumbId into getPhotoId, but this one needed one extra variable ($full). How can I fix it?
Or does someone have the code? I don't want to use nuke etc.
Tnx,
Scaver
http://nitthoes.dyndns.org/gallery
..
if (isset($index)) {
$id = $album->getPhotoId($index,$full=0);
echo ""
."<a href=" .makeAlbumUrl($album->fields["name"], $id) .">"
.$album->getPhotoTag($index)
."</a>";
$caption = $album->getCaption($index);
if ($caption) {
echo "<br><center>$caption</center>";
}
echo "<br><center>From: "
."<a href=" .makeAlbumUrl($album->fields["name"]) .">"
.$album->fields["title"]
."</a></center>";
} else {
print "No photo chosen.";
}
..
Posts: 77
Hi,
try this one:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>
....
$id = $album->getPhotoId($index);
echo ""
."<a href=" .makeAlbumUrl($album->fields["name"], $id) .">"
.$album->getPhotoTag($index, $full=1)
."</a>";
....
</TD></TR></TABLE><!-- BBCode End -->
That's roughly the way I do it! :smile: Where $full=1 is for the full-size picture and $full=0 is for the sized one.
Joerg