Display Album Description on Thumbnails Page Display Album Description on Thumbnails Page
 

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

Display Album Description on Thumbnails Page

Started by scohen125, November 04, 2010, 05:24:52 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

scohen125

I have removed the album description from the album view page because it cluttered things up too much with many albums:
http://retinagallery.com/index.php?cat=7


I'd like the album description to show up somewhere though.  Can someone help me with code to put the description on the thumbnails page:
http://retinagallery.com/thumbnails.php?album=8&page=1

I am using the 'curves' theme.  If there is another theme that already does this - shows albums with descriptions only on the album view page, but shows the detailed description of the album on the 'thumbnail' page, I could switch to that theme. 

Thanks,


scohen125

My current theme.php file is attached here.  It has a few adjustments in it already.  One is an addition to remove the descriptions from the album view page which now looks like this:
http://www.retinagallery.com/index.php?cat=3

The other is to add buttons at the top of the page, one of which, 'create album' only shows up when logged in.

I'd like to have the album description appear in full on the albums thumbnail page:
http://www.retinagallery.com/thumbnails.php?album=44

Αndré

Please describe where exactly you want to display the album description on the thumbnails page.

scohen125

I think it would look best just below the album title but above the thumbnails.  So someone could read the description and then look at the images. 

http://www.retinagallery.com/thumbnails.php?album=30

So on the above link, if it were just below the title "AMD - Dry - Progressing Geographic Atrophy", spanning the width of the page, and then with the thumbnails below it.

Thank you again for the help.

Αndré

Copy function theme_display_thumbnails to your themes theme.php file if it doesn't exists. Then, find
CPGPluginAPI::action('theme_thumbnails_wrapper_start', null);
and replace with
    CPGPluginAPI::action('theme_thumbnails_wrapper_start', null);

    $title .= $CURRENT_ALBUM_DATA['description'];

scohen125

Thank you.  For spacing purposes I had to add to <BR /> 's to the code as follows:

CPGPluginAPI::action('theme_thumbnails_wrapper_start', null);
$title .= '<br/><br/>'.$CURRENT_ALBUM_DATA['description'];

and it worked like a charm.

I appreciate the help.  If you could help me with my flash file uploader I will be hugely grateful.  That is on another post.  I have tried everything I could find on the bulletin boards and my flash uploader is suddenly broken.  It had been working until I had a login problem.

So thank you for the help with this. The site is looking beautiful and I thank all the developers at coppermine for their outstanding work. 

Walkinman

Hey André

I'm trying to get the description to appear, and this mod you've suggested works fine, but I don't want the description on a new line, but immediately after the Album Title. On the revious version of cpg, with some other mods, I coded this
// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

        <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td style="width:60%;vertical-align:top" class="statlink">
                    <h2>{ALBUM_NAME}<span class="albdesc"> -    $album_desc</span></h2>
                </td>
                <td style="text-align:right;">


and it all worked fine. You can see that (while it's still running) here.

With the mod you've posted above, I get this - where the description is on a new line. I've been trying all morning to tweak it to work, but can't get this right.

Appreciate your help, as always.

Thank you.

Cheers

Carl

Αndré

Quote from: Walkinman on March 22, 2011, 11:35:02 PM
I don't want the description on a new line, but immediately after the Album Title

Copy function theme_display_thumbnails to your theme's theme.php file if it doesn't exists. Then, find
        $param['{ALBUM_NAME}'] = $album_name;
and replace with
        $album_name .= '<span class="albdesc"> - '.$CURRENT_ALBUM_DATA['description'].'</span>';
        $param['{ALBUM_NAME}'] = $album_name;

Walkinman

Hey André

You're awesome. Thanks so much. You have no idea how many hours I spent trying to get this working right. Thank you.

Cheers

Carl

doppler

I am sorry - my theme.php  has only 5 lines. I use verwicht_giallo theme.

whole code is

Quote
<?php
define('THEME_IS_XHTML10_TRANSITIONAL',1);
define('THEME_HAS_PROGRESS_GRAPHICS', 1);
$template_sub_menu_spacer =  $template_sys_menu_spacer = '';
?>

When I put there those function what you suggests I have critical error. And I am afraid that in the newest update of Coppermine this function doesn't exist.

Can you explain me exactly how to do it? (displaying description of album under album name in thumbnails view). Thanks in advance

Αndré

Please post the error message and attach your modified theme.php file.

xiangju

Quote from: scohen125 on November 04, 2010, 05:24:52 PM
I have removed the album description from the album view page because it cluttered things up too much with many albums:
http://retinagallery.com/index.php?cat=7

I have the same problem: 
Please tell me how to do it. What coding should be removed from theme.php?
Best,
Yang

Αndré

Quote from: Joachim Müller on September 28, 2008, 10:28:42 AM
10. One question per thread
We have a strict "One question/issue per thread rule", which helps both supporters/moderators to keep track of open/closed issues as well as users who search the board or browse it, looking for answers to their question. Don't try to "hijack" other's threads by posting unrelated questions to an existing thread.

@xiangju: Your question isn't related to the topic's subject. Locking.