Hi,
I am trying to be able to have blank albums so we can just post like a 'blog' entry without any images, or have a guestbook with out any images. The way I set it up is set this at the beginning of index.php and album.php:
<?php if (getNumImages() == 0){ /* Only print if we have images. */
$noimagepost = '1';
} ?>
then when I don't want the image block or other function to appear when viewing an album without images I put right before:
<?php if (!$noimagepost) { ?>
and putting:
<?php $noimagepost = '0'; ?>
right before the endwhile on the index.php page so variable is reset
My issue is with the archive and search, latest photos, and random photos. I am still seeing the zenphoto and media logo images appearing. And even worse, when you click on these logos and go to the image.php view it shows all of my albums as subalbums of those images!!! (because I show album thumbnails on the image.php view). How can I get rid of these for good!?
Any Ideas?
Comments
You could just use the if clause you are using and skip the album thumbs though.
http://g-j-s.net
the password is meck
You will see that the guestbook link is an album where I use the above $noimagepost variable. Everything is great except take a look at the archive for the April, 2008. Any ideas how I can get rid of the default zen-logo and multimedia logo from showing there? It is the only place where they show up for some reason, even though for example the guestbook entry has no images and is from May 2007 - but these images do not appear in the May 2007 archive...
Anyway, not a huge deal - its just bugging me. Looking forward to checking out your ZenPage plugin - any status news?
Thanks - I love ZenPhoto!
By the way, you could set the guest book to unpublished then it would dissapear in the album archive but you could still link directly to it.
Thanks for the interesst in zenpage. I didn't have enough time to work on it as much as I wanted recently, but I really hope to put it out soon. Sorry that I can't be more exact. Still a few things to do.
Thanks sbillard and acrylian - looks like your two fixes will solve my issue. I didn't know you could unpublish and still link directly to an album. I will update to nightly when I have a minute to apply my list of core hacks