WordPress.org

Forums

NextGEN Gallery
remove caption spaces for lumebox and other softbox scripts (1 post)

  1. Majklas
    Member
    Posted 2 years ago #

    Hi, thank you for a gret plugin. The problem is with captions.. I use lumebox softbox plugin and have annoying caption box below the image. I figured it out how to get rid of it. You simply must change the if true variables not be spaces. Here's the code from nggfunctions.php around 366 row.

    change this:

    $picturelist[$key]->caption = ( empty($picture->description) ) ? ' ' : html_entity_decode ( stripslashes(nggGallery::i18n($picture->description, 'pic_' . $picture->pid . '_description')) );
            $picturelist[$key]->description = ( empty($picture->description) ) ? ' ' : htmlspecialchars ( stripslashes(nggGallery::i18n($picture->description, 'pic_' . $picture->pid . '_description')) );
            $picturelist[$key]->alttext = ( empty($picture->alttext) ) ?  ' ' : htmlspecialchars ( stripslashes(nggGallery::i18n($picture->alttext, 'pic_' . $picture->pid . '_alttext')) );

    to this:

    $picturelist[$key]->caption = ( empty($picture->description) ) ? '' : html_entity_decode ( stripslashes(nggGallery::i18n($picture->description, 'pic_' . $picture->pid . '_description')) );
            $picturelist[$key]->description = ( empty($picture->description) ) ? '' : htmlspecialchars ( stripslashes(nggGallery::i18n($picture->description, 'pic_' . $picture->pid . '_description')) );
            $picturelist[$key]->alttext = ( empty($picture->alttext) ) ?  '' : htmlspecialchars ( stripslashes(nggGallery::i18n($picture->alttext, 'pic_' . $picture->pid . '_alttext')) );

    http://wordpress.org/extend/plugins/nextgen-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic