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: [Solved]: Moving the Title in Thumbnail View  (Read 2976 times)

0 Members and 1 Guest are viewing this topic.

Neosporin

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
[Solved]: Moving the Title in Thumbnail View
« 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
« Last Edit: June 13, 2009, 05:44:22 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Moving the Title in Thumbnail View
« Reply #1 on: June 13, 2009, 04:23:52 pm »

It's all part of the same token.

Add the following to your custom theme.php

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

Neosporin

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Moving the Title in Thumbnail View
« Reply #2 on: June 13, 2009, 04:27:10 pm »

It's all part of the same token.

Add the following to your custom theme.php

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

Nibbler

  • Guest
Re: Moving the Title in Thumbnail View
« Reply #3 on: June 13, 2009, 04:38:03 pm »

You'll need to apply the change manually to enlargeit.
Logged

Neosporin

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Moving the Title in Thumbnail View
« Reply #4 on: June 13, 2009, 05:32:16 pm »

You'll need to apply the change manually to enlargeit.

Okay, thanks. Updated it

http://www.productofenvy.org/mmofacescop/index.php
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.