coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: houserocker on August 25, 2008, 05:14:43 PM

Title: thumnails centred aligned instead of top.
Post by: houserocker on August 25, 2008, 05:14:43 PM
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
Title: Re: thumnails centred aligned instead of top.
Post by: Nibbler on August 25, 2008, 05:52:39 PM
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'.
Title: Re: thumnails centred aligned instead of top.
Post by: houserocker on August 26, 2008, 09:29:06 AM
i dont understand? i get the theme template from my folder its already on? and then what? sorry for not understanding straight waay :)
Title: Re: thumnails centred aligned instead of top.
Post by: Nibbler on August 26, 2008, 10:15:03 AM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_sample
Title: Re: thumnails centred aligned instead of top.
Post by: houserocker on August 26, 2008, 12:10:29 PM
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?
Title: Re: thumnails centred aligned instead of top.
Post by: Nibbler on August 26, 2008, 12:58:54 PM
You need to copy from

$template_thumbnail_view = <<<EOT

to

EOT;

You only copied half the template.