Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images & Links Problem After Box insert


gotneed

Recommended Posts

Hi,

I've installed thecontribution 'InfoBox Anywhere with PHP' by Chris LaRocque and it works well apart from one little problem.

All the images and links after the box that has been inserted need to have an absolute path, if they have relative paths they do not display as they still reference the catalog directory.

 

i.e.

 

If I use:

"images/logo.jpg"

it becomes:

"catalog/images/logo.jpg"

 

So I have to use:

"http://www.mydomain.com/images/logo.jpg"

 

Is there a way I can fix this? Does anyone else have/had this problem?

 

Thanks for reading

 

All the best

 

Ben

Edited by gotneed
Link to comment
Share on other sites

Hi,

I've installed thecontribution 'InfoBox Anywhere with PHP' by Chris LaRocque and it works well apart from one little problem.

All the images and links after the box that has been inserted need to have an absolute path, if they have relative paths they do not display as they still reference the catalog directory.

 

i.e.

 

If I use:

"images/logo.jpg"

it becomes:

"catalog/images/logo.jpg"

 

So I have to use:

"http://www.mydomain.com/images/logo.jpg"

 

Is there a way I can fix this? Does anyone else have/had this problem?

 

Thanks for reading

 

All the best

 

Ben

Try inserting a "/" before images as so: "/images/logo.jpg"

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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