coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: FinnK on November 10, 2003, 08:29:59 PM

Title: How to truncate picture description in album view
Post by: FinnK on November 10, 2003, 08:29:59 PM
I am using Coppermine to put pictures and text into some sort av traveling diary for a relative traveling in South America.

The diary text goes into the picture descriptions - and they tend to be rather long compeared to a normal picture description.

The result is that the album view becomes very "unpractical".

Is there a way to truncate picture descriptions in album view to a standard lenght? -so visitors has to "view picture" to read the rest.

Take a look: http://reisen.krogvig.no and open the album called Argentina

Thanks for all suggestions.
Title: How to truncate picture description in album view
Post by: John on November 10, 2003, 10:36:24 PM
try looking here

http://forum.coppermine-gallery.net/index.php?topic=550

maybe this helps you[/url]
Title: How to truncate picture description in album view
Post by: FinnK on November 12, 2003, 01:13:12 AM
Thanks for the tip, but this hack is for scrolling the ALBUM descriptions in the "album list".

I have long PICTURE descriptions wich messes up the page with thumbnails inside the albums.

If I knew where I could find where the code for displaying thumbnails and their PICTURE descriptions maybe the same type of hack could work?

Could anyone please point me in the right direction?
Title: How to truncate picture description in album view
Post by: moorey on November 12, 2003, 02:01:49 AM
In theme.php, look for this line (around line 493 for the default theme):

// HTML template for intermediate image display
...
...


Edit as necessary.
Title: How to truncate picture description in album view
Post by: FinnK on November 12, 2003, 07:22:11 PM
Sorry, but this it is not where I want to scroll the text either, as far as I can understand.

Where I want to scroll the text is where you get when you first go into the album: There are thumbnails for each picture in the album with picture title underneath and then there is the picture description.

If you check out http://reisen.krogvig.no/coppermine and open the album "Argentina, Buenos Aires" you will hopefully see what I mean.
Title: I found it myself
Post by: FinnK on November 14, 2003, 01:04:25 AM
Yess!

I found where the <div> code for scrolling long text when displaying thumnails and picture descriptions (=caption) inside albums should go.

Its in the same file as mentioned before (of course):theme.php inside the folder for the theme in use.

The red is the new code.

Quote.....snip....
// HTML template for thumbnails display
$template_thumbnail_view = <<<EOT

<!-- BEGIN header -->
        <tr>
<!-- END header -->
<!-- BEGIN thumb_cell -->
        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
                <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center">
                                                                <div style="width:100%;height:200px;position:relative;overflow:auto;padding-right:10px">
                                     <a href="{LINK_TGT}">{THUMB}<br /></a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                                                                </div>
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->
.....snip....