Forums / Templates, Stylesheets, Page Layout / External links in main page text

External links in main page text

Views: 1,115

Results 1 to 8 of 8
16 Jan 2014, 8:53 PM
#1
jbloodthorn avatar

jbloodthorn

New Zenner

Join Date:
Jun 2013
Posts:
4
Plugin Contributions:
0

External links in main page text

I am trying to add an external link to the text of my main page. Unfortunately, somewhere in Zen Cart it has decided to parse this link into an internal link, as though it is assuming I was too stupid to write a link properly.

It is taking http://[other site].net/
And turning it into:http://[my site].com/products/[actual link]

How do I make it stop doing that? I'm completely comfortable editing php files if that's what it takes to make it function correctly.

16 Jan 2014, 8:55 PM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: External links in main page text

can you send an example of the page that's doing this? sounds like an ez-page/define page

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

16 Jan 2014, 9:02 PM
#3
jbloodthorn avatar

jbloodthorn

New Zenner

Join Date:
Jun 2013
Posts:
4
Plugin Contributions:
0

Re: External links in main page text

It's definitely an ez-page/define page: define_main_page.php

It takes any href attribute and slaps "http://[my site].com/products/" onto the front of it. It was doing it with external images too, until I went through the php code and removed 20 odd instances where it was doing it. But for the life of me I can't find where in the code it's modifying the text links.

16 Jan 2014, 10:15 PM
#4
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: External links in main page text

JBloodthorn:

It's definitely an ez-page/define page: define_main_page.php

It takes any href attribute and slaps "http://[my site].com/products/" onto the front of it. It was doing it with external images too, until I went through the php code and removed 20 odd instances where it was doing it. But for the life of me I can't find where in the code it's modifying the text links.

Are you using a html or plain text eidtor on the file?

Thanks,

Anne

17 Jan 2014, 12:17 PM
#5
jbloodthorn avatar

jbloodthorn

New Zenner

Join Date:
Jun 2013
Posts:
4
Plugin Contributions:
0

Re: External links in main page text

Plain text editor. I've doubled checked to make sure, and the main-page.php file is clean - no extra code or markups. The link in the file is exactly what I want it to be. Somewhere in the Zen Cart code the link is being changed, and the extra bit slapped onto the front of it.

17 Jan 2014, 12:49 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: External links in main page text

I can't duplicate that problem with a clean installation of Zencart. Are you using some kind of URL-rewriting mod ?

18 Jan 2014, 10:49 PM
#7
jbloodthorn avatar

jbloodthorn

New Zenner

Join Date:
Jun 2013
Posts:
4
Plugin Contributions:
0

Re: External links in main page text

Nope, the only mod I have is for payment. This is making no sense at all to me. I just want a link to another site on the main page; it seems so simple, and yet. >_>

18 Jan 2014, 10:54 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: External links in main page text

What happens if you edit tpl_main_page.php manually by downloading it, adding your href, and uploading it back to the server?

If it's still messed up, we'll need a link to the site.