thumnails centred aligned instead of top. thumnails centred aligned instead of top.
 

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]

Main Menu

thumnails centred aligned instead of top.

Started by houserocker, August 25, 2008, 05:14:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

houserocker

http://www.clubbersguide.com.au/photos/thumbnails.php?album=182

as you can see in this gallery, the pictures that are 150 x 100 are aligned to the top instead of centred, how do i make all pictures centered horizonaly and vertically in the albumb? thanks in advance

Nibbler

Copy the $template_thumbnail_view template from the sample theme.php into your custom theme.php and then change the valign from 'top' to 'middle'.

houserocker

i dont understand? i get the theme template from my folder its already on? and then what? sorry for not understanding straight waay :)


houserocker

okay so i grabbed this code:

$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">
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->

where do i put it in the theme.php file? i added it between:

define('THEME_IS_XHTML10_TRANSITIONAL',1);

?>

and gave me an error? anyone ideas?

Nibbler

You need to copy from

$template_thumbnail_view = <<<EOT

to

EOT;

You only copied half the template.