Removing thumbnails, but keeping layout Removing thumbnails, but keeping layout
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Removing thumbnails, but keeping layout

Started by marian, October 05, 2005, 02:30:38 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

marian

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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.bymnews.com%2Fgallery.jpg&hash=f8b0c6b4ea50a2f21b4b0238580a3c865e2f9fe6)

Stramm

in config set 'Show first level album thumbnails in categories' to 'no'

marian

Quote from: Stramm on October 05, 2005, 03:01:01 PM
in config set 'Show first level album thumbnails in categories' to 'no'
I tried that, but it produces this

(https://coppermine-gallery.com/forum/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.



Stramm

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 :)

marian

Quote from: Stramm on October 05, 2005, 04:16:30 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.  ;)

Stramm

in your theme php find $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
<a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
you're rid of the pics.

marian

Quote from: Stramm on October 06, 2005, 01:32:31 PM
in your theme php find $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
<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!

marian

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>

Stramm

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

marian

Quote from: 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
That worked perfectly, many thanks even with my massive bandwidth I can detect that it is much faster