Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2004
    Location
    Redcliffe QLD, Australia
    Posts
    193
    Plugin Contributions
    1

    Default HTMLAREA - URL formatting

    I have a fresh install of Zencart 1.38a installed and preparing to build a new website. I decided to check if an issue I was having with previous versions of Zenart had been resolve.

    The issue being that even if I input a Link URL as
    index.php?main_page=contact_us
    it is formatted as.....
    http://127.0.0.1/demo/admin/index.ph...age=contact_us

    I need to modify the way that HTMLAREA handles the URL's I input so it maintains it the way I input it I.E.

    if I input index.php?main_page=contact_us, it is formatted in html as:
    <a href="index.php?main_page=contact_us">Contact Us</a>

    It appears in this format during editing, but once saved, it appends the local URL.

    Can anyone advise what changes I need to make to resolve this issue.

    Thanks.

  2. #2
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: HTMLAREA - URL formatting

    Quote Originally Posted by ozetrade View Post
    I have a fresh install of Zencart 1.38a installed and preparing to build a new website. I decided to check if an issue I was having with previous versions of Zenart had been resolve.

    The issue being that even if I input a Link URL as
    index.php?main_page=contact_us
    it is formatted as.....
    http://127.0.0.1/demo/admin/index.ph...age=contact_us

    I need to modify the way that HTMLAREA handles the URL's I input so it maintains it the way I input it I.E.

    if I input index.php?main_page=contact_us, it is formatted in html as:
    <a href="index.php?main_page=contact_us">Contact Us</a>

    It appears in this format during editing, but once saved, it appends the local URL.

    Can anyone advise what changes I need to make to resolve this issue.

    Thanks.
    What you are seeing is not a bug and doesnt cause any problem at all. I assume you are working on your localhost? Did you try to upload that on to your online server?

    When you use "relative path" the browsers automatically prepend the current host name to the links.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  3. #3
    Join Date
    Dec 2004
    Location
    Redcliffe QLD, Australia
    Posts
    193
    Plugin Contributions
    1

    Default Re: HTMLAREA - URL formatting

    Thank you yellow1912 for your response.

    I understand that this is a default action of the add link function, but it is a frustrating one for me because I do all my development locally, then upload to a server.
    That means I have to edit every link created using HTMLAREA and change it to match the server URL that Zencart has been loaded on. This issue is also experienced when changing domain names.

    On the old zencart website there was a HTMLAREA v3 that you could download and install that overcome this issue - there is a HTMLAREA v3 available in the older contributions section, but it is not the copy that solve this problem.

    Therefore I need to modify the code that forms the URL so that the inputted URL is the output regardless if it is "relative path" or full path. Can anyone help??

    Thanks,

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: HTMLAREA - URL formatting

    You can try using one of the wysiwyg modules available such as tinymce and see if that helps (htmleditor is rather old). Normally I code the define page directly via html code so I dont have problem with messy code generated by these editors.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 

Similar Threads

  1. v154 Double URL's and no formatting.
    By lot49 in forum General Questions
    Replies: 25
    Last Post: 24 Jun 2015, 10:15 PM
  2. HTMLArea - formatting buttons not showing up in Admin
    By woodlandsprite in forum General Questions
    Replies: 26
    Last Post: 3 Dec 2007, 08:54 PM
  3. can't create URL links using HTMLarea on a mac
    By sobebabies in forum Bug Reports
    Replies: 9
    Last Post: 25 Oct 2006, 03:48 PM

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