Remove function item from "Recently updated albums" Remove function item from "Recently updated albums"
 

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

Remove function item from "Recently updated albums"

Started by biellebrunner, March 18, 2016, 02:15:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

biellebrunner

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

allvip

#1
Quote from: biellebrunner on March 18, 2016, 02:15:41 AM
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)


    position: absolute;
    right: 0;
    left: 0;


biellebrunner