Advanced search  

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]

Pages: [1]   Go Down

Author Topic: One more request : Only album name underneath thumbnail LASTALB  (Read 4270 times)

0 Members and 1 Guest are viewing this topic.

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
One more request : Only album name underneath thumbnail LASTALB
« on: November 15, 2011, 06:25:58 pm »

Hi,

What I want is only the album name underneath thumbnails from the LASTALB.

I tried some things in the "case 'Lastalb'" in the functions.inc.php.....
No luck with this eithers....

I ask a lot here on this forum....
I hope it is not a problem.

Edward
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #1 on: November 16, 2011, 03:57:47 pm »

So you don't want to change the appearance of the rest of your gallery? What exactly is displayed underneath those thumbnails? Please post a link to your gallery.
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #2 on: November 16, 2011, 04:06:24 pm »

www.planepix.nl

You see the "Last updated Airport / Album " block (Lastalb option)

What I want underneath the thumbnail is only the Album name..


Edward
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #3 on: November 16, 2011, 04:11:33 pm »

So you don't want to change the appearance of the rest of your gallery?
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #4 on: November 16, 2011, 04:52:29 pm »

Correct.

Only in the lastalb row.

Edward
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #5 on: November 19, 2011, 04:20:31 pm »

Tried som things to the functions.inc.php in the following case:

case 'lastalb': // Last albums to which files have been uploaded

The caption is build here:

if ($set_caption) {
                build_caption($rowset, array('ctime'), 'albums');
            }

I tried to modify this captions so that only the Album Name is underneath the thumbnail.
No luck with this either.

maybe someone can give me another hint.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #6 on: November 23, 2011, 03:26:40 pm »

I can see a lot of information below your album thumbs, e.g.
Quote
Airlines: Aerosur
Type: Boeing 767-200
Registration: CP-2659
Photographer: Peter van Stelle
Airport: Miami
Date added: Nov 22, 2011

Am I right that the bold marked text is the album name you want to display?
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #7 on: November 23, 2011, 03:39:32 pm »

Everything has to stay like that.

Only for the lastalb (in my gallery "Last updated Airport / Album")

Right now:


Miami
Airlines: Aerosur
Type: Boeing 767-200
Registration: CP-2659

Photographer: Peter van Stelle
Date added: Nov 22, 2011

Should change only to:

Miami

See this link for example:

http://www.planepix.nl/thumbnails.php?album=lastalb&cat=0

So only for the "lastalb" I am interested only in de album name underneath.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #8 on: November 23, 2011, 03:53:08 pm »

Sorry, I copied the information from the wrong meta album ::)


The output of that meta album can be seen at two places:
1.) http://www.planepix.nl/thumbnails.php?album=lastalb (the actual meta album)
2.) http://www.planepix.nl/index.php (a section at the content of the main page)

Should it be changed for both places, or just for one of them?

Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #9 on: November 23, 2011, 04:07:57 pm »

For both
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #10 on: November 23, 2011, 04:22:37 pm »

Open include/functions.inc.php, find
Code: [Select]
$rowset = CPGPluginAPI::filter('thumb_caption_lastalb', $rowset);and above, add
Code: [Select]
        foreach ($rowset as $i => $row) {
            preg_match('/<span class="thumb_title">(.*)<\/span>/U', $row['caption_text'], $matches);
            $rowset[$i]['caption_text'] = '<span class="thumb_title">'.$matches[1].'</span>';
        }
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #11 on: November 23, 2011, 04:27:13 pm »

Yep works like I want it to work..

Thanks.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: One more request : Only album name underneath thumbnail LASTALB
« Reply #12 on: November 23, 2011, 04:58:42 pm »

Please don't forget to
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.