• surferbloggy

    (@surferbloggy)


    hi! I would link the releted images to the gallery page i must change this code i don’t know how to call the gallery:

    $out .= '<a href="' . <strong>$picture->imageURL</strong> . '" title="' . stripslashes(nggGallery::i18n($picture->description)) . '" ' . $thumbcode . ' >';

    could you help me???

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter surferbloggy

    (@surferbloggy)

    do you know how to find the gallery id from this code??
    how I have to write: $picture->???

    foreach ($picturelist as $picture) {
    
            // get the effect code
    
            $thumbcode = $picture->get_thumbcode( __('Related images for', 'nggallery') . ' ' . get_the_title());
    
            $out .= '<a href="' . $picture->imageURL . '" title="' . stripslashes(nggGallery::i18n($picture->description)) . '" ' . $thumbcode . ' >';
    
    		 //$out .= '<a href="' . $gallery->piclens_link . '" title="' . stripslashes(nggGallery::i18n($picture->description)) . '" ' . $thumbcode . ' >';
    
    	//$out .= '<a href="' . NGGALLERY_URLPATH.'nggshow.php?pid='.stripslashes(nggGallery::i18n($gallery->piclens_link)) . '" title="' . stripslashes(nggGallery::i18n($picture->description)) . '" ' . $thumbcode . ' >';
    
            $out .= '<img title="' . stripslashes(nggGallery::i18n($picture->alttext)) . '" alt="' . stripslashes(nggGallery::i18n($picture->alttext)) . '" src="' . $picture->thumbURL . '" />';
    
            $out .= '</a>' . "\n";
    
        }
    
        $out .= '</div>' . "\n";
    
        $out = apply_filters('ngg_show_related_gallery_content', $out, $taglist);
    
        return $out;
    
    }

    hey surfebloggy!

    try with:

    // *** build the gallery output
        $out   = '<br><h3>Related Images</h3><div class="ngg-related-gallery">';
        foreach ($picturelist as $picture) {
    
            // get the effect code
            $thumbcode = $picture->get_thumbcode( __('Related images for', 'nggallery') . ' ' . get_the_title());
    
            $out .= '<a href="/about/showcase?album=all&gallery=' . $picture->galleryid . '" title="' . stripslashes(nggGallery::i18n($picture->description)) . '" ' . $thumbcode . ' >';
            $out .= '<img title="' . stripslashes(nggGallery::i18n($picture->alttext)) . '" alt="' . stripslashes(nggGallery::i18n($picture->alttext)) . '" src="' . $picture->thumbURL . '" />';
            $out .= '</a>' . "\n";
        }
        $out .= '</div>' . "\n";

    where /album/showcase is the path for gallery page, you have to put your path
    hope it works for you
    bye

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[nextgen gallery] link the releted photo to the gallery page’ is closed to new replies.