Adjustment fields underneath Thumbnails Adjustment fields underneath Thumbnails
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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