Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Removing thumbnails, but keeping layout  (Read 5604 times)

0 Members and 1 Guest are viewing this topic.

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Removing thumbnails, but keeping layout
« 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.


(http://www.bymnews.com/gallery.jpg)
« Last Edit: October 09, 2005, 06:57:57 pm by Stramm »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Removing thumbnails, but keeping layout
« Reply #1 on: October 05, 2005, 03:01:01 pm »

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

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Removing thumbnails, but keeping layout
« Reply #2 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

(http://www.bymnews.com/gallery2.png)

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


Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Removing thumbnails, but keeping layout
« Reply #3 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 :)

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Removing thumbnails, but keeping layout
« Reply #4 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.  ;)
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Removing thumbnails, but keeping layout
« Reply #5 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.

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Removing thumbnails, but keeping layout
« Reply #6 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!
Logged

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Removing thumbnails, but keeping layout
« Reply #7 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>
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Removing thumbnails, but keeping layout
« Reply #8 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

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Removing thumbnails, but keeping layout
« Reply #9 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
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 21 queries.