Code Red Posted April 5, 2007 Posted April 5, 2007 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. Quote
UncleSteve Posted April 6, 2007 Posted April 6, 2007 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. Quote ____________________________________________________________________ ____________________________________________________________________
Code Red Posted April 8, 2007 Author Posted April 8, 2007 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. Quote
Recommended Posts
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.