[Plugin: Wordpress NextGen Gallery]Album gallery thumbnail not linking to gallery

Hello all,

I’m having a issue with my gallery thumbnail on the nextgen gallery album page not linking. Instead of using the given code located in the album.extend.php file of the plugin.:


<div class="ngg-thumbnail">
       <a href="<?php echo $gallery->pagelink ?>"><img class="Thumb" alt="<?php echo     $gallery->title ?>" src="<?php echo $gallery->previewurl ?>"/></a>
</div>

To be able to use larger album gallery thumbnails(please see wordpress forum: http:Larger Thumbnails) I am using the code:


<div class="ngg-thumbnail">
         <img alt="<?php echo $gallery->title ?>" src="<?php bloginfo('url'); ?>/wp-content/gallery/albumthumbs/<?php echo $gallery->gid ?>.jpg" />
</div>

The results can be seen at: Galleries. Please note: Only the “Forgotten Music” icon has been placed.

When clicking on the title “Forgotten Music” I am sucessfully taken to that gallery page. Unfortunately when clicking on the thumbnail instead of being taken to that same page nothing happens.

I’m not sure what I’ve missed, or what I have done wrong. Any help, guidance or answers would be greatly appreciated.

PChuprina

PC, it seems like it doesn’t know what gid means. I couldn’t find anything in the codex about $gallery. I am guessing that the images are in another table and you need to point it there. If you can link me to where you found out about gid?

Hi,

I got it from Wordpress Forum: Larger thumbnail, cut and pasted the replacement code from there, unfortunately this forum question has been closed for a year now. So I can’t ask about gid. Hope that helps.

PChuprina

it looks like bitly is down, how about a direct link?

Sure thing! Sorry.

Link to Wordpress forum: bigger thumbnail

Hello all,

I solved the problem, which was a mistake made by me omitting some basic code.

Instead of:

<div class="ngg-thumbnail"> 
         <img alt="<?php echo $gallery->title ?>" src="<?php bloginfo('url'); ?>/wp-content/gallery/albumthumbs/<?php echo $gallery->gid ?>.jpg" /> 
         </div>

I did:

<div class="ngg-thumbnail">
                    <a href="<?php echo $gallery->pagelink ?>"><img class="thumb" alt="<?php echo $gallery->title ?>" src="<?php bloginfo('url'); ?>/wp-content/gallery/albumthumbs/<?php echo $gallery->gid ?>.jpg" /></a>
	   </div>

I forgot <a> linking… Now if I only knew more about “gid”

Thanks, by posting here, I thought about it more, and corrected my own silly mistake.

PChuprina