Page 2 of 2

Re: Which album template use

Posted: Mon Oct 06, 2008 6:21 pm
by Russ
Using the above eample you could use more comments fields if required. The only problem i can see is you may have to adjust your CSS so you can get it all to fit nicely. Let me know how you get on.

Russ

Re: Which album template use

Posted: Mon Oct 06, 2008 6:31 pm
by Tracy
thanks, I will try that. :-*

Re: Which album template use

Posted: Tue Oct 07, 2008 6:45 am
by Tracy
Thankyou Russ; I added your bit of code and got the text under the images. A bit of playing with it and I think he will be happy. I am not too happy with the different height images like you mentioned but will need to discuss that with him and play with it some more. I certainly  appreciate all your help. Without you I most likely would give up  ;D

Re: Which album template use

Posted: Tue Oct 07, 2008 8:38 am
by Russ
No problem Tracy, glad you have something working. If you change the following CSS for album

.thumb
{
width:240px;

.thumb a
{
            height:130px;

it all lines up nicely, now just to keep the images (thumbnails the same size) basically decide in advance what they are going to be and then get the photographer to create them in photoshop using a centering technique. e.g. it is not necessary to show the whole of the image on the thumbnail, just center up the important area.

Re: Which album template use

Posted: Thu Oct 09, 2008 6:14 am
by Tracy
Thankyou so much Russ;
I think I am going to leave the width where I had it for now until I see how many images he will display. The text within the enlarged image and that under each thumbnail, I will play with more when I hear from him, but thanks again. I appreciate it.

BUT;
Now what or where do add to the "separate thumbnails" template to get the same comment fields under the thumbs?

Re: Which album template use

Posted: Sat Oct 11, 2008 12:03 am
by Tracy
Hey Russ, can you help me to get the text fields with the separate thumbnails template now? :-[

Re: Which album template use

Posted: Sat Oct 11, 2008 7:21 am
by Russ
Although I cannot say I like the template, something like this... watch your spacing/line breaks as I've re-jigged it for clarity
Replace the relevant code in the template with this. Changes in bold, allows for all three comments fields.

{foreach from=$pictures item=picturesrow}
 
{foreach from=$picturesrow item=onepicture}
   
             link}">
                     thumbnail}"
                     alt="{$onepicture->thumbnail}" />
                    {eval var=$onepicture->comment|strip_tags:false}
                    {eval var=$onepicture->comment2|strip_tags:false}
                    {eval var=$onepicture->comment3|strip_tags:false}

   
    {if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
{/foreach}
   
{/foreach}