osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Need help with my header file..

This is a discussion on Need help with my header file.. within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; In my header, after I screwed up my site yesterday, the word Top no longer links back to my main ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 05-08-2003, 06:24 PM
New Member
 
Join Date: May 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Irata
Default Need help with my header file..

In my header, after I screwed up my site yesterday, the word Top no longer links back to my main website page.

If my investigation of the php files is correct, that info seems to be stored in breadcrumb.php. If so, how would I modify it so that the link will work again?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 08-17-2003, 11:30 PM
Lurker
 
Join Date: Aug 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
thasin
Default

The easiest fix is to copy a clean breadcrumb.php. I am copying mine below:
<?php
/*
$Id: breadcrumb.php,v 1.3 2003/02/11 00:04:50 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

class breadcrumb {
var $_trail;

function breadcrumb() {
$this->reset();
}

function reset() {
$this->_trail = array();
}

function add($title, $link = '') {
$this->_trail[] = array('title' => $title, 'link' => $link);
}

function trail($separator = ' - ') {
$trail_string = '';

for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) {
if (isset($this->_trail[$i]['link']) && tep_not_null($this->_trail[$i]['link'])) {
$trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="headerNavigation">' . $this->_trail[$i]['title'] . '</a>';
} else {
$trail_string .= $this->_trail[$i]['title'];
}

if (($i+1) < $n) $trail_string .= $separator;
}

return $trail_string;
}
}
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-17-2003, 11:36 PM
Lurker
 
Join Date: Aug 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
thasin
Default

In fact in my case, I wanted to eliminate the TOP link. So I started the Trail with the next position(catalog) as follows:
for ($i=1, $n=sizeof($this->_trail); $i<$n; $i++) {

note the i=1 instead of i=0
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Problem with the header.php file emikey24 osCMax v1.7 Discussion 1 04-07-2005 03:43 PM
Need help with header... LatinPrince osCommerce 2.2 Modification Help 1 02-14-2005 10:06 AM
Header change and other changes sagarc osCommerce 2.2 Modification Help 4 12-14-2004 02:22 PM
Conditional formatting in header.php file ReginaStelling osCommerce 2.2 Modification Help 2 08-03-2004 12:08 PM
header / header.php top logo problem the_error_king osCommerce 2.2 Modification Help 0 04-05-2004 06:02 PM


All times are GMT -8. The time now is 04:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax