• Resolved jteg

    (@jteg)


    I have sorted my NextGEN galleries in an album, and I have the album published on a page. Does anyone know of a way to show all images in the galleries and not just the thumbnail from each album?

    I’m doing this site for a client and want to make it as easy as possible for the client to manage the galleries. Add new/change the order/etc. So I’m thinking if I could modify an album template (compact/extended) that would work. But I just can’t get the images from each gallery to show…

    Grateful for help!

Viewing 1 replies (of 1 total)
  • Thread Starter jteg

    (@jteg)

    Solved it:

    <?php

    /* Strip Pagelink from everything but the gallery-ID-number */
    $num = ”;
    $string = $gallery->pagelink;
    $string = ereg_replace(‘gallery=’, $num, $string);
    $string = ereg_replace(‘page_id=3’, $num, $string);
    $string = ereg_replace(‘album=1’, $num, $string);
    $string = ereg_replace(‘&’, $num, $string);
    $string = ereg_replace(‘amp;’, $num, $string);
    $string = ereg_replace(‘[/?]’, $num, $string);

    /* Post all galleries into the_content through apply_filters*/

    $showgal1 = ‘[nggallery id=’;
    $showgal2 = ‘]’;
    $showgallery = $showgal1.$string.$showgal2;
    $showgallery = apply_filters(‘the_content’, $showgallery );
    echo $showgallery;
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘[NextGEN Gallery]’ is closed to new replies.