Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @orenstransitpage – It seems you are describing using a custom template which is a NextGEN Legacy idea. That is still supported in NextGEN Gallery but we do recommend you create a “new” template (and keep a back-up of it).

    The NextGEN Legacy templates are stored here:
    wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view

    I would suggest using the “captions” template as your guide and simply save your custom template using the same file naming convention in the same location. Then choose the appropriate template from the drop-down in the IGW or reference it appropriately in your shortcode parameters as needed.

    Thanks!

    – Cais.

    Thread Starter orenstransitpage

    (@orenstransitpage)

    Thanks, this seems to have worked.

    Plugin Contributor photocrati

    (@photocrati)

    @orenstransitpage – Thanks for the follow-up.

    – Cais.

    Thread Starter orenstransitpage

    (@orenstransitpage)

    Looks like this is a problem again. I updated the plugin, the descriptions disappeared, I uploaded a new php file (see below) with the description command to the legacy folder, set the basic thumbnails to render the associated template in the legacy folder referenced above, and the descriptions are still not showing up. Any thoughts at this juncture? Thanks, in advance!

    <?php
    /**
    Template Page for the gallery overview

    Follow variables are useable :

    $gallery : Contain all about the gallery
    $images : Contain all images, path, title
    $pagination : Contain the pagination content

    You can check the content when you insert the tag <?php var_dump($variable) ?>
    If you would like to show the timestamp of the image ,you can use <?php echo $exif[‘created_timestamp’] ?>
    **/
    ?>
    <?php if (!defined (‘ABSPATH’)) die (‘No direct access allowed’); ?><?php if (!empty ($gallery)) : ?>

    <div class=”ngg-galleryoverview ngg-template-caption” id=”<?php echo $gallery->anchor ?>”>

    <?php echo $gallery->description ?>

    <?php if ($gallery->show_slideshow) { ?>
    <!– Slideshow link –>
    <div class=”slideshowlink”>
    slideshow_link) ?>”>
    <?php echo $gallery->slideshow_link_text ?>

    </div>
    <?php } ?>

    <!– Thumbnails –>
    <?php $i = 0; ?>
    <?php foreach ( $images as $image ) : ?>

    <div id=”ngg-image-<?php echo $image->pid ?>” class=”ngg-gallery-thumbnail-box” <?php echo $image->style ?> >
    <div class=”ngg-gallery-thumbnail” >
    imageURL) ?>”
    title=”<?php echo esc_attr($image->description) ?>”
    <?php echo $image->thumbcode ?> >
    <?php if ( !$image->hidden ) { ?>
    <img title=”<?php echo esc_attr($image->alttext) ?>” alt=”<?php echo esc_attr($image->alttext) ?>” src=”<?php echo nextgen_esc_url($image->thumbnailURL) ?>” <?php echo $image->size ?> />
    <?php } ?>

    <span><?php if (!$image->hidden) { echo $image->caption; } ?></span>
    </div>
    </div>
    <?php if ( $image->hidden ) continue; ?>
    <?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
    <br style=”clear: both” />
    <?php } ?>
    <?php endforeach; ?>

    <!– Pagination –>
    <?php echo $pagination ?>

    </div>

    <?php endif; ?>

    Plugin Contributor photocrati

    (@photocrati)

    @orenstransitpage – Large blocks of code are best linked to in these forums, especially in cases where some of the code becomes obfuscated due to the forums filtering … please try a CloudUp, Gist, or something similar to share this code.

    Thanks!

    – Cais.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add Gallery Description Above Thumbnails’ is closed to new replies.