forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: bosca on October 25, 2004, 03:45:03 pm

Title: Thumbnails descripion on the top of the pic, title down
Post by: bosca on October 25, 2004, 03:45:03 pm
Hi, I would set the thumbnails view in this way:

 description

  ------------
  | image |
  ------------

    title

I try to change theme.php (classic):

// HTML template for thumbnails display
$template_thumbnail_view = <<<EOT

<!-- BEGIN header -->
        <tr>
<!-- END header -->
<!-- BEGIN thumb_cell -->
        <td valign="middle" class="thumbnails" width ="{CELL_WIDTH}" align="center">
                <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center">
                                        {CAPTION}<br />
               <a href="{LINK_TGT}">{THUMB}<br /></a>
                                        {ADMIN_MENU}
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->

but the result is that all the information on the picture go before the image.
Can you help me? what have I to change?  

Thanks.
Title: Re: Thumbnails descripion on the top of the pic, title down
Post by: Joachim Müller on October 26, 2004, 05:54:45 am
the caption in this case is the additional data like title, date and uploader name, not the title or the caption only. What you want to accomplish will require additional code changes in various places - you have to understand how the placeholder {CAPTION} is being composed - it would require changes both to themes/yourtheme/theme.php and include/functions.inc.php (only recommended for very experienced users).

Joachim
Title: Re: Thumbnails descripion on the top of the pic, title down
Post by: bosca on October 27, 2004, 10:11:04 am
up  :-[