forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: marian on October 05, 2005, 02:30:38 pm

Title: Removing thumbnails, but keeping layout
Post by: marian on October 05, 2005, 02:30:38 pm
I want to get rid of the album thumbnails but keep the layout with the albums listed. T
The image illustrates what I mean. Any help appreciated as I've searched and searched and cant see how to do this.


(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.bymnews.com%2Fgallery.jpg&hash=f8b0c6b4ea50a2f21b4b0238580a3c865e2f9fe6)
Title: Re: Removing thumbnails, but keeping layout
Post by: Stramm on October 05, 2005, 03:01:01 pm
in config set 'Show first level album thumbnails in categories' to 'no'
Title: Re: Removing thumbnails, but keeping layout
Post by: marian on October 05, 2005, 03:17:57 pm
in config set 'Show first level album thumbnails in categories' to 'no'
I tried that, but it produces this

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.bymnews.com%2Fgallery2.png&hash=76a058b1145752ce793720f4f24dbd53fd07f1ec)

which isn't what I want, as it doesn't show the Album Titles, nor date of  last additions and, IMHO, isn't attractive.


Title: Re: Removing thumbnails, but keeping layout
Post by: Stramm on October 05, 2005, 04:16:30 pm
yes, that's actually how it works
You can have the last uploaded thumb in fron of the category. To display a list of the albums below the categories just without the thumbs would mean some changes in theme.php (minor ones)

And if it's attractive or not I let others descide :)
Title: Re: Removing thumbnails, but keeping layout
Post by: marian on October 05, 2005, 05:39:37 pm
To display a list of the albums below the categories just without the thumbs would mean some changes in theme.php (minor ones)
I'm (just about) up to making minor changes to theme php, of someone will please tell me what I should change.  ;)
Title: Re: Removing thumbnails, but keeping layout
Post by: Stramm on October 06, 2005, 01:32:31 pm
in your theme php find
Code: [Select]
$template_album_list_cat = <<<EOT
below is the html that controls displaying the first level album thumbnails in categories. if you delete a few lines below
Code: [Select]
<a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>you're rid of the pics.
Title: Re: Removing thumbnails, but keeping layout
Post by: marian on October 06, 2005, 01:47:17 pm
in your theme php find
Code: [Select]
$template_album_list_cat = <<<EOT
below is the html that controls displaying the first level album thumbnails in categories. if you delete a few lines below
Code: [Select]
<a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>you're rid of the pics.
Many thanks, I will do that in the early hours, when any cockups are less likely to matter!
Title: Re: Removing thumbnails, but keeping layout
Post by: marian on October 08, 2005, 08:48:39 pm
I tried removing this code:
<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>
but nothing happened. All the thumbnails were still there  ???
        </tr>
Title: Re: Removing thumbnails, but keeping layout
Post by: Stramm on October 09, 2005, 12:06:09 am
there are two occurances of this line. Therefore I've written a few lines below $template_album_list_cat = <<<EOT

not below $template_album_list = <<<EOT    <--- this is not good
Title: Re: Removing thumbnails, but keeping layout
Post by: marian on October 09, 2005, 06:10:39 pm
there are two occurances of this line. Therefore I've written a few lines below $template_album_list_cat = <<<EOT

not below $template_album_list = <<<EOT    <--- this is not good
That worked perfectly, many thanks even with my massive bandwidth I can detect that it is much faster