Forum Moderators: mack

Message Too Old, No Replies

getting current nav bar into php

         

Melissah

11:01 am on Mar 10, 2005 (gmt 0)

10+ Year Member



Im so hoping someone can help me out here. Ive been round and round and round the net too many times now and just cany seem to find the info I need...maybe Im looking in the wrong place.

What Im trying to do is get the nav bar from a html site into the left column of an oscommmerce site.Id like to keep the rollovers too.

I know I need to create my own code to go into he file that defines whats in the left column, but I just cant seem to get it working.

I ve got the images showing, but because I used the header as a template, its taken up the entire page and pushed everything else down to the bottom. I cant get the links to work either ( just dont know enough yet to code it properly)

what would be the best wayt o get this nav bar showing up and working?

[edited by: mack at 1:10 pm (utc) on Mar. 10, 2005]
[edit reason] No url's please ;-) [/edit]

lZakl

7:25 pm on Mar 10, 2005 (gmt 0)

10+ Year Member



Assuming I understand what you are saying, which I might not (I am good at misreading peoples posts!) ... The way I do this is:

1) Create a text file with plain HTML in it. This file will contain a working version of your sidebar menu, and nothing else.

2) In each PHP page that you want this menu to show up in, I'd set up a table and include your text file with PHP. ie:

<table>
<tr>
<td>

<?php
---This is where you'd include your file---
?>

</td>
<td>
rest of site
</td>
</tr>
</table>

LikeI said, this is just a quick thought, assuming I understand what you are asking, and I may not :0)

Good Luck!

-- Zak

Melissah

3:16 am on Mar 11, 2005 (gmt 0)

10+ Year Member



oops, sorry about the links. didnt realise.

ok, so dont put the code of the nav bar in there do I? I use include to call on that html file, is that right?

Melissah

3:54 am on Mar 11, 2005 (gmt 0)

10+ Year Member



Tis' ok, figured it out! I put in

include 'nav_bar.htm';

and it works! thank you so much for your help :)mean sp much to me! - phew what relief to finally solve that one!

lZakl

4:37 pm on Mar 11, 2005 (gmt 0)

10+ Year Member



Glad you got it straightened away then!

-- Zak