[resolved] [Plugin: NextGen] Default Image for the Album Preview (2 posts)

  1. Darkmirror
    Posted 3 years ago #

    I have an album page. http://www.lisu.us.to/photos/ There are some galleries which don't have img in it. I want to display some default img instead of showing the alt text or blank. How can i do that?

  2. Darkmirror
    Posted 3 years ago #

    Oh well i fixed it with

    <?php if($gallery -> counter > 0 ) {?>
    <img class="Thumb" alt="<?php echo $gallery->title ?>" src="<?php echo $gallery->previewurl ?>"/>
    <?php } else { ?><img class="Thumb" alt="default" src="your default img here!"/> <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic