hi,
i still have a little problem. basically i have 2 files. `zLiteBox.php` is the plugin file where i have defined all my function (addImage, removeImage, countImage, getImages and so on) and `lightbox.php` is my custom page where i show what is currently in the lightbox.
in the custom lightbox.php file i have done some thing like this:
`$images = getLiteBoxImages();` to get the raay with the image info (filename, folder)
and later on
`
<ul class="items">
<?php do {
$img = $images[$c];
$obj = newImage(new Album($_zp_gallery, $img['folder']), $img['filename']);
?>
[*]
<?php echo $obj->getTitle(); ?>">
[img]<?php echo $obj->getThumb(); ?>[/img]getTitle(); ?>" width="75" height="75" />
<p class="image-title"><?php echo $obj->getTitle(); ?>
<?php printLiteBoxForm('removeImage', 'Delete from Lightbox'); ?>
<!-- end caption -->
<?php $c++; } while ($c < $total); ?>
</ul>
`
i don't know if that's the way to do it. yet in the printLiteBoxForm function (which is in the plugin file) i need to know the filename of the image to be deleted but `$obj->getFileName()` is not known. how do i make the two files to know the `$obj` image ??
i am not sure if this is clear, hopefully it is.
thanks.