forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: altenae on October 24, 2011, 09:12:04 pm

Title: Adjustment fields underneath Thumbnails
Post by: altenae on October 24, 2011, 09:12:04 pm
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

Title: Re: Adjustment fields underneath Thumbnails
Post by: Αndré on October 25, 2011, 11:28:57 am
Do you need that modification just for regular albums or also for meta albums (like "last uploads")?
Title: Re: Adjustment fields underneath Thumbnails
Post by: altenae on October 25, 2011, 12:03:09 pm
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
Title: Re: Adjustment fields underneath Thumbnails
Post by: Αndré on October 25, 2011, 02:00:31 pm
I need the Credit thing on all thumbnails.
Open include/functions.inc.php, find
Code: [Select]
$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
Code: [Select]
$caption .= '<span class="thumb_title">Credit: <a href="profile.php?uid=' . $row['owner_id'] . '">' . $cpg_udb->get_user_name($row['owner_id']) . '</a></span>';

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
Code: [Select]
global $CONFIG, $THEME_DIR, $lang_date, $lang_get_pic_data, $cpg_udb;below, add
Code: [Select]
$superCage = Inspekt::makeSuperCage();
then, find
Code: [Select]
if (in_array('msg_date', $must_have)) {and above, add
Code: [Select]
        if (!$superCage->get->testInt('album')) {
            $album_name = get_album_name($row['aid']);
            $caption .= '<span class="thumb_title">Airport: '.$album_name['title'].'</span>';
        }
Title: Re: Adjustment fields underneath Thumbnails
Post by: altenae on October 25, 2011, 02:26:00 pm
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
Title: Re: Adjustment fields underneath Thumbnails
Post by: Αndré on October 25, 2011, 02:47:31 pm
Change
Code: [Select]
if (!$superCage->get->testInt('album')) {to
Code: [Select]
if (!$superCage->get->testInt('album') && $mode != 'albums') {
Title: Re: Adjustment fields underneath Thumbnails
Post by: altenae on October 25, 2011, 02:58:11 pm
Yes that works very very fine...

Thank you.

Edward