Page 1 of 1
Album module - Lightbox and comments
Posted: Fri Mar 06, 2009 9:49 am
by robinmarek
Hi,
Using CMSMS 1.4.1 and Album 0.9.3
I'm having trouble with the comments on the module. I'm using the default template which uses Lightbox, but when I type any of the comments in it doesn't display properly.
Comment 1 - the white box surrounding the image (after you have clicked the thumbnail) doesn't show properly, e.g.:
And the other 2 comments don't do anything.
It's fairly important that a fairly decent amount of text can be placed underneath the image. Is there a fix for this?
Re: Album module - Lightbox and comments
Posted: Thu Mar 26, 2009 8:37 pm
by argraff
I am having similar difficulties (I can't get comment2 and 3 to display). No amount of tinkering seems to help, and nothing on the forums seems to work. Help!
Re: Album module - Lightbox and comments
Posted: Thu Mar 26, 2009 11:25 pm
by Dr.CSS
Hmm guess you don't know, the default is not lightbox, it would be a matter of adjusting some CSS, if you look at page source you can tell what it is using because just above it there is call for JS...
Second/third comments are available if coded into the templates, have done it many times...
Re: Album module - Lightbox and comments
Posted: Thu Mar 26, 2009 11:33 pm
by argraff
Hi Mark - thanks for replying. I'm not sure about the OP, but I've added the comments into the templates and discovered that while the changes stay in the template, they don't translate to the page. This occurs for both default and Lightbox for me.
I've modified the templates before for other sites, and usually I can beat them into submission, but not this time...
Any clues would be helpful. This seems to be an issue for several people - I was/am concerned it's a bug somewhere.
Re: Album module - Lightbox and comments
Posted: Fri Mar 27, 2009 12:17 am
by Dr.CSS
Hmm works fine for me, look at first album first image and see 3 comments...
http://multiintech.com/galleries.html
What were you doing to try and get them in?...
Re: Album module - Lightbox and comments
Posted: Fri Mar 27, 2009 3:20 pm
by chandu
Thanks for putting this page together. The one thing that makes it hard to decide on modules is a working example. This is great. Wish all modules had working examples.
Re: Album module - Lightbox and comments
Posted: Mon Apr 06, 2009 7:36 pm
by argraff
Hello again - after several hours of banging my head against the wall - I learned the secret. Below is a snippet from the default lightbox code, with all three comments in (look for {$picture->comment2} to see changes). Hope this helps someone!!!
Code: Select all
<ul class="picturelist">
{foreach from=$pictures item=picturesrow}
{foreach from=$picturesrow item=onepicture}
<li class="thumb"><a href="{$onepicture->picture}" rel="lightbox[{$album->name|escape:'html'}]"
title="{$onepicture->name|escape:'html'} {if ($onepicture->comment != "")}<br />{$onepicture->comment|escape:'html'}<br />
{$picture->comment2}<br />{$picture->comment3}{/if}">
<img src="{$onepicture->thumbnail}"
alt="{$onepicture->name|escape:'html'} - {$onepicture->comment|escape:'html'}"
title="{$onepicture->name|escape:'html'} - {$onepicture->comment|escape:'html'}"{$onepicture->autothumbnailsize} /></a>
</li>
{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
{/foreach}
{/foreach}
</ul>
Re: Album module - Lightbox and comments
Posted: Thu Apr 09, 2009 4:23 am
by Dr.CSS
Well there you go, if you look at the source for a page with album on it you will notice that the comment that is in the title="" part is the one that shows in the lightbox so adding more comment callls there will get you more on the popup...
Re: Album module - Lightbox and comments
Posted: Fri Apr 10, 2009 2:06 pm
by LouiseW
Dear Argraff
I replaced the concerning part of the original lytebox code by plainly copying your code into it. I still don't get the comment within the white box that contains the image. One comment box suites me fine.
Can you please explain a bit further on how to solve this?
Re: Album module - Lightbox and comments
Posted: Fri Apr 10, 2009 2:47 pm
by argraff
Well, that's a good question because I found that it no longer works. In my album, I made comments in all three boxes of the first photo only, and comment 2 and 3 carry on to all of the photos in the album.
Will investigate further and report my findings. If anyone with more of an understanding can shed some light here, I think many people would appreciate it!
Re: Album module - Lightbox and comments
Posted: Fri Apr 10, 2009 3:26 pm
by LouiseW
I'll have patience.
Re: Album module - Lightbox and comments
Posted: Sun Apr 12, 2009 7:00 pm
by Dr.CSS
You will note that some of the other calls have one in them this means it's just for that image only so {$picture->comment2} needs to be {$onepicture->comment2} in order for the comment to stick to only the image it was given to, but if you want a comment to show on all images you can use the other...
Re: Album module - Lightbox and comments
Posted: Mon Apr 13, 2009 6:08 pm
by argraff
Mark - a GIANT thank you! That solved it for me. Hope this thread helps others too!
Re: Album module - Lightbox and comments
Posted: Fri Sep 18, 2009 11:57 am
by sam_m
Would it be possible to post the code for the original lightbox album template on that site please as I just cant seem to get this right and being able too look at how the code was created would be greatly appreciated.
Thanks very much
Kind Regards
Sam
Re: Album module - Lightbox and comments
Posted: Mon Oct 26, 2009 6:49 pm
by Dr.CSS
If you want the original litghtbox album template go to available templates and import it...