X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Lokking for home.php (https://forum.x-cart.com/showthread.php?t=28558)

ezi designs 02-03-2007 03:08 PM

Lokking for home.php
 
Question before i pull my hair out.

O.K. I have the DESFU mod and all is ok and is not the issue, except for one thing. The breadcrumb on the home page displays the company name and unfortunatly links to home.php, which i for the life of me cannot find to change. Ive played with the location.tpl file and the home.tpl, well just about them all really, but nothing !

All the other home links that i can find used <A href="{$http_location}/"> instead of home.php. The .htaccess files have also been updated so this is for better house keping to coin a phrase - but a real pain in the butt !!!


Can someone help me out here again.

Richard

carpeperdiem 02-03-2007 06:01 PM

Re: Lokking for home.php
 
Why not just <a href="/">Home</a> ?

carpeperdiem 02-03-2007 06:28 PM

Re: Lokking for home.php
 
PS - here's my location.tpl -- modified for CDSEO:

Code:

{if $location}
{* {strip} *}
<font class="NavigationPath">
  <a href="/">Home</a>&nbsp;&rarr;&nbsp;
  {section name=position loop=$location start=1}
    {if $location[position].1 ne "" }<a href="{$location[position].1|amp}">{/if}
    {$location[position].0}
    {if $location[position].1 ne "" }</a>{/if}
    {if not %position.last%}&nbsp;&rarr;&nbsp;{/if}
  {/section}
</font>
{* {/strip} *}
{/if}


ezi designs 02-04-2007 05:23 AM

Re: Lokking for home.php
 
Hi

All done now, but what a headache. here is how;

{* $Id: location.tpl,v 1.14 2005/11/17 06:55:36 max Exp $ *}
{if $usertype eq "C" or $usertype eq "B"}
{if $location}
<font class="NavigationPath">
{strip}
{section name=position loop=$location}
{if $location[position].1 ne "" }{if $location[position].0 ne $config.Company.company_name}<a href="{$location[position].1}" class="NavigationPath">{else}<a href="{$http_location}/" class="NavigationPath">{/if}{/if}
{$location[position].0}
{if $location[position].1 ne "" }</a>{/if}
{if not %position.last%}&nbsp;/&nbsp;{/if}
{/section}
{/strip}
</font>
{/if}
{else}
{if $location}
{strip}
{section name=position loop=$location}
{if $location[position].1 ne "" }<a href="{$location[position].1|amp}">{/if}
{$location[position].0}
{if $location[position].1 ne "" }</a>{/if}
{if not %position.last%}&nbsp;/&nbsp;{/if}
{/section}
{/strip}<hr />
{/if}
{/if}

balinor 02-04-2007 05:41 AM

Re: Lokking for home.php
 
Don't forget to replace <font with <span as <font> is a depreciated tag.

carpeperdiem 02-04-2007 05:51 AM

Re: Lokking for home.php
 
Quote:

Originally Posted by balinor
Don't forget to replace <font with <span as <font> is a depreciated tag.


Very interesting... yes, you're right. FYI, the "<font" tag is right out of 4.1.6 stock install (/skin1_original/location.tpl)

So much for 4.1.x being xhtml compliant. :(

ezi designs 02-04-2007 04:31 PM

Re: Lokking for home.php
 
Yes exactly which probally answers the question to my problems.

Interesting though what balinor has said, can i ask where he got this info from, as it is from 4.1.6 so it could have not been from there.

Not really a bug, but i bet there are plenty more where that can from ?

balinor 02-04-2007 06:04 PM

Re: Lokking for home.php
 
Where I got that from....the W3C Standards can be found here:

http://www.w3.org/

ezi designs 02-04-2007 11:24 PM

Re: Lokking for home.php
 
Hi balinor

Maybe someone should pass it down the line a little, as i am sure its not hard for x-cart to apply an upgrade to.


Thanks anyhow

Richard

balinor 02-05-2007 02:59 AM

Re: Lokking for home.php
 
It isn't just X-Cart who isn't following this standard, look at 99% of the third-party add-ons and you will find lousy code as well. Most developers simply don't care to follow these standards.


All times are GMT -8. The time now is 09:30 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.