Navigation Bar Navigation Bar
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Navigation Bar

Started by reece296, November 18, 2006, 02:39:27 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

reece296

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

Gizmo

It's the {CUSTOM_HEADER}. Search the board and manual for more info but you will have to edit a php file.  ;)
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

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

Gizmo

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,
QuoteWarning: 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).

<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.
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


fggz

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

Gizmo

QuoteIt's the {CUSTOM_HEADER}. Search the board and manual

Create a new file called header.php and reference it in config>theme.
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

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

Gizmo

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

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

reece296

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

Joachim Müller

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

reece296


Sami

Quote from: reece296 on November 19, 2006, 01:12:11 AM
Also the end extension, would it be .html or.php?

Yes you can use html or htm

Quote from: reece296 on November 19, 2006, 10:54:36 AM
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 ?
‍I don't answer to PM with support question
Please post your issue to related board