Album module - Lightbox and comments

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
robinmarek
Forum Members
Forum Members
Posts: 208
Joined: Thu Nov 13, 2008 4:02 pm

Album module - Lightbox and comments

Post 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.:
Image

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?
User avatar
argraff
Forum Members
Forum Members
Posts: 52
Joined: Wed Nov 28, 2007 12:10 am

Re: Album module - Lightbox and comments

Post 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!
Registered Linux User #457788
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album module - Lightbox and comments

Post 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...
User avatar
argraff
Forum Members
Forum Members
Posts: 52
Joined: Wed Nov 28, 2007 12:10 am

Re: Album module - Lightbox and comments

Post 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.
Registered Linux User #457788
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album module - Lightbox and comments

Post 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?...
chandu
New Member
New Member
Posts: 7
Joined: Thu Mar 26, 2009 10:17 pm

Re: Album module - Lightbox and comments

Post by chandu »

mark wrote: 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?...
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.
User avatar
argraff
Forum Members
Forum Members
Posts: 52
Joined: Wed Nov 28, 2007 12:10 am

Re: Album module - Lightbox and comments

Post 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>
Registered Linux User #457788
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album module - Lightbox and comments

Post 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...
LouiseW
Forum Members
Forum Members
Posts: 83
Joined: Tue Jun 10, 2008 6:59 pm

Re: Album module - Lightbox and comments

Post 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?
Thanks for your help
I use CMS Made Simple 1.6 "New Caledonia"
User avatar
argraff
Forum Members
Forum Members
Posts: 52
Joined: Wed Nov 28, 2007 12:10 am

Re: Album module - Lightbox and comments

Post 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!
Registered Linux User #457788
LouiseW
Forum Members
Forum Members
Posts: 83
Joined: Tue Jun 10, 2008 6:59 pm

Re: Album module - Lightbox and comments

Post by LouiseW »

I'll have patience.
Thanks for your help
I use CMS Made Simple 1.6 "New Caledonia"
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album module - Lightbox and comments

Post 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...
User avatar
argraff
Forum Members
Forum Members
Posts: 52
Joined: Wed Nov 28, 2007 12:10 am

Re: Album module - Lightbox and comments

Post by argraff »

Mark - a GIANT thank you! That solved it for me. Hope this thread helps others too!
Registered Linux User #457788
sam_m
Forum Members
Forum Members
Posts: 34
Joined: Thu Jun 11, 2009 11:59 pm

Re: Album module - Lightbox and comments

Post by sam_m »

Dr. CSS wrote: 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?...
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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album module - Lightbox and comments

Post by Dr.CSS »

If you want the original litghtbox album template go to available templates and import it...
Post Reply

Return to “Modules/Add-Ons”