Lightbox and Album Module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
oklahomawebhost
Forum Members
Forum Members
Posts: 19
Joined: Sat Jun 03, 2006 11:44 pm

Lightbox and Album Module

Post 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,
oklahomawebhost
Forum Members
Forum Members
Posts: 19
Joined: Sat Jun 03, 2006 11:44 pm

Re: Lightbox and Album Module

Post 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!
Post Reply

Return to “Modules/Add-Ons”