forum.coppermine-gallery.net

No Support => General discussion (no support!) => Topic started by: energy0m on December 09, 2004, 07:52:24 pm

Title: albumlist thumbnails
Post by: energy0m on December 09, 2004, 07:52:24 pm
I was wondering if theres an easy way to do what i need to accomplish

first take a look at the gallery:

http://quasar.hyperdrivedns.com/~hoover/gallery/index.php

now on the albums theres 1 album thumbnail instead id like to have several thumbnails to show with a "more" link at the end of the pics ...
im thinking a max of like 5 pictures and then a more link to the album itself ....
how would this be done .... please help!!! 

thanx,
energy0m
Title: Re: albumlist thumbnails
Post by: Casper on December 09, 2004, 08:02:37 pm
Try using bb code in the album description.  You wil have to do this manually, but once done, that's it.
So for each thumb, you would put
Code: [Select]
[img]http://yoursite.com/images/your_image.jpg[/img]
Title: Re: albumlist thumbnails
Post by: energy0m on December 09, 2004, 08:12:15 pm
nize ... gonna try this now :) 

will it align properly with the 1st thumbnail ?
Title: Re: albumlist thumbnails
Post by: energy0m on December 09, 2004, 10:00:49 pm
utilizing BB code is there a way to apply the class thats applied to all the other images on that page the class="image" ?

i tried doing [img class="image"]http://quasar.hyperdrivedns.com/~hoover/gallery/albums/Rolex/thumb_239.JPG[/img]

but it wouldnt pasrse that at all .... any ideas ?
Title: Re: albumlist thumbnails
Post by: Casper on December 09, 2004, 10:24:57 pm
You will have to apply it to the cell in your theme.php

Find this code (twice);
Code: [Select]
<tr height="100%">
                <td align="center" height="100%" valign="middle" class="thumbnails">
                        <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px;
 margin-bottom: 0px; border: none;"><br />
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>
                <td height="100%">
                        <img src="images/spacer.gif" width="1" height="1">
                </td>
                <td width="100%" height="100%" valign="top" class="tableb_compact">
                        {ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}</p>
                </td>
        </tr>

And change the class="tableb" to class="thumbnails", like this;
Code: [Select]
<tr height="100%">
                <td align="center" height="100%" valign="middle" class="thumbnails">
                        <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px;
 margin-bottom: 0px; border: none;"><br />
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>
                <td height="100%">
                        <img src="images/spacer.gif" width="1" height="1">
                </td>
                <td width="100%" height="100%" valign="top" class="thumbnails">
                        {ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}</p>
                </td>
        </tr>