Menu at bottom? Menu at bottom?
 

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

Menu at bottom?

Started by traumlos, November 21, 2004, 08:38:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

traumlos

How do I manage to get the menu (Login, Members Gallery and so on) at the bottom of my gallery? So that the only thing that comes after the menu is the "Powered by Coppermine..."? Right now the menu is right (at the top) to the site logo.

detailed answer (where to change things and how) please beacause I'm not an expert in php... thanks a lot!

Joachim Müller

In fact you could do the same thing you need to do for creating a right-hand menu, refer to http://forum.coppermine-gallery.net/index.php?topic=8051.0

Joachim

traumlos

but wouldn't the menu be right-hand instead of bottom then? I also don't know what to change in theme.php... plz give a more detailed answer, I don't have a clue yet what to change in which files. I don't understand much of php, so it would be helpful to explain it like you do it to a newbie. ;) THANKS!

Casper

Well you just need to do the next logical step in this thread, http://forum.coppermine-gallery.net/index.php?topic=8051.msg36108#msg36108,
which would be to put the menus in a new row under the gallery, as opposed to a cell to the right.
Your template would the look something like this;

<h1>{GAL_NAME}</h1>
<h3>{GAL_DESCRIPTION}</h3><br />
<table><tr>
<td>
{GALLERY}
</td>
</tr><tr>
<td>
{MAIN_MENU}
{ADMIN_MENU}
</td>
</tr></table>
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

traumlos

okay I changed it like you said and now there is a {MAIN_MENU} at the bottom instead of...well...the main menu. ;) do I need to change anything in theme.php or index.php to make it work? and if so, what passage(s) do I have to move where?


traumlos

Ahhh thank you!
It's working fine. :)

just a little detail: is it possible to put the footer under the menu, i.o. words to switch positions of main menu and footer?
right now it's like this in template.php:


$template_vars = array(
        '{MAIN_MENU}' => theme_main_menu(),
        );

    echo template_eval($template_footer, $template_vars);

Nibbler

Not really, the footer is a part of {GALLERY}.

traumlos

okay, thank you anyway ... :)
would look nicer with the footer at the end but if it's impossible (or horribly complicated), then I leave it that way

Joachim Müller

neither impossible nor horribly complicated, but you will have to find out for yourself nevertheless, as telling you how to modify the footer would mean telling you how to get rid of it. Even though you probably won't do that, others might want to do so. As the footer must remain intact and visible, we won't tell. Hope you can understand this.

Joachim