Adjustment fields underneath Thumbnails Adjustment fields underneath Thumbnails
 

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

Adjustment fields underneath Thumbnails

Started by altenae, October 24, 2011, 09:12:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

altenae

Hi,

I have two request.

1.

Underneath the thumbnail you see the name of the uploader.

What I want is to add the word "Credit" in front of the uploaders name.

So "name uploader" ==> Credit: "name uploader"

2.

I want the album name to be visible underneath the thumnails.
And also put the word "Airport" in front of this (because my album names are always airports.
So Airport: "albumname"

Thank you....
I love coppermine.....thanks


Αndré

Do you need that modification just for regular albums or also for meta albums (like "last uploads")?

altenae

I need the Credit thing on all thumbnails.

The Albumname ( with the "airport:" in front  should not be visible underneath the thumbnails when displaying an album.( which is an airportname)

Thanks,

Edward

Αndré

Quote from: altenae on October 25, 2011, 12:03:09 PM
I need the Credit thing on all thumbnails.
Open include/functions.inc.php, find
$caption .= '<span class="thumb_title"><a href="profile.php?uid=' . $row['owner_id'] . '">' . $cpg_udb->get_user_name($row['owner_id']) . '</a></span>';
and replace with
$caption .= '<span class="thumb_title">Credit: <a href="profile.php?uid=' . $row['owner_id'] . '">' . $cpg_udb->get_user_name($row['owner_id']) . '</a></span>';


Quote from: altenae on October 25, 2011, 12:03:09 PM
The Albumname ( with the "airport:" in front  should not be visible underneath the thumbnails when displaying an album.( which is an airportname)
Open include/functions.inc.php, find
global $CONFIG, $THEME_DIR, $lang_date, $lang_get_pic_data, $cpg_udb;
below, add
$superCage = Inspekt::makeSuperCage();

then, find
if (in_array('msg_date', $must_have)) {
and above, add
        if (!$superCage->get->testInt('album')) {
            $album_name = get_album_name($row['aid']);
            $caption .= '<span class="thumb_title">Airport: '.$album_name['title'].'</span>';
        }

altenae

Hi,

Thank you.
This is exactly what I meant.

One question:

I don't want the Airport: Albumname to be visible underneath the lastalb thumbnails, because the Albumname is already there.

Thanks for your time.

Edward

Αndré

Change
if (!$superCage->get->testInt('album')) {
to
if (!$superCage->get->testInt('album') && $mode != 'albums') {

altenae

Yes that works very very fine...

Thank you.

Edward