WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] Single Pic Code errors (4 posts)

  1. Shonu
    Member
    Posted 3 years ago #

    Hi just spotted that singlepic would never display in the caption in a picture that had a caption defined (at least the title and the description is filled in the gallery item!)

    Looking at nggfunctions.php I spotted:

    $picturelist[$key]->caption = ( empty($picture->description) ) ? ' ' : html_entity_decode ( stripslashes(nggGallery::i18n($picture->description)) );
    $picturelist[$key]->description = ( empty($picture->description) ) ? ' ' : htmlspecialchars ( stripslashes(nggGallery::i18n($picture->description)) );

    Looks like we do a description check on the caption. Strange still, as description is also not filled into caption, means the check in the singlepic.php view template never catches. It should have been filled by description at least.
    In the popup, I do see the description, but not caption, still.

    Is this possibly suppose to be or a bug ?

    Thanks for checking

    PS: Is there documentation on how to add more templates through my own plugin, using existing template search mechanism from NGG?

  2. Shonu
    Member
    Posted 3 years ago #

    I can re-use the alttext in singlepic.php by correcting:

    <?php if(!empty($image->alttext)) : ?>
       <span class="ngg-caption"><?php echo $image->alttext ?></span>
    ...
  3. Shonu
    Member
    Posted 2 years ago #

    I continue this trace here as I accidentally re-created the post.

  4. Shonu
    Member
    Posted 2 years ago #

    The issue itself is NOT YET RESOLVED

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags