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: Remove function item from "Recently updated albums"  (Read 3880 times)

0 Members and 1 Guest are viewing this topic.

biellebrunner

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Remove function item from "Recently updated albums"
« on: March 18, 2016, 02:15:41 am »

Ok, so here's the thing.
In my gallery, under the thumbnails, I have displayed the file dimensions and, on hover, the number of views. When it's the "recently updated albums" bit, it also has the Album name.
In this part ("Recently updated albums"), I'd like to remove/hide the file dimensions (since it's the whole album that was updated, I see no point in showing the dimensions of the display image, that not necessarily is the last one uploaded to that album).
I tried to do that with css, positioning the Album name as "absolute", so it'd be in front of the file dimensions. But album names can vary in size, so some of them were going "out" of the table. If I were to set the dimensions as absolute, then I'd need to change the padding to make it fit inside the table, but then it'd have too much padding under the album name.
Is there a way, either editing the theme.php or maybe functions.inc.php, so when/if it's "Recently updated albums" the file dimensions would automatically be omitted?
If needed, this is the gallery I'm using to test the theme: http://stanakaticbrasil.com/galteste
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Remove function item from "Recently updated albums"
« Reply #1 on: March 18, 2016, 12:06:55 pm »

I see no point in showing the dimensions of the display image, that not necessarily is the last one uploaded to that album).

It always is the last one uploaded in that album.

Wrapp each meta album in his own div ( Layout of meta albums) http://forum.coppermine-gallery.net/index.php/topic,77261.msg373517.html#msg373517

That code will wrapp on every page Last updated albums table in div class lastalb, random in div class random,
Last additions in div class lastup and pages like http://stanakaticbrasil.com/galteste/thumbnails.php?album=lastup&cat=0 in div class metalastup, http://stanakaticbrasil.com/galteste/thumbnails.php?album=topn  in div class matatopn. Same for Last comments, Most viewed, Top rated and Favourite files if they have thumbnails to display.
Example http://stanakaticbrasil.com/galteste/thumbnails.php?album=lastcom&cat=0 has No image to display. It won't be wrapped in a div class lastcom.

So you can add to your theme style.css:

.lastalb .thumb_size {
    display: none;
}

You can remove from .thumb_size (if you don't need it anymore)

Code: [Select]
    position: absolute;
    right: 0;
    left: 0;
« Last Edit: March 18, 2016, 12:16:15 pm by allvip »
Logged

biellebrunner

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Remove function item from "Recently updated albums"
« Reply #2 on: March 19, 2016, 06:30:43 am »

Worked like a charm. Thank you so much!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.