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: Navigation Bar  (Read 5207 times)

0 Members and 1 Guest are viewing this topic.

reece296

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Navigation Bar
« on: November 18, 2006, 02:39:27 pm »

Hey All,

Sorry but i have another question. How do you do that navigation bar like up the top here and on the main photo gallery demo?

Cheers,

Reece
« Last Edit: December 02, 2006, 03:04:32 pm by GauGau »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Navigation Bar
« Reply #1 on: November 18, 2006, 03:04:39 pm »

It's the {CUSTOM_HEADER}. Search the board and manual for more info but you will have to edit a php file.  ;)
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

reece296

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Navigation Bar
« Reply #2 on: November 18, 2006, 03:08:42 pm »

Thanks but i'm no good editing php, so i'll leave it. Thanks Anyway
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Navigation Bar
« Reply #3 on: November 18, 2006, 03:41:20 pm »

It's not that hard. Actually if all you want to do is add some html code then there is no need to know php just add your html code without the <head> or <body> tags. As quoted from the manual,
Quote
Warning: you mustn't include full html pages that contain an html header or footer (tags like <head> or <body>), nor can the included file do file header manipulation, e.g. reading another (non-coppermine) cookie.

To give you an idea, here is the code that generates the blue header you see at the top of the forum. As you can see it's just html code (including a lot of styling).
Code: [Select]
<div style="width:100%;background-color:#0871A5;">

  <table border="0" cellspacing="0" cellpadding="20">
    <tr>
      <td style="margin-top:5px;margin-bottom:5px;margin-left:5px;margin-right:5px;padding-top:5px;padding-bottom:5px;padding-left:0px;padding-right:0px;border-width:1px;border-style:solid;border-color:#0871A5;font-size:9px;"><a href="/" style="color:#FFFFFF;text-decoration:none;margin-left:5px;margin-right:5px;" title="Home"><img src="/images/cpg.gif" width="88" height="19" border="0" alt="" title="Home" /></a></td>
      <td style="margin-top:5px;margin-bottom:5px;padding-top:5px;padding-bottom:5px;padding-left:0px;padding-right:0px;border-width:1px;border-style:solid;border-color:#0871A5;font-size:9px;"><a href="http://forum.coppermine-gallery.net/" style="color:#FFFFFF;text-decoration:none;margin-left:5px;margin-right:5px;" onmouseover="this.style.color='#FFCC66';" onmouseout="this.style.color='#FFFFFF';" title="Support Forum">Support Forum</a></td>
      <td style="margin-top:5px;margin-bottom:5px;margin-left:5px;margin-right:5px;padding-top:5px;padding-bottom:5px;padding-left:0px;padding-right:0px;border-width:1px;border-style:solid;border-color:#0871A5;font-size:9px;"><a href="http://sourceforge.net/projects/coppermine/" style="color:#FFFFFF;text-decoration:none;margin-left:5px;margin-right:5px;" onmouseover="this.style.color='#FFCC66';" onmouseout="this.style.color='#FFFFFF';" title="sourceforge project pages">Project</a></td>
      <td style="margin-top:5px;margin-bottom:5px;margin-left:5px;margin-right:5px;padding-top:5px;padding-bottom:5px;padding-left:0px;padding-right:0px;border-width:1px;border-style:solid;border-color:#0871A5;font-size:9px;"><a href="http://sourceforge.net/project/showfiles.php?group_id=89658" style="color:#FFFFFF;text-decoration:none;margin-left:5px;margin-right:5px;" onmouseover="this.style.color='#FFCC66';" onmouseout="this.style.color='#FFFFFF';" title="Downloads">Downloads</a></td>
      <td style="margin-top:5px;margin-bottom:5px;margin-left:5px;margin-right:5px;padding-top:5px;padding-bottom:5px;padding-left:0px;padding-right:0px;border-width:1px;border-style:solid;border-color:#0871A5;font-size:9px;"><a href="http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm" style="color:#FFFFFF;text-decoration:none;margin-left:5px;margin-right:5px;" onmouseover="this.style.color='#FFCC66';" onmouseout="this.style.color='#FFFFFF';" title="Frequently Asked Questions">FAQ</a></td>

      <td style="margin-top:5px;margin-bottom:5px;margin-left:5px;margin-right:5px;padding-top:5px;padding-bottom:5px;padding-left:0px;padding-right:0px;border-width:1px;border-style:solid;border-color:#0871A5;font-size:9px;"><a href="http://coppermine-gallery.net/demo/cpg14x/docs/index.htm" style="color:#FFFFFF;text-decoration:none;margin-left:5px;margin-right:5px;" onmouseover="this.style.color='#FFCC66';" onmouseout="this.style.color='#FFFFFF';" title="Documentation">Documentation</a></td>
      <td style="margin-top:5px;margin-bottom:5px;margin-left:5px;margin-right:5px;padding-top:5px;padding-bottom:5px;padding-left:0px;padding-right:0px;border-width:1px;border-style:solid;border-color:#0871A5;font-size:9px;"><a href="http://coppermine-gallery.net/team/" style="color:#FFFFFF;text-decoration:none;margin-left:5px;margin-right:5px;" onmouseover="this.style.color='#FFCC66';" onmouseout="this.style.color='#FFFFFF';" title="about: the coppermine team">About</a></td>
      <td style="margin-top:5px;margin-bottom:5px;margin-left:5px;margin-right:5px;padding-top:5px;padding-bottom:5px;padding-left:0px;padding-right:0px;border-width:1px;border-style:solid;border-color:#0871A5;font-size:9px;"><a href="http://coppermine-gallery.net/Obsolete" style="color:#FFFFFF;text-decoration:none;margin-left:5px;margin-right:5px;" onmouseover="this.style.color='#FFCC66';" onmouseout="this.style.color='#FFFFFF';" title="see Coppermine live">Demo</a></td>
      <td style="margin-top:5px;margin-bottom:5px;margin-left:5px;margin-right:5px;padding-top:5px;padding-bottom:5px;padding-left:0px;padding-right:0px;border-width:1px;border-style:solid;border-color:#0871A5;font-size:9px;"><a href="http://coppermine-gallery.net/tutorial/" style="color:#FFFFFF;text-decoration:none;margin-left:5px;margin-right:5px;" onmouseover="this.style.color='#FFCC66';" onmouseout="this.style.color='#FFFFFF';" title="Tutorials">Tutorials</a></td>
    </tr>
  </table>
