PDA

View Full Version : Where do I put images?


Jason Gaspero
02-10-2005, 09:00 AM
Hello Everyone,

In what folder do I place images?

For example, I want to add a logo to my homepage.

So I made an image in Photoshop and placed it on my hard drive.

Here's where I put the image:

C:\Websites\ArticleLive\Templates\Default (Stretched)\Images\logo.jpg

Then, in Dreamweaver, I opened PageHeader.html, located in:

C:\Websites\ArticleLive\Templates\Default (Stretched)\Panels\PageHeader.html.

Here's the code that displays the logo (which I can see fine while working in Dreamweaver):

<td class="Main"><a href='%%GLOBAL_HomePagePath%%'><img src="../Images/logo.gif" border="0"></a></td>

However, when I upload it to my FTP site and check it on the web, the link is broken and I can't see the logo - just a small red X :confused:

Anyone know why this is happening?
Anyone know where I'm supposed to put all my images?
And where, exactly, is the homepage located within all of these files, and what is it called? (I have the PHP version)
Is it default.html?
Is it index.php?

Please give me a hand!

Thanks

- Jason

P.S. Another strange thing. I'm looking at my FTP site right now, and my entire site seems to be loaded up in two folders:

public_html
www

Why is this? I remember my host telling me to upload my files into public_html, but they're in both.

When I upload my files, should I just upload into one, or the other, or both?

guttormson
02-10-2005, 04:26 PM
You can put your images where ever you like. For instance.... you could create a directory in your public_html directory called "myimages" and place your logo in there.

Then in your pageheader.html file (within the panels directory) you could add your logo.gif image to that file and use the entire address.... "http://www.yoursite.com/myimages/logo.gif". Hard coding the location of the logo file like this is a good way to test to make sure you aren't doing something else wrong.

Oh... and... the www directory is just an alias of the public_html directory.

Chris S
02-24-2005, 11:55 PM
You still have it as 'logo.gif' in your html, change it to 'logo.jpg' and you should be fine.

Hello Everyone,

In what folder do I place images?

For example, I want to add a logo to my homepage.

So I made an image in Photoshop and placed it on my hard drive.

Here's where I put the image:

C:\Websites\ArticleLive\Templates\Default (Stretched)\Images\logo.jpg

Then, in Dreamweaver, I opened PageHeader.html, located in:

C:\Websites\ArticleLive\Templates\Default (Stretched)\Panels\PageHeader.html.

Here's the code that displays the logo (which I can see fine while working in Dreamweaver):

../Images/logo.gif (%%GLOBAL_HomePagePath%%)

However, when I upload it to my FTP site and check it on the web, the link is broken and I can't see the logo - just a small red X :confused:

Anyone know why this is happening?
Anyone know where I'm supposed to put all my images?
And where, exactly, is the homepage located within all of these files, and what is it called? (I have the PHP version)
Is it default.html?
Is it index.php?

Please give me a hand!

Thanks

- Jason

P.S. Another strange thing. I'm looking at my FTP site right now, and my entire site seems to be loaded up in two folders:

public_html
www

Why is this? I remember my host telling me to upload my files into public_html, but they're in both.

When I upload my files, should I just upload into one, or the other, or both?