zenphoto logo in random image header

Hello,
I am using the Effervescence theme and can't get rid of the zenphoto logo coming up in some galleries in the header random image on top. If I delete the image from the database it just comes back, anyone have this problem and is there a fix,
thanks
west

Comments

  • Try refreshing your database (overview page of admin.) This image comes up when the rangom image function does not return an image. This may also occur on an album page when the album contains no images.

    You can also delete the following code from customfunctions.php
    ` if (is_null($randomImage) || checkforPassword(silent)) {

    $randomImage= new Image(new Album(new Gallery(), ''), 'zen-logo.jpg' );

    }`

    This will leave you with no heading image if the `getRandomImage()` function does not find one.
  • Thank you very much for your quick reply!
    I deleted that code and then no header image shows in two albums but does in one.
    I can live without the header image but kind of like it
    I also have refreshed the database a few times before deleting that code and still shows the zenlogo, also when I remove it from the database table it just comes back.
    It's an odd thing, and I will continue to investigate if you have no more ides.

    thanks again,
    west
  • The image will keep on comming back. It is recreated as needed. You might try the nightly build. The handling of the zenphoto image has been changed so that it will not show up in the database.

    What are the characteristics of the two albums where no image shows up?
  • thanks sbillard,
    the albums are set the same as far as I know, I put this site up for my mother and she just loves it btw!,
    I put that code back so the header will show.
    I may just redo these albums, or try another theme, I like the custom logo feature of this one though,
    west
  • Give the nightly build a try before you give up on the theme.
  • Fixed! I didnt notice that these albums were not published yet, yikes, i'll make sure my mom knows this,
    thanks for your time and sorry for any trouble sbillard!
    west
Sign In or Register to comment.