Longsword Posted January 29, 2003 Share Posted January 29, 2003 Hi. :?: Removing the "do you wish to log-in?" welcome text I need a distinguish log-in link in stead of the fancy boxes. I found a way to modify the breadcrumb so if you're logged-in it shows the "log-out" as usual and if you are not logged in it shows a "log-in" text link. :!: How to do? In the file include/header.php around line 60 change the following part: <?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?> to :arrow: <?php if (tep_session_is_registered('customer_id')) { ?> <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <? } else { ?> <a href="<?php echo tep_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN; ?></a> | <?php } ?> .... and voila... text with hyperlink changed when log-in :) Thx to [email protected] to publish the main principle at php.net :wink: You can see it IRL at www.tyvstop.dk Good luck Jes ---------- Link to comment Share on other sites More sharing options...
Guest Posted January 29, 2003 Share Posted January 29, 2003 Kewl... No idea why it wasn't already there Link to comment Share on other sites More sharing options...
hobbzilla Posted February 1, 2003 Share Posted February 1, 2003 And further.. Why show the "My Account" if you aren't logged in?? around Line 60 includes/header.php: <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <?php } else { ?><a href="<?php echo tep_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> Link to comment Share on other sites More sharing options...
Guest Posted February 7, 2003 Share Posted February 7, 2003 Awesome mod! Keep in mind, though, that redundancy on a website isn't a bad thing. Show your site to random people who haven't seen it before, and closely watch them as they STRUGGLE to search for functions like checkout, login links, etc. It doesn't hurt to have them in more than one place. I think I'm going to use this mod WITH my login text in welcome intact and the redundancy of My Account, even. Heh :) There's also a recent post at Web Master World forums that addresses the redundancy issues (as well as tons of other cues you can give for usability, and ultimately, sales)... http://www.webmasterworld.com/forum21/4284.htm Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.