Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

NavBar & InfoboxHeaders


BAV

Recommended Posts

Hy!

I'm new to the Forum and i have two question for you masters:

1. what is the right way to replace navbar position from bottom header to the top of the main page (between column left and column right)?

2. how can remove little arows links from the infobox headers if i put links on the title?

Link to comment
Share on other sites

Look in includes header.php for the part you want (I would search for breadcrumb to see where you want). You will have to add that to a bunch of files if you want it in the top of the page but not in your header... ie, product_info.php, shoppingcart, checkout pages.... just look in your root catalog and pretty much 90% of those files would need to be changed... imo, not worth it.

 

Which arrows are you talking about, the ones on the left (blue/gray or whatever color you have yours) or the arrows on the right (usually white)?

 

Hy!

I'm new to the Forum and i have two question for you masters:

1. what is the right way to replace navbar position from bottom header to the top of the main page (between column left and column right)?

2. how can remove little arows links from the infobox headers if i put links on the title?

Link to comment
Share on other sites

Thanks for your fast reply!

 

 

Ok!

For replace the Navbar, i understand to follow two steps:

1. cut the code:

"<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

</tr>

</table>" from the file "header.php", and

2. paste into all of my file in catalog where i want the navbar to appear

 

I mean the little arrows on the right part of infobox header (the white ones)

 

Sorry for my english, i think is whorst!

Link to comment
Share on other sites

I run all different versions of osC so I do not know which arrows you are referring to. View the image in your browser and get the name, then hunt for that in your files. Sorry I am not more help... if I saw your site I might be more.

 

Thanks for your fast reply!

 

 

Ok!

For replace the Navbar, i understand to follow two steps:

1. cut the code:

"<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

</tr>

</table>" from the file "header.php", and

2. paste into all of my file in catalog where i want the navbar to appear

 

I mean the little arrows on the right part of infobox header (the white ones)

 

Sorry for my english, i think is whorst!

Link to comment
Share on other sites

First, your answer is very helpful, thanks again!

 

I modified the almost 90% of my files for to insert the navbar into the main page and the rezult is OK!

 

The name of the little arrow in my catalog/images/infobox is "arrow_right.gif". My version of osC is V2.2 Rc2a

I found the name in this part (in catalog/include/classes/boxes.php):

 

class infoBoxHeading extends tableBox {

function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="25" class="infoBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="25" class="infoBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="25" class="infoBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

I think this is the part which i need to modify. How can i?

 

Sorry, I don"t know how to insert a screenshot with my store

Link to comment
Share on other sites

The variable is $right_arrow, you can hack it in this section,

 

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

 

 

by changing it to something like this:

 

if ($right_arrow == false) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

 

 

or better, you can find where it is setting it to true and change it to false.

 

First, your answer is very helpful, thanks again!

 

I modified the almost 90% of my files for to insert the navbar into the main page and the rezult is OK!

 

The name of the little arrow in my catalog/images/infobox is "arrow_right.gif". My version of osC is V2.2 Rc2a

I found the name in this part (in catalog/include/classes/boxes.php):

 

class infoBoxHeading extends tableBox {

function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="25" class="infoBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="25" class="infoBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="25" class="infoBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

I think this is the part which i need to modify. How can i?

 

Sorry, I don"t know how to insert a screenshot with my store

Link to comment
Share on other sites

You are amazing!

 

I thought at the same solution but i wasn't sure this is the right way

 

THANK YOU AGAIN! You are my first friend here! :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...