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: Display Album Description on Thumbnails Page  (Read 11313 times)

0 Members and 1 Guest are viewing this topic.

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Display Album Description on Thumbnails Page
« 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'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,

Logged

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Re: Display Album Description on Thumbnails Page
« Reply #1 on: November 05, 2010, 07:35:41 pm »

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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Display Album Description on Thumbnails Page
« Reply #2 on: November 05, 2010, 10:40:15 pm »

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

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Re: Display Album Description on Thumbnails Page
« Reply #3 on: November 06, 2010, 04:26:29 pm »

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Display Album Description on Thumbnails Page
« Reply #4 on: November 07, 2010, 06:47:16 pm »

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

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

scohen125

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 100
    • Retina Gallery
Re: Display Album Description on Thumbnails Page
« Reply #5 on: November 08, 2010, 01:09:43 am »

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. 
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Display Album Description on Thumbnails Page
« Reply #6 on: March 22, 2011, 11:35:02 pm »

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
Code: [Select]
// 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Display Album Description on Thumbnails Page
« Reply #7 on: March 23, 2011, 09:42:05 am »

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
Code: [Select]
        $param['{ALBUM_NAME}'] = $album_name;and replace with
Code: [Select]
        $album_name .= '<span class="albdesc"> - '.$CURRENT_ALBUM_DATA['description'].'</span>';
        $param['{ALBUM_NAME}'] = $album_name;
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Display Album Description on Thumbnails Page
« Reply #8 on: March 23, 2011, 10:17:13 am »

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
Logged

doppler

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Display Album Description on Thumbnails Page
« Reply #9 on: October 29, 2011, 02:39:39 pm »

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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Display Album Description on Thumbnails Page
« Reply #10 on: November 03, 2011, 04:36:44 pm »

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

xiangju

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Display Album Description on Thumbnails Page
« Reply #11 on: March 11, 2012, 07:37:40 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Display Album Description on Thumbnails Page
« Reply #12 on: March 12, 2012, 10:51:18 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.