coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Neosporin on June 13, 2009, 04:17:00 PM

Title: [Solved]: Moving the Title in Thumbnail View
Post by: Neosporin on June 13, 2009, 04:17:00 PM
Well, I know I said I only had one problem, but I lied :P

I would like to move my Thumbnail title to the TOP of the thumbnail, rather than the bottom.

I was just wondering, would it be possible to move just the title up above the image, or does everything (comments, date, etc) come with it?

For reference, http://www.productofenvy.org/mmofacescop/thumbnails.php?album=1
Title: Re: Moving the Title in Thumbnail View
Post by: Nibbler on June 13, 2009, 04:23:52 PM
It's all part of the same token.

Add the following to your custom theme.php


// 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">
                                        {CAPTION}
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
                                        {ADMIN_MENU}
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{THUMB_COLS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                       {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;

Title: Re: Moving the Title in Thumbnail View
Post by: Neosporin on June 13, 2009, 04:27:10 PM
Quote from: Nibbler on June 13, 2009, 04:23:52 PM
It's all part of the same token.

Add the following to your custom theme.php


// 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">
                                        {CAPTION}
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
                                        {ADMIN_MENU}
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{THUMB_COLS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                       {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;



Hmm, nothing has changed after adding that to my theme.php
Title: Re: Moving the Title in Thumbnail View
Post by: Nibbler on June 13, 2009, 04:38:03 PM
You'll need to apply the change manually to enlargeit.
Title: Re: Moving the Title in Thumbnail View
Post by: Neosporin on June 13, 2009, 05:32:16 PM
Quote from: Nibbler on June 13, 2009, 04:38:03 PM
You'll need to apply the change manually to enlargeit.

Okay, thanks. Updated it

http://www.productofenvy.org/mmofacescop/index.php