Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2013
    Posts
    4
    Plugin Contributions
    0

    help question 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.

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default 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.
    Twitch Base8 - Obsidian - This, is what's new.

  3. #3
    Join Date
    Jun 2013
    Posts
    4
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,930
    Plugin Contributions
    45

    Default Re: External links in main page text

    Quote Originally Posted by JBloodthorn View Post
    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

  5. #5
    Join Date
    Jun 2013
    Posts
    4
    Plugin Contributions
    0

    Default 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.

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default 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 ?

  7. #7
    Join Date
    Jun 2013
    Posts
    4
    Plugin Contributions
    0

    Default 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. >_>

  8. #8
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default 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.

 

 

Similar Threads

  1. Hiding Text Links on Categories Shown on Main Page
    By lindsey80 in forum Basic Configuration
    Replies: 3
    Last Post: 8 May 2012, 06:52 PM
  2. Main Page Define - Product Listing above Main Text?
    By SaMortensen in forum Basic Configuration
    Replies: 22
    Last Post: 31 Jul 2009, 05:12 AM
  3. Using external http: links for main product images?
    By smoke133 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 17 Feb 2009, 08:17 PM
  4. Removing category image links and text links from the HOME page
    By EddieMac in forum Basic Configuration
    Replies: 2
    Last Post: 24 Apr 2008, 02:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR