Advanced search  

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

Pages: [1]   Go Down

Author Topic: Adjustment fields underneath Thumbnails  (Read 3461 times)

0 Members and 1 Guest are viewing this topic.

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Adjustment fields underneath Thumbnails
« 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

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Adjustment fields underneath Thumbnails
« Reply #1 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")?
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Adjustment fields underneath Thumbnails
« Reply #2 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Adjustment fields underneath Thumbnails
« Reply #3 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>';
        }
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Adjustment fields underneath Thumbnails
« Reply #4 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Adjustment fields underneath Thumbnails
« Reply #5 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') {
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Adjustment fields underneath Thumbnails
« Reply #6 on: October 25, 2011, 02:58:11 pm »

Yes that works very very fine...

Thank you.

Edward
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.