coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: pols1337 on July 08, 2012, 10:16:22 PM

Title: Header file
Post by: pols1337 on July 08, 2012, 10:16:22 PM
Hi,

I'm trying to create a custom header / footer file for my website.  It's supposed to be a horizontal navigation menu with drop-down menus.  Since I don't know any coding, I tried to copy Coppermine-Gallery.net's code from the page source to start out with.  The HTM file was then uploaded to my web account.  The gallery can access the header.htm file, but the gallery does not display drop-down menus. 

Can you advise? 

Website: http://adonismale.com/tg/ (http://adonismale.com/tg/)

I've attached a screenshot and the HTM file. 

Thank you,
Joel / pols1337
Title: Re: Header file
Post by: ΑndrĂ© on July 09, 2012, 10:27:23 AM
If you copy, you also have to copy the corresponding CSS file: http://coppermine-gallery.net/style/navigation.css
Title: Re: Header file
Post by: pols1337 on July 09, 2012, 05:56:44 PM
Ahhhh!!!  I'm so happy I figured it out  ;D  I have never, ever had a header / footer file before so this is pretty exciting for me. 

Thank you Andre for pointing out the navigation.css stylesheet.  I would have never have known to look there.

See screenshot for working header!

Okay, a more advanced question:
Is there some way for me to toggle the menu for logged-out users (who will see "Register" and "Log-in") versus logged-in users (who will see "Log-out")?  I know you taught me before in anycontent.php to use if (!USER_ID) .  Will that work with all the div tags in the menu?

Joel / pols1337

Title: Re: Header file
Post by: ΑndrĂ© on July 10, 2012, 08:29:10 AM
Quote from: pols1337 on July 09, 2012, 05:56:44 PM
Will that work with all the div tags in the menu?
Sure.