Centred Header with Menu underneath.... Centred Header with Menu underneath....
 

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

Centred Header with Menu underneath....

Started by Ellie, June 27, 2005, 10:07:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ellie

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.

kegobeer

You should accomplish what you want if you edit template.html.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Ellie

I've tried but I don't know what PHP code to use.

Everything I try makes the menu above the header.

kegobeer

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:

                <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:

                <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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots