Blank Albums - Preventing Logo as Image

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

  • acrylian Administrator, Developer
    I believe you are trying to do something that zenphoto is not for...it's a image gallery software, not a blog software or a guestbook...:-)

    You could just use the if clause you are using and skip the album thumbs though.
  • gjr Member
    Hi acrylian - I understand zenphoto is not blog software - but it sure can come close. If you wouldn't mind take a look at my site:

    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!
  • Try tonigh't build, I've put some code in search to exclude these images.
  • gir - I just have to mention that I think you have put ZenPhoto to and amazing use with a beautiful theme. Great Job!
  • acrylian Administrator, Developer
    gjr - Indeed nice and great use of zenphoto! It would be a shame if you would not submit that to our showcase. But I can understand if you want that site to be private.

    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.
  • gjr Member
    Thanks for your kind words - we are very happy with the site as are family and friends!

    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 :)
  • gjr Member
    Yep - upgrade eliminated those default thumbs in the archive and unpublishing the guestbook took it out of the loop - perfect! Thanks guys
Sign In or Register to comment.