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: Header file  (Read 2099 times)

0 Members and 1 Guest are viewing this topic.

pols1337

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 244
Header file
« 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/

I've attached a screenshot and the HTM file. 

Thank you,
Joel / pols1337
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Header file
« Reply #1 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
Logged

pols1337

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 244
Re: Header file
« Reply #2 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
Code: [Select]
if (!USER_ID) .  Will that work with all the div tags in the menu?

Joel / pols1337

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Header file
« Reply #3 on: July 10, 2012, 08:29:10 am »

Will that work with all the div tags in the menu?
Sure.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.