Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m a looser

    function nggShowGalleryTags($taglist, $template = ”) {

    // $_GET from wp_query
    $pid = get_query_var(‘pid’);
    $pageid = get_query_var(‘pageid’);

    // get now the related images
    $picturelist = nggTags::find_images_for_tags($taglist , ‘ASC’);

    // look for ImageBrowser if we have a $_GET(‘pid’)
    if ( $pageid == get_the_ID() || !is_home() )
    if (!empty( $pid ) && ($template != ‘carousel’) ) {
    foreach ($picturelist as $picture) {
    $picarray[] = $picture->pid;
    }
    $out = nggCreateImageBrowser($picarray);
    return $out;
    }

    I’ve solved it! )) change text in bold

    function nggShowGalleryTags($taglist, $template = '') { 
    
        // $_GET from wp_query
        $pid    = get_query_var('pid');
        $pageid = get_query_var('pageid');
    
        // get now the related images
        $picturelist = nggTags::find_images_for_tags($taglist , 'ASC');
    
        // look for ImageBrowser if we have a $_GET('pid')
        if ( $pageid == get_the_ID() || !is_home() )
            if (!empty( $pid ) <strong>&& ($template != 'carousel')</strong> )  {
                foreach ($picturelist as $picture) {
                    $picarray[] = $picture->pid;
                }
                $out = nggCreateImageBrowser($picarray);
                return $out;
            }

    p.s. I’m using carousel template, and I think the promlem is in it, because in function nggShowGallery
    we have:

    // 1st look for ImageBrowser link
    if ( !empty($pid) && $ngg_options[‘galImgBrowser’] && ($template != ‘carousel’) ) {
    $out = nggShowImageBrowser( $galleryID, $template );
    return $out;
    }

    But I don’t understand php,
    what must I change in function nggShowGalleryTags ?

    Hello!

    I tryed to use your solution, but I still have some promblems:
    It works great, but only with first image in gallery, and when I go to the next image, I have standart imagebrowser!

    http://qzone.selfip.com/wordpress/portfolio/poster – there is my page

    I used the next shortcode for it:
    [nggtags gallery=poster template=carousel images=8 ]

    Thank you

    Hello! I have the same problem!
    Have you solved it?

Viewing 5 replies - 1 through 5 (of 5 total)