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)
-   -   bad link in logo (https://forum.x-cart.com/showthread.php?t=16368)

shoal 09-05-2005 04:03 AM

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

pauldodman 09-05-2005 04:59 AM

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.

shoal 09-05-2005 05:40 AM

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.

pauldodman 09-05-2005 06:01 AM

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;

shoal 09-05-2005 06:57 AM

286 apears as you showed it.

and the variable at the top is set to the address of my site.

pauldodman 09-05-2005 08:11 AM

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.

joelc73 12-04-2005 07:46 AM

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,

pauldodman 12-04-2005 08:12 AM

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)


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

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