</div>

&uarr;&uarr;&uarr;<span style="font-size:9px">Custom header include (new) - use it to include your site's navigation into coppermine.</span>&uarr;&uarr;&uarr;


Try it, it can't hurt and if it doesn't work out, then remove the link the congif settings. You won't learn if you don't try.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

reece296

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Navigation Bar
« Reply #4 on: November 18, 2006, 03:42:44 pm »

Ok thanks
Logged

fggz

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Navigation Bar
« Reply #5 on: November 18, 2006, 08:02:45 pm »

I also want to create a navigation bar like up the top here but I do not know what php file to modify? Can you tell me?

Thanks, from Spain
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Navigation Bar
« Reply #6 on: November 18, 2006, 11:45:50 pm »

Quote
It's the {CUSTOM_HEADER}. Search the board and manual

Create a new file called header.php and reference it in config>theme.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

reece296

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Navigation Bar
« Reply #7 on: November 18, 2006, 11:51:07 pm »

So all we do is put what you put above in a new php file and thats it? How do we reference it?
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Navigation Bar
« Reply #8 on: November 19, 2006, 12:01:08 am »

Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

reece296

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Navigation Bar
« Reply #9 on: November 19, 2006, 12:08:24 am »

Nope  :P, but thanks, i know what to do now
Logged

reece296

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Navigation Bar
« Reply #10 on: November 19, 2006, 01:12:11 am »

Also the end extension, would it be .html or.php?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Navigation Bar
« Reply #11 on: November 19, 2006, 07:18:09 am »

Why don't you just try and find it out? Easily remedied if you should chose the false extension.
Logged

reece296

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Re: Navigation Bar
« Reply #12 on: November 19, 2006, 10:54:36 am »

Why can't you just say?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Navigation Bar
« Reply #13 on: November 19, 2006, 10:59:03 am »

Also the end extension, would it be .html or.php?

Yes you can use html or htm

Why can't you just say?

This board is for support not for spone feeding !
Why did you ask when you can try and learn ?
Logged
‍I don't answer to PM with support question
Please post your issue to related board
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.