One more request : Only album name underneath thumbnail LASTALB One more request : Only album name underneath thumbnail LASTALB
 

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

One more request : Only album name underneath thumbnail LASTALB

Started by altenae, November 15, 2011, 06:25:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

altenae

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

Αndré

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.

altenae

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

Αndré


altenae


altenae

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.

Αndré

I can see a lot of information below your album thumbs, e.g.
QuoteAirlines: 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?

altenae

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.

Αndré

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?



Αndré

Open include/functions.inc.php, find
$rowset = CPGPluginAPI::filter('thumb_caption_lastalb', $rowset);
and above, add
        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>';
        }

altenae


Αndré

Please don't forget to
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
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.