Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

bad link in logo

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-05-2005, 04:03 AM
 
shoal shoal is offline
 

Newbie
  
Join Date: Aug 2005
Posts: 4
 

Default bad link in logo

When i click on a the logo on the front page of my site it takes me to this url.

http://www.Mysite.co.uk/%7B$http_location%7D

i would manually change the head.tpl but i dont think that this would solve the underlying problem of the $http_location variable which is probably used in other pages in the site.

please could you tell me why it might be doing this and or where this variable is defined ?

version 4.0.14

thanks
__________________
signature
Reply With Quote
  #2  
Old 09-05-2005, 04:59 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

The problem is caused I believe by the way you have edited the file, probably using something like Adobe Golive?

Whatever, your editing package has kindly decided to some extra editing!

In this case altering { to %7B and } to %7D!!

what it should of course look like is:

http://www.Mysite.co.uk/{$http_location}
This would have been caused in skin1/head.tpl

You will also get a similar problem with images location - {$ImagesDir}

If you are using Golive, you may need to change your templates to text files not html files to edit them.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 09-05-2005, 05:40 AM
 
shoal shoal is offline
 

Newbie
  
Join Date: Aug 2005
Posts: 4
 

Default

thanks for the help so far.


this is the line that generates the link. it seems normal, i cant see any thing thats been replaced.
<TD>[img]{$ImagesDir}/xlogo.gif[/img]</TD>

i am using dreamweaver.
__________________
signature
Reply With Quote
  #4  
Old 09-05-2005, 06:01 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Have you checked config.php, that is where the locations are defined.

Check the locations you have set up at the top and also line 286:
$http_location = "http://$xcart_http_host".$xcart_web_dir;
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #5  
Old 09-05-2005, 06:57 AM
 
shoal shoal is offline
 

Newbie
  
Join Date: Aug 2005
Posts: 4
 

Default

286 apears as you showed it.

and the variable at the top is set to the address of my site.
Reply With Quote
  #6  
Old 09-05-2005, 08:11 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

hmm, well I am not sure where the problem lies.

Something is changing your "{" to other code and that is typically done by html editors. If you are sure that any files you have edited are OK, it could be a server/setup problem, but I don't know.

I would be looking at putting back the original files from skin1_original to see if that solves it or not.

Maybe someone else can spot the problem, but my experience of the problem is editing files as I say.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #7  
Old 12-04-2005, 07:46 AM
 
joelc73 joelc73 is offline
 

Advanced Member
  
Join Date: Nov 2005
Posts: 42
 

Default

Is there a way to change that link completely? I want it to point back to my main index page on my site, not the index page of my x-cart.

THanks,
__________________
Version 4.0.17
Reply With Quote
  #8  
Old 12-04-2005, 08:12 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Just edit the skin1/head.tpl template.

Look for the link that is on the logo and put in there anything you want.

(Presuming you have a bit of html knowledge here - if not just ask)
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:57 AM.

   

 
X-Cart forums © 2001-2020