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: Filmstrip valign?  (Read 3372 times)

0 Members and 1 Guest are viewing this topic.

shronk

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Filmstrip valign?
« on: December 07, 2007, 01:06:23 am »

Hi there

So I wanted to change the valign of the filmstrip from top to middel so that it'll look better.
However I couldn't find where the alignment is set?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Filmstrip valign?
« Reply #1 on: December 07, 2007, 08:08:45 am »

edit themes/yourtheme/theme.php, find
Code: [Select]
$template_film_stripand edit as you see fit. If that section doesn't exist in your custom theme, copy
Code: [Select]
// HTML template for filmstrip display
$template_film_strip = <<<EOT

        <tr>
         <td valign="top" style="background-image: url({TILE1});"><img src="{TILE1}" alt="" border="0" /></td>
        </tr>
        <tr>
        <td valign="bottom" class="thumbnails" align="center">
          <table width="100%" cellspacing="0" cellpadding="3" border="0">
              <tr>
                 <td width="50%"></td>
                 {THUMB_STRIP}
                 <td width="50%"></td>
              </tr>
          </table>
        </td>
        </tr>
        <tr>
         <td valign="top" style="background-image: url({TILE2});"><img src="{TILE2}" alt="" border="0" /></td>
        </tr>
<!-- BEGIN thumb_cell -->
                <td valign="top" align="center">
                                        <a href="{LINK_TGT}">{THUMB}</a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" align="center" >&nbsp;</td>
<!-- END empty_cell -->

EOT;
from themes/sample/theme.php into a new line before
Code: [Select]
?>of themes/yourtheme/theme.php
Logged

shronk

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Filmstrip valign?
« Reply #2 on: December 07, 2007, 02:08:29 pm »

that doesn't work because the align is inside the {THUMB_STRIP} code :-\
Logged

Nibbler

  • Guest
Re: Filmstrip valign?
« Reply #3 on: December 07, 2007, 02:32:39 pm »

You want to change the valign of the cell holding the thumb image right? So change it in the thumb_cell section.

Code: [Select]
<!-- BEGIN thumb_cell -->
                <td valign="top" align="center">
                                        <a href="{LINK_TGT}">{THUMB}</a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                </td>
<!-- END thumb_cell -->
Logged

shronk

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Filmstrip valign?
« Reply #4 on: December 07, 2007, 02:50:18 pm »

Code: [Select]
<!-- BEGIN thumb_cell -->
                <td valign="middle" align="center">
                                        <a href="{LINK_TGT}">{THUMB}</a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                </td>
<!-- END thumb_cell -->

so this should actually align the tumbnails in the thumbstrip correctly, however, the smaller (in height) ones still stick on top  :-\
Logged

Nibbler

  • Guest
Re: Filmstrip valign?
« Reply #5 on: December 07, 2007, 03:08:39 pm »

Post a link.
Logged

shronk

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Logged

Nibbler

  • Guest
Re: Filmstrip valign?
« Reply #7 on: December 07, 2007, 03:52:11 pm »

http://matterhorny.ch/portal/templates/matterhorny/css/template_css.css:

Code: [Select]
* {
margin:0;
padding:0;
align:center;
vertical-align:top;
}

 ::)
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.