Header Bread Crumb ARRGH!
#1
Posted 10 March 2011, 18:27
#2
Posted 11 March 2011, 18:59
surrfman, on 10 March 2011, 18:27, said:
check this link out. We are having the same discussion here.
Carver
#3
Posted 11 March 2011, 23:11
wonder if we are related? My last name is Carver!
Timmy C
#4
Posted 12 March 2011, 01:55
#5
Posted 12 March 2011, 04:55
the store I am constructing is www.discountegauges.com
#6
Posted 12 March 2011, 05:19
Quote
try in
[catalog]/includes/header.php
<?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL')
. '">Account</a> <a href="'
. tep_href_link(FILENAME_SHOPPING_CART)
. '">Cart</a> <a href="'
. tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')
. '">Checkout</a>'; ?>
Edited by osCPal, 12 March 2011, 05:21.
Help Yourself! Post...
- Your knowledge (none, somewhat, very)
- Life of store
- OsCommerce version
- Contributions, Templates, Modifications
- Page in question (example catalog/index.php or admin/categories.php)
- Screen-shot (search Google for taking screen-shots)
If you find this post beneficial click [img]http://forums.oscommerce.com/public/style_images/master/add.png[/img] underneath
#7
Posted 12 March 2011, 05:42
now i haven't seen your php code but looked at the html and found a solution that might work to align them both in the middle, one on the left and one on the right
the code is below and i added comments where i made changes, you will have to apply these in your code if you wanted to
<div class="grid_24 ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading"> <div style="float:left; display:block; width:600px;"> <!-- added this --> <a href="http://www.discountegauges.com" class="headerNavigation">Home</a> » <a href="http://www.discountegauges.com/index.php" class="headerNavigation">Catalog</a> </div><!-- added this --> <div style="display:block; width:300px; float:right"><!-- edited this --> <a class="headershortcutlink" href="http://www.discountegauges.com/FILENAME_CART_CONTENTS"alt="" >Cart Contents</a> <a class="headershortcutlink" href="http://www.discountegauges.com/checkout_shipping.php" alt="">Checkout</a> <a class="headershortcutlink" href="http://www.discountegauges.com/account.php"alt="">My Account</a> </div> </div>
Edited by osCPal, 12 March 2011, 05:43.
Help Yourself! Post...
- Your knowledge (none, somewhat, very)
- Life of store
- OsCommerce version
- Contributions, Templates, Modifications
- Page in question (example catalog/index.php or admin/categories.php)
- Screen-shot (search Google for taking screen-shots)
If you find this post beneficial click [img]http://forums.oscommerce.com/public/style_images/master/add.png[/img] underneath
#8
Posted 12 March 2011, 15:27
osCPal, on 12 March 2011, 05:19, said:
[catalog]/includes/header.php
<?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL')
. '">Account</a> <a href="'
. tep_href_link(FILENAME_SHOPPING_CART)
. '">Cart</a> <a href="'
. tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')
. '">Checkout</a>'; ?>
Tried the suggestion above, no progress. would get a syntax error at my line 39, . '">Cart</a> <a href="' during the browser parsing the file. I copied and pasted the lines from here into my header.php file. tried changing to Cart Contents as my file states the same. also tried adding a | between the  's. anything I did gave the syntax error. here is my current file that completes parsing to the browser:
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright © 2010 osCommerce
Released under the GNU General Public License
*/
if ($messageStack->size('header') > 0) {
echo '<div class="grid_24">' . $messageStack->output('header') . '</div>';
}
?>
<div id="header" class="grid_24">
<div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></div>
<div id="headerShortcuts">
</div>
</div>
<div class="grid_24 ui-widget infoBoxContainer">
<div class="ui-widget-header infoBoxHeading"><?php echo ' ' . $breadcrumb->trail(' » '); ?>
<div align="right">
<?php
echo '<a class="headershortcutlink" href="' . tep_href_link(FILENAME_CART_CONTENTS) . '"alt="" >'.($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : '') . HEADER_TITLE_CART_CONTENTS . '</a>' .
'<a class="headershortcutlink" href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" alt="">' . HEADER_TITLE_CHECKOUT . '</a>' .
'<a class="headershortcutlink" href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '"alt="">' . HEADER_TITLE_MY_ACCOUNT . '</a>' ;
if (tep_session_is_registered('customer_id')) {echo '<a class="headershortcutlink" href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '"alt="" >' . HEADER_TITLE_LOGOFF . '</a>' ;
}
?>
</div>
</div>
</div>
<?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerError">
<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
</tr>
</table>
<?php
}
if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerInfo">
<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
</tr>
</table>
<?php
}
?>
I'm just a newbie... finding 2.3.1 a bit more difficult to interpret.
Timmy C
Timmy C
#9
Posted 13 March 2011, 02:37
<div class="grid_24 ui-widget infoBoxContainer">
<div class="ui-widget-header infoBoxHeading"><?php echo ' ' . $breadcrumb->trail(' » '); ?>
<div align="right">
<?php
echo '<a class="headershortcutlink" href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"alt="" >' .($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : '') . HEADER_TITLE_CART_CONTENTS . '</a> ' .
'<a class="headershortcutlink" href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '" alt="">' . HEADER_TITLE_CREATE_ACCOUNT. '</a> ' .
'<a class="headershortcutlink" href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" alt="">' . HEADER_TITLE_CHECKOUT . '</a> ' .
'<a class="headershortcutlink" href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '"alt="">' . HEADER_TITLE_MY_ACCOUNT . '</a> ' ;
if (tep_session_is_registered('customer_id')) {echo '<a class="headershortcutlink" href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '"alt="" >' . HEADER_TITLE_LOGOFF . '</a>' ;
}
?>
</div>
Hope this helps. is what gives the spaces inbetween the links.
Amber
#10
Posted 14 March 2011, 03:16
next, gotta figure out the colors displayed and the hover color code for what we just figured out above.
also having problems with getting the header logo to center and fill out, tried adding a header background and shorter logo area, but the body content white color area doesn't cooperate. have tried adding and taking away borders and cellpadding, just shifts stuff around. any ideas?
thanks a bunch everyone,
Timmy C














