Can't see pictures in dailytemplate
- Salyavin
- Regular Poster
- Posts: 107
- Joined: Sun Aug 12, 2007 6:44 am
- Location: Right behind you
- Contact:
Can't see pictures in dailytemplate
I have a slightly large problem with pictures in my dailytemplate, I can see the comic and those things but for some reasons any extra pictures I add to it becomes invisible. Any idea what could be causing this?
A man may fight for many things. His country, his friends, his principles, the glistening ear on the cheek of a golden child. But personally, I'd mud-wrestle my own mother for a ton of cash, an amusing clock and a sack of French porn.
- Dr Neo Lao
- Cartoon Hero
- Posts: 2397
- Joined: Wed Oct 18, 2006 5:21 am
- Location: Australia
You've done this:
src="images/twiggy.jpg"
It will work fine on the index (which is in the same place as the images folder) but it won't work on your other pages. You need this:
src="/images/twiggy.jpg"
The first / tells the server to go to the root folder (public_html) and from there go to the images folder (public_html/images) so it will find your images from any page on your site.
I didn't spot any other images that were meant to be there but didn't show up.
Also, you need to sort out your code. You have several <head> </head>, <body> </body> sets when you should only have one of each. You've also got two doctype declarations, that's why on the index you can see that little bit of red text at the top of the page...
src="images/twiggy.jpg"
It will work fine on the index (which is in the same place as the images folder) but it won't work on your other pages. You need this:
src="/images/twiggy.jpg"
The first / tells the server to go to the root folder (public_html) and from there go to the images folder (public_html/images) so it will find your images from any page on your site.
I didn't spot any other images that were meant to be there but didn't show up.
Also, you need to sort out your code. You have several <head> </head>, <body> </body> sets when you should only have one of each. You've also got two doctype declarations, that's why on the index you can see that little bit of red text at the top of the page...
Actually, indextemplate.html ends up as index.html in the same place as all your other pages when you do an update. Dailytemplate, on the other hand ends up as seperate archive pages in the /d/ folder which is why you need the / at the beginning in dailytemplate and only in dailytemplate.Dr Neo Lao wrote:You've done this:
src="images/twiggy.jpg"
It will work fine on the index (which is in the same place as the images folder) but it won't work on your other pages. You need this:
src="/images/twiggy.jpg"
The first / tells the server to go to the root folder (public_html) and from there go to the images folder (public_html/images) so it will find your images from any page on your site.
- Dr Neo Lao
- Cartoon Hero
- Posts: 2397
- Joined: Wed Oct 18, 2006 5:21 am
- Location: Australia
Debatable.JTorch wrote:...in dailytemplate and only in dailytemplate.
I advise new people to use the same layout (with the backslash at the start) on all pages to avoid confusion. You are right that the index file (ie: the indextemplate.html file) does not have to have the first backslash. But I think that it's more helpful to have it there than to not have it there.
You assume that when someone creates extra pages they will never create any sub-folders, such as having a folder "characters" and then having each character have their own page within that sub-folder.
And this will also translate to other sites, if they create other websites on other hosts.
That's my reasoning.
- Salyavin
- Regular Poster
- Posts: 107
- Joined: Sun Aug 12, 2007 6:44 am
- Location: Right behind you
- Contact:
I knew it would be something really simple, thanks for the help
. Oh and the other unseen image was taken down a while back when I changed the site design.
A man may fight for many things. His country, his friends, his principles, the glistening ear on the cheek of a golden child. But personally, I'd mud-wrestle my own mother for a ton of cash, an amusing clock and a sack of French porn.

