• Took me some time, but managed to figure out how to show the gallery title and description in the slideshow view.

    You will need to edit the nggfunctions.php file.
    This is how the extended version looks like starting from line 201:

    // 2nd look for slideshow
    if ( $show == 'slide' ) {
    $args['show'] = "gallery";
    
    // Lines for displaying gallery title and description in slideshow view - PC-MAGE, 2012-04-07
    // Getting the picture ID of the first picture
    foreach( $picturelist as $kulcs => $ertek ) {
    	$num = $kulcs;
    	break;
    }
    // using the picture id of the first picture to get the name and description of the gallery
    // Display gallery title
    $out = '<div class="gallery-name">';
    $out .= '<h1>' . $picturelist[$num]->title . '</h1>';
    $out .= '</div>';
    // Display gallery description
    $out .= '<div class="gallery-description">';
    $out .= $picturelist[$num]->galdesc;
    $out .= '</div>';
    // END
    
    $out  .= '<div class="ngg-galleryoverview">';
    $out .= '<div class="slideshowlink"><a class="slideshowlink" href="' . $nggRewrite->get_permalink($args) . '">'.nggGallery::i18n($ngg_options['galTextGallery']).'</a></div>';
    $out .= nggShowSlideshow($galleryID, $ngg_options['irWidth'], $ngg_options['irHeight']);
    $out .= '</div>'."\n";
    $out .= '<div class="ngg-clear"></div>'."\n";
    return $out;
    }

    https://www.ads-software.com/extend/plugins/nextgen-gallery/

Viewing 8 replies - 1 through 8 (of 8 total)
  • For me does’t work :(.
    Where should apear the gallery title and description? Down?

    Thread Starter Andras Guseo

    (@aguseo)

    It should appear above the slideshow when you click on the [Show as slideshow] link.
    You can position it with css using the class names .gallery-name and gallery-description.
    Try this, which should make it appear at the top left of the page all the time:

    .gallery-name { position: absolute; top: 0px; left: 0px; }
    .gallery-description { position: absolute; top: 50px; left: 0px; }

    The whole thing should be inside a div with the class of ngg-galleryoverview. So you might want to position it with position: relative;.

    What’s your site? Let me know if you need any more help.

    Tnx a lot. I will try like this.
    My site is not online in this moment. I work with xampp.
    If you study a little bit the code for Nextgen, maybe you have a ideea for this problem:
    On “Show pictures as a list” in a page
    All Images stay in one single column, the same problem like this guy: https://www.ads-software.com/support/topic/plugin-nextgen-gallery-all-images-stay-in-one-single-column?replies=7
    Strange is that this problem apear only witm my theme: wp-creativex. If I change the theme all work just fine.
    So, its about my css and divs.
    My divs for a page are:

    <div id="sub-content">
          <div class="content">
             <div class="post">
     <h1 ...</h1>
    <div class="ngg-galleryoverview" id="ngg-gallery-5-141">
    <!-- Slideshow link --> <div class="slideshowlink"><a ....[Show as slideshow]</a> </div>
    <!-- Thumbnails --> <div id="ngg-image-37" class="ngg-gallery-thumbnail-box"  >
    <div class="ngg-gallery-thumbnail" >
    .....

    I try float:left, position, overflow… for .ngg-gallery-thumbnail-box and .ngg-galleryoverview , but nothing work.
    Any ideea?

    Seems I find the solution(I delete css code from my theme, to see wath part make the problem). And was this:

    .content div {
    display: block;
    clear: left;
    }

    So, the parent of nextgen divs has clear: left; :)))))
    Why, I don’t see the scope, but….
    I will come back when I will try to put the description.
    Tnx!

    Work just fine!!! Tnx a lot, it’s realy usful.

    Thread Starter Andras Guseo

    (@aguseo)

    Great! Happy it helps! ??

    Thanks aguseo, this has pointed me in the right direction since I am trying to do something similar.

    I want to pull the description of each image in the slideshow and have it displayed below the image.

    Similar to how imagebrowser pulls the description but I want the functionality of the slideshow. This has been extremely difficult to figure out.

    dikoro

    (@dikoro)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: NextGEN Gallery] Show gallery title and description in slideshow view’ is closed to new replies.