Page 1 of 1

Image Paths

Posted: Fri Dec 12, 2003 12:21 pm
by daveg
Hi Guys,

Having a problem with a HTML nugget i'm using, need some advice on the paths I need to use for my images.

This is an example of one of the images I have in my nugget, it displays on the front page find, but it doesn't appear on any other pages i.e archives, category links...

<img src="mozillabetter.gif" border="0">

What am I doing wrong?

Cheers

Dave

Posted: Sat Dec 13, 2003 10:16 am
by jhermanns
you need to specify the absoulte path! if the html nugget is displayed in the same path, where your image is (/serendipity/ for example) it works fine, but when you're browsing an article you're in /serendipity/archives/ - your image won't show.

so set the image src to src="/serendipity/mozillabetter.gif" or whatever the path of your serendipity index page is (respectively where mozillabetter.gif resides).

Posted: Mon Dec 15, 2003 5:10 pm
by daveg
thanks! bit of a dumb ass question really, i'm usually a lot better than that!

:D