forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: Ellie on June 27, 2005, 10:07:16 pm

Title: Centred Header with Menu underneath....
Post by: Ellie on June 27, 2005, 10:07:16 pm
Sorry, this has probably been asked a million times but I've searched the board a few times over and not been able to find it, sorry!

I have Coppermine 1.3.3 installed and I want it so my Header is centred and then I have my menu (Album List, Login, etc. etc.) underneath it. How do I go about doing this???

I was able to do this once before but I've had to totally re-install my gallery and have completely forgotten.
Title: Re: Centred Header with Menu underneath....
Post by: kegobeer on June 27, 2005, 10:26:44 pm
You should accomplish what you want if you edit template.html.
Title: Re: Centred Header with Menu underneath....
Post by: Ellie on June 27, 2005, 10:37:44 pm
I've tried but I don't know what PHP code to use.

Everything I try makes the menu above the header.
Title: Re: Centred Header with Menu underneath....
Post by: kegobeer on June 28, 2005, 12:00:20 am
template.html is just plain html, no php code in there.

By header, do you mean the image at the top of your gallery, with the description?

This is a snippet from the classic template:

Code: [Select]
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                       <tr>
                                <td><a href="index.php"><img src="themes/classic/images/site_logo.png" alt="" border="0" /><br /></a></td>
                                <td width="100%" align="center">
                                        <h1>{GAL_NAME}</h1>
                                        <h3>{GAL_DESCRIPTION}</h3><br />
                                        {MAIN_MENU}
                                </td>
                        </tr>
                </table>

To stack everything on top of each other, nice and centered:

Code: [Select]
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                       <tr>
                                <td align="center"><a href="index.php"><img src="themes/classic/images/site_logo.png" alt="" border="0" /><br /></a></td>
                       </tr>
                       <tr>
                                <td width="100%" align="center">
                                        <h1>{GAL_NAME}</h1>
                                        <h3>{GAL_DESCRIPTION}</h3><br />
                                        {MAIN_MENU}
                                </td>
                        </tr>
                </table>

Nothing fancy, just manipulate the tables a little bit.