zenphoto forums » Installation Support

Blank Albums - Preventing Logo as Image

(8 posts)

Tags:

  1. gjr

    Contributor
    Joined: Apr '08
    Posts: 323

    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?

    Posted 5 years ago #
  2. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,514

    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.

    Don't forget to read the Forum rules and usage resources
    Posted 5 years ago #
  3. gjr

    Contributor
    Joined: Apr '08
    Posts: 323

    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!

    Posted 5 years ago #
  4. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,823

    Try tonigh't build, I've put some code in search to exclude these images.

    Don't forget to read the Forum rules and usage resources
    Posted 5 years ago #
  5. Mammlouk

    Member
    Joined: Jul '06
    Posts: 37

    gir - I just have to mention that I think you have put ZenPhoto to and amazing use with a beautiful theme. Great Job!

    Posted 5 years ago #
  6. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,514

    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.

    Don't forget to read the Forum rules and usage resources
    Posted 5 years ago #
  7. gjr

    Contributor
    Joined: Apr '08
    Posts: 323

    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 :)

    Posted 5 years ago #
  8. gjr

    Contributor
    Joined: Apr '08
    Posts: 323

    Yep - upgrade eliminated those default thumbs in the archive and unpublishing the guestbook took it out of the loop - perfect! Thanks guys

    Posted 5 years ago #

RSS feed for this topic

Reply

You must log in to post.