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: how to remove the thumbnail box  (Read 3712 times)

0 Members and 1 Guest are viewing this topic.

six42

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
how to remove the thumbnail box
« on: September 25, 2004, 12:36:23 pm »

How can i remove the box that displays the thumbnail for that album?

I just want it to have the single box saying "126 files, last one added on Sep 25, 2004"
« Last Edit: September 26, 2004, 10:51:10 am by TranzNDance »
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: how to remove the thumbnail box
« Reply #1 on: September 25, 2004, 12:50:58 pm »

in theme.php

Code: [Select]
<!-- BEGIN album_cell -->
        <td width="{COL_WIDTH}%"  valign="top" class="tableb_album">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td colspan="3" height="1" valign="top" class="tableh2">
                        <a href="{ALB_LINK_TGT}" class="alblink"><b>{ALBUM_TITLE}</b></a>
                </td>
        </tr>
        <tr >
                <td align="center" height="100%" valign="top" class="thumbnails">
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>
                <td width="100%" height="100%" valign="top" class="tableb_compact">
                        {ADMIN_MENU}
                        <p class="album_desc">{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}</p>
                </td>
        </tr>
        </table>
        </td>
<!-- END album_cell -->

Remove

Code: [Select]
                <td align="center" height="100%" valign="top" class="thumbnails">
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: how to remove the thumbnail box
« Reply #2 on: September 25, 2004, 04:19:57 pm »

You will also have to change the 'colspan' setting for the row above, to match the number of cells in the row you are removing the thumbnail from.  In  Rodinou's example, the cell containing the spacer.gif is missing, so the original colspan should be 2, not 3, and when removing the cell with the thumb in it, the colspan would not be required, as both rows would now have only 1 cell.

Hope that's clear.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: how to remove the thumbnail box
« Reply #3 on: September 25, 2004, 05:09:48 pm »

it's the code 2bornot2b :)

But anyway

the code in relation with colspan is a problem when number of cols are > of the colspan ... example

if you put colspan = 3 but you have 4 columns, it's not "the end of the world" (french expression)

but if you have colspan = 14 but only 2 rows, the layout is not affected.

I have seen it too ... but I didn't wanted to explain to prevent from complicate ... :)

I'm working of this portion in tableless mode too ... code "added" this day.
« Last Edit: September 25, 2004, 05:16:27 pm by Rodinou »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: how to remove the thumbnail box
« Reply #4 on: September 25, 2004, 10:23:40 pm »

@ Rodinou,

my post was not meant as a critism, just trying to help keep the code from giving probs.
And I realised it was just a cut and paste and not your wrong code.

And 'it's not the end of the world' is also an expression in English  ;)
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: how to remove the thumbnail box
« Reply #5 on: September 26, 2004, 12:03:41 am »

héhé Casper, great ! :)

But I'd rather to "precise" : in another post, I saw to tarique "you are crazy" and he has taken it very bad ... in France, the sense is really different. I forget sometimes Coppermine = several lands ... and so the expressions have differents sens ...

In french, the expression is "Ce n'est pas la fin du monde" ! :)
« Last Edit: September 26, 2004, 10:44:08 pm by Rodinou »
Logged

six42

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: how to remove the thumbnail box
« Reply #6 on: September 26, 2004, 10:47:45 am »

Well thanks to both of you, i did what Rodinou said and it works perfect, so im happy :)
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 21 queries.