coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: altenae on November 15, 2011, 06:25:58 PM

Title: One more request : Only album name underneath thumbnail LASTALB
Post by: altenae 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
Title: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: Αndré 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.
Title: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: altenae 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
Title: Re: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: Αndré on November 16, 2011, 04:11:33 PM
Quote from: Αndré on November 16, 2011, 03:57:47 PM
So you don't want to change the appearance of the rest of your gallery?
Title: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: altenae on November 16, 2011, 04:52:29 PM
Correct.

Only in the lastalb row.

Edward
Title: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: altenae 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.
Title: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: Αndré on November 23, 2011, 03:26:40 PM
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?
Title: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: altenae 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.
Title: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: Αndré 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?

Title: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: altenae on November 23, 2011, 04:07:57 PM
For both
Title: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: Αndré on November 23, 2011, 04:22:37 PM
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>';
        }
Title: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: altenae on November 23, 2011, 04:27:13 PM
Yep works like I want it to work..

Thanks.
Title: Re: One more request : Only album name underneath thumbnail LASTALB
Post by: Αndré on November 23, 2011, 04:58:42 PM
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.