Can't see pictures in dailytemplate

For requests for help from CG administrators, Wranglers, and experienced CG members. Please read the FAQ before posting. Also look at CG Wiki for tutorials and how-tos written by other CG webtoonists.
Post Reply
User avatar
Salyavin
Regular Poster
Posts: 107
Joined: Sun Aug 12, 2007 6:44 am
Location: Right behind you
Contact:

Can't see pictures in dailytemplate

Post by Salyavin »

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.

User avatar
Renard
Regular Poster
Posts: 36
Joined: Thu Mar 29, 2007 9:51 am
Location: Canada
Contact:

Post by Renard »

What's the link and can you put up your coding for the page in question?
Image

User avatar
Dr Neo Lao
Cartoon Hero
Posts: 2397
Joined: Wed Oct 18, 2006 5:21 am
Location: Australia

Post by Dr Neo Lao »

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

User avatar
JTorch
Regular Poster
Posts: 520
Joined: Mon Jun 19, 2006 7:51 pm
Location: Canada
Contact:

Post by JTorch »

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.
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.
Image
There's a Civilization on my Fork - Updates Sometimes

User avatar
Dr Neo Lao
Cartoon Hero
Posts: 2397
Joined: Wed Oct 18, 2006 5:21 am
Location: Australia

Post by Dr Neo Lao »

JTorch wrote:...in dailytemplate and only in dailytemplate.
Debatable.

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.

User avatar
Salyavin
Regular Poster
Posts: 107
Joined: Sun Aug 12, 2007 6:44 am
Location: Right behind you
Contact:

Post by Salyavin »

I knew it would be something really simple, thanks for the help :D. 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.

Post Reply