View Full Version : Get rid of top navigation bar
koen_brader
28th of August 2004 (Sat), 21:35
Hello;
I have recently installed EE (http://www.vassar.info/gallery/) and was wondering how can I get rid of or edit the top navigation bar -- the black strip with menu items such as "JOIN Digital Photo Gallery Database NOW!".
Many thanks
Laszlo
neil_r
29th of August 2004 (Sun), 12:52
You can edit it in the file:-
/gallery/languages/eng/header.php
N
Pekka
29th of August 2004 (Sun), 14:26
The headers and footers is three-level system:
1. EE gallery root is searched for header.php and footer.php. These are shared between languages.
2. EE's languages folder, under each language, is searched for header.php and footer.php. This makes translated header and footer possible.
3. If misc. settings editor header and footer text areas contain any characters then header.php and footer.php files are ignored and text areas are used instead. This means you can disable header by adding just one space into header text area.
chriz
23rd of November 2004 (Tue), 02:08
Hello Pekka,
Related to the thread above.
How can I have a header and footer.php per exhibition.
Each customer has its own album (not linked to the other ones, here you gave me already the code to change) and this album has its own header and footer with for example a return link to the customer's website.
Chriz
www.photoevents.nu
LINK TO ONE OF MY EXHIBITIONS WHERE I WOULD LIKE TO REPLACE THE HEADER WITH SOMETHING RELATED TO THE CUSTOMER
http://ee.photoevents.nu/list.php?exhibition=98&pass=jbcnov04
Pekka
23rd of November 2004 (Tue), 05:41
Hello Pekka,
Related to the thread above.
How can I have a header and footer.php per exhibition.
Each customer has its own album (not linked to the other ones, here you gave me already the code to change) and this album has its own header and footer with for example a return link to the customer's website.
Chriz
www.photoevents.nu
LINK TO ONE OF MY EXHIBITIONS WHERE I WOULD LIKE TO REPLACE THE HEADER WITH SOMETHING RELATED TO THE CUSTOMER
http://ee.photoevents.nu/list.php?exhibition=98&pass=jbcnov04
It could be of course possible to put the header/footer system fully in database to make it possible to have a separate header/footer for each exhibition, too, but that would not be good for speed because to get that data run as PHP app (and many would like to use PHP there) it can only be done with function eval() which would definitely slow things down.
Another way would be to have a folder structure for exhibition id's but I don't think anyone would be able to cope that with dozens of exhibitions.
So, now you best method for the moment is to do this straight in header.php's and footer.php's with if-elseif-else statement:
<?php
if ($exhibition == "2") {
?>
write header code here for exhibition 2
<?php
} elseif ($exhibition == "7") {
?>
write header code here for exhibition 7
<?php
} elseif ($exhibition == "12") {
?>
write header code here for exhibition 12
<?php
} else {
?>
Write header code for all the rest
<?php
}
?>
chriz
23rd of November 2004 (Tue), 07:48
Thanks, I'll try that.
Not to bug you, but do you have code in the back of your head for simple e-card sending? Something I can add myself?
Chriz
MMCM
13th of December 2004 (Mon), 06:25
Hi Pekka & Chriz!
I wondered myself, how to create different headers for some exhibitions, either by exhibition id or by password (=separate exhibition group, customer, ...).
Maybe it is possible to write some code at the point where the header is included, to search first, if a special header.php exists for the specific exhibition, and use that header if it is found.
The special header could be stored where the standard header.php is, with a name that includes the exhibition id and the password, i. g. eng/header_13.php or ger/header_mypassword.php.
A nice feature would be the ability to use a translation file for the header, just like the other EE pages, so I would need only one header.php (or one per exhibition/password), for several languages.
What do you think of that? Maybe I'll try to implement this myself :-)
Martin
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.