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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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? |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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; } } ?> |
|
#3
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |