Hi there,
1. I need the file name of the image:
I'm just trying to add an option in "image.php" that shows me the actual file name of the current image. Something like <?php echo getBareImageTitle();?> or <?php echo getFullImageURL();?> simply doesn't work. For example: If File name is DSC00001.JPG I want to get that title using a PHP tag. Or even better just the file name without the file extension: "DSC00001".
2. I need the folder name that the current image contains e.g. "Album1" as an PHP tag.
Is that possible somehow?
My final idea: I want to add a link to the original picture in full size packed as ZIP file. The ZIP file is in the same folder and if I'm just on the DSC00001.JPG "image.php" it adds the link to "Album1/DSC00001.ZIP"
It is probably just like switching off the "hotlink_protection" ... I guess.
Best wishes!
Andy
Comments
1. `$_zp_current_image->filename`
2. `$_zp_current_album->name`
<?php echo $_zp_current_image ?>
<?php echo $_zp_current_album ?>
Doesn't work ...
Then you should learn at least the basics before doing custom theme stuff. You will run into more trouble sooner or later.
Of course that does not work....Those variables can't be echoed directly as they are objects. Also you did apparently not read what I wrote.
<?php echo getUnprotectedImageURL(); ?>
Works quite well!!!
You see even with no PHP knowledge things work out.
G'day.