forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started 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
-
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.
-
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
-
So you don't want to change the appearance of the rest of your gallery?
-
Correct.
Only in the lastalb row.
Edward
-
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.
-
I can see a lot of information below your album thumbs, e.g.
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?
-
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.
-
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?
-
For both
-
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>';
}
-
Yep works like I want it to work..
Thanks.
-
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.