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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.