1. rdllenug
  2. Commercial Templates
  3. Wednesday, 03 December 2014
  4.  Subscribe via email
Hi,

I'm looking to extend our website with some more of your templates, but before I do this I wonder if you could help me with something? I don't know whether this is my amateurish code, or if it's a template issue, but we've been inviting supporters to copy some code into the back of their websites to reproduce icons, which in turn give us some backlinks. Although the code is producing the link, the icon isn't displaying. Can you help. The relevant link with the codes is here:

http://www.oxfordcitywalk.co.uk/index.php/oxford-showcases-welcome/information-for-oxfordshowcase-supporters

Best wishes,

David G
Accepted Answer Pending Moderation
0
Votes
Undo
Hi David

I notice at the start of every image URL you have a forward slash '/'.. removing this will hopefully resolve the issue for you.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

Thank you for the quick reply. I can see that on-screen, at the front end of the website there is a stray forward slash, but it's not in the code at the back end. This is how the code appears in the admin. area of the website:

<a href="http://www.oxfordcitywalk.co.uk/"; target="_blank" title="We're supporting OxfordShowcase.org"><img src="http://www.oxfordcitywalk.co.uk/images/Showcases/SeeUsOnOxfordShowcaseSMALL.png"; border="0" alt="" width="300" height="60" /></a>

I have tried turning off the editor, since I know that this sometimes does strange things with code, but it's the same. That's to say the code at the backend still appears without the forward slash, but at the front end there is a forward slash! Can you help?

Best wishes,

David G
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi David

Try encoding your HTML to before adding via your editor. This will ensure that the code is not altered on save.... http://www.opinionatedgeek.com/DotNet/Tools/HTMLEncode/Encode.aspx

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán,

I've removed the forward slash from the start of the URL and have sent it to the client, but it's not working. Here is the code:

<a href="http://www.oxfordcitywalk.co.uk/"; target="_blank" title="We're supporting OxfordShowcase.org"><img src="http://www.oxfordcitywalk.co.uk/images/Showcases/SeeUsOnOxfordShowcaseSMALL.png"; border="0" alt="" width="150" height="30" /></a>

I've attempted to use http://www.opinionatedgeek.com/DotNet/Tools/HTMLEncode/Encode.aspx, as suggested and here is the output code:

<a href="http://www.oxfordcitywalk.co.uk/"; target="_blank" title="We're supporting OxfordShowcase.org"><img src="http://www.oxfordcitywalk.co.uk/images/Showcases/SeeUsOnOxfordShowcaseSMALL.png"; border="0" alt="" width="150" height="30" /></a>

I've sent this to the client who isn't happy about using it, since it doesn't look right, particularly since it doesn't start with <a href.

Can you help?

Best wishes,

David G
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Sorry ...

I've sent you the wrong output code. Here it is:

<a href="http://www.oxfordcitywalk.co.uk/"; target="_blank" title="We're supporting OxfordShowcase.org"><img src="http://www.oxfordcitywalk.co.uk/images/Showcases/SeeUsOnOxfordShowcaseSMALL.png"; border="0" alt="" width="150" height="30" /></a>

Best wishes,

David G
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi David

Sorry to say there is no other away around this. The only way to get the internet browser to display the code rather than render it is to either edit the code with a non HTML element (/) or to encode the HTML. As you can see from your previous post the code you entered has changed once rendered by the browser to display as you wish.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Ciarán,

I'm afraid that I'm not sure I really understand your reply. Do you mean that the original code is incorrect?

Would you be happy to cut and paste the code into your website temporarily to see if it works? I have no third part website to do this.

Best wishes,

David G
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Hi David

Your code is been changed by your editor when saved. This is done because other wise your code will render (display image rather than the code for the image). The only alternative is to encode your HTML as already suggested.

Some suggested reading... http://www.plus2net.com/html_tutorial/tags-page.php

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán,

I'm afraid this doesn't seem to be working, even when it's encoded. Can you see what's wrong?

As on previous occasions, I'm very happy to give you access to the backend of the site if you want to have a closer look

Best wishes,

David G
  1. more than a month ago
  2. Commercial Templates
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
This is not a template related query however we will take a quick look for you if you wish. Details can be sent to info@joomla51.com. Please paste a link to this post in your email for our reference.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Ciaran,

I'm now emailing you some more information.

Best wishes,

David G
  1. more than a month ago
  2. Commercial Templates
  3. # 11
Accepted Answer Pending Moderation
0
Votes
Undo
Hi David

Your encoded HTML appears to be displaying correctly? No long see the stray trailing slash at the beginning of each URL?

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 12
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán,

Thank you for having a look. The code still doesn't seem to display the image however. Would you have an idea why? Have you already tried pasting it into your website? If it does display correctly when you try to use the code, are you able to make suggestions about what I'm doing wrong?

Best wishes,

David G
  1. more than a month ago
  2. Commercial Templates
  3. # 13
Accepted Answer Pending Moderation
0
Votes
Undo
Testng on JSFiddle your code is working fine.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 14
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

Thank you for your help with this. I'm afraid that we still can't get the code to work however :(

Best wishes,

David G
  1. more than a month ago
  2. Commercial Templates
  3. # 15
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok