Page 1 of 1

Comments doesn't show Lytebox, Gallery [Solved]

Posted: Sat Jun 11, 2011 6:50 am
by IMNB
Hi

I cannot figure out how to make the comments show up. My prefered gallery is Lytebox, but the comments do not show in any of the Gallery layouts. I filled in some comments for the first gallery in the front page. (The example in the manual is for Lightbox, which doesn't download in full, which I wrote in another thread.)

This is where I work on it http://www.batmanstorpet.se/. I know some html and CSS, but no javascript. However the Gallery has a very easy to understand lead out display.

Very greatful for help.
/Inga

Re: Comments doesn't show Lytebox, Gallery

Posted: Mon Jun 13, 2011 6:46 pm
by Jos
You can change the html/smarty code from

Code: Select all

	{else}
   <a href="{$image->file}" title="{$image->titlename}" rel="lyteshow[gallery]"><img src="{$image->thumb}" alt="{$image->titlename}" /></a>
	{/if}
to

Code: Select all

	{else}
   <a href="{$image->file}" title="{$image->titlename}<br />{$image->comment}" rel="lyteshow[gallery]"><img src="{$image->thumb}" alt="{$image->titlename}" /></a>
	{/if}

Re: Comments doesn't show Lytebox, Gallery [Solved]

Posted: Tue Jun 14, 2011 7:15 am
by IMNB
Many thanks Jos

The Gallery is really good and it works perfectly with the comments showing now. (I did try with the suggestion in the FAQ, bur couldn't make it work. Think it was the escape sequence.)

/Inga