Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I've read the discussions about hotlinking to images on other servers but I have a slightly different problem - I'm writing a module to create sets of custom headers/footers for emails where you simply enter the html code into the header and footer text areas and it then generates a preview of what the email will look like before saving them to the db. The problem comes when I try to include an image into the header or footer - for example, I put this -

 

 

<table><tr><td valign="top" bgcolor=#000000><img src="images/logo.jpg"></td></tr></table>

 

but the preview just shows a "no image" box where the logo is, and when I check the URL, it's looking at this location - http://www.mydomain.com/admin/%5C%22/images/logo.jpg%5C%22

 

Is there any solution to this? I also have Newsdesk installed and I notice that you can put image URLs directly in the main and summary text and they display without any problems but I can't see what is being done differently here.

Posted

Try dropping the quotes, also try using the full url.

 

When I first saw your post, I assumed it was to do with the product descriptions, as a similar problem can occur if urls are used with in the product descriptions. For that problem there is a contrib that can be added so an url would be added as

<img src=%%+www.mydomain.com/image.jpg%%->

or

<img src=%%+image.jpg%%->

 

After some searching, the contrib is called "Embed Link with SID in Description" and can be found here -

http://www.oscommerce.com/community/contri...ks+contribution

 

The above may not help you, but its better than nothing.

 

Don't forget to let us know how you get on.

____________________________________________________________________

____________________________________________________________________

Posted
Try dropping the quotes, also try using the full url.

 

Brilliant! Dropped the quotes and Bob's (or in this case, Steve's) your uncle! Should have thought of that one as I've already had to drop the quotes from any HTML colour refs, otherwise they come out all wrong but thanks for the tip.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...