Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Centred Header with Menu underneath....  (Read 2961 times)

0 Members and 1 Guest are viewing this topic.

Ellie

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Centred Header with Menu underneath....
« 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.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Centred Header with Menu underneath....
« Reply #1 on: June 27, 2005, 10:26:44 pm »

You should accomplish what you want if you edit template.html.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Centred Header with Menu underneath....
« Reply #2 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.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Centred Header with Menu underneath....
« Reply #3 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.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.