Page 1 of 1

Lightbox and Album Module

Posted: Tue Nov 14, 2006 6:42 pm
by oklahomawebhost
Hello I've gotten the Lightbox Module loaded and working. I went ahead and loaded the Lightbox2 script to it. I following the Lightbox directions. Then I duplicated the default album theme, and called it Lightbox. I then changed the code below to add the rel="lightbox"

Code: Select all

<ul class="picturelist">
	{foreach from=$pictures item=picturesrow}
	    {foreach from=$picturesrow item=onepicture}
	    <li class="thumb"><a href="{$onepicture->link}"rel="lightbox"><img src="{$onepicture->thumbnail}" alt="{$onepicture->name} - {$onepicture->comment}" title="{$onepicture->name} - {$onepicture->comment}" width="{$onepicture->thumbnailwidth}"  ></a>
   	   </li>
      {if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
	    {/foreach}
	{/foreach}
</ul>
But now when I click and image, it loads the dimmed background, and the loading graphic. But it never loads the actual image. the loading graphic just continues to spin.

Any idea's why? I assuming that maybe it can't find the image source. 

THanks,

Re: Lightbox and Album Module

Posted: Tue Nov 14, 2006 6:54 pm
by oklahomawebhost
I figured it out. In case anyone runs into the same issue.

I copied the Default Template where the code is link}"
this needed to be changed to ">picture}"

All works well now!