Forums
This topic is locked
Can someone review my site...
Posted 03 Jan 2008 08:33:43
1
has voted
03 Jan 2008 08:33:43 Damian Honr posted:
I have tried a couple of steps but am not having any luck getting the images to load. (I am new to Dreamweaver, using an older version to try the program out.) Here is the url for the site: 65.254.44.154/~crazyhar
I can't get images to load, need help!
damzish1
Replies
Replied 03 Jan 2008 11:23:55
03 Jan 2008 11:23:55 Alan C replied:
Hi
I took a quick look and can see from the source code that you do have images in there, like Banner-test.gif
when I tried to access that image directly I got a 'Forbidden' error, so it may be that you have not uploaded all the images to the server.
In DW you can get a view that shows you the files on the server in a column on the left and all the files on your local machine on the right (usually, but you can swap them over), have a look for that then look at the files on the server to make sure that you have uploaded the images.
It's helpful to put all the images into a folder, call it images or something like that, then all the images are in one place and don't clutter up the view, same with the pages, put them into folders for grouping, all except your homepage, leave that at the top level like it is now.
I took a quick look and can see from the source code that you do have images in there, like Banner-test.gif
when I tried to access that image directly I got a 'Forbidden' error, so it may be that you have not uploaded all the images to the server.
In DW you can get a view that shows you the files on the server in a column on the left and all the files on your local machine on the right (usually, but you can swap them over), have a look for that then look at the files on the server to make sure that you have uploaded the images.
It's helpful to put all the images into a folder, call it images or something like that, then all the images are in one place and don't clutter up the view, same with the pages, put them into folders for grouping, all except your homepage, leave that at the top level like it is now.
Replied 03 Jan 2008 22:35:38
03 Jan 2008 22:35:38 Damian Honr replied:
Thanks for checking it out!
To date I uploaded the site with the images in a folder, and had the same issue.
I saved the images as document relative, then root relative, same results.
I made sure to clear cache before uploading or synchronizing.
One interesting thing is occurring. I tried to tie an image directly to the one saved on the server, for example: "<img src="Banner-test.gif" />" was changed to "<img src="65.254.44.154/public_html/Banner-test.gif" />. (Just to see what would happen.) After viewing the script online, the change did not appear, it was as though I did not make the change.
Not a clue on this side.
damzish
To date I uploaded the site with the images in a folder, and had the same issue.
I saved the images as document relative, then root relative, same results.
I made sure to clear cache before uploading or synchronizing.
One interesting thing is occurring. I tried to tie an image directly to the one saved on the server, for example: "<img src="Banner-test.gif" />" was changed to "<img src="65.254.44.154/public_html/Banner-test.gif" />. (Just to see what would happen.) After viewing the script online, the change did not appear, it was as though I did not make the change.
Not a clue on this side.
damzish
Replied 04 Jan 2008 11:03:12
04 Jan 2008 11:03:12 Alan C replied:
Hello again,
It may be something to do with the hosting domain name that you are using. The IP number followed by the /~ and your login name suggests you are using a hosting service and have not yet got your real domain name in place - I sell hosting and that's exactly how my resold sites look before propagation of the domain name or if you use them without a name.
You can check that the images are on the server as follows, that will check things out . . .
take any image, say Banner-test.gif (see below for example)
put it at the top level in your site, that is in the same folder as your homepage
now try to access that image directly by putting its url into your browser, in your case that would be 65.254.44.154/~crazyhar/Banner-test.gif
just a small point here - most servers use case-sensitive names, so banner is different from Banner, I standardize on all lower case names, with no spaces and use the underscore character when I want spaces, like banner_test.gif - personal preference <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
you should get the image on its own in your browser
if you do then you know that the file is where you expect it on the server, and that all is working at the server end
if you don't, then maybe the file has gone into the wrong directory on the server, have a look here, this is a screenshot of a server with fairly basic site layout on it greatshape.co.uk/server_view.gif
you can see the layout of the files on the server, the public_html and www directories are the same, www is an alias for public_html so you can ftp to either, but I suggest you stick with www
Here you can see that the image file server_view.gif has gone at the top level
Once you get that working the rest should follow.
Another thing that could happen, in DW setup you tell it how to write image references, you mentioned that they are changing, that's probably set up in the site preferences of DW. If you used the basic wizard type setup it asks for the url of your site and then it can write relative to that.
It may be something to do with the hosting domain name that you are using. The IP number followed by the /~ and your login name suggests you are using a hosting service and have not yet got your real domain name in place - I sell hosting and that's exactly how my resold sites look before propagation of the domain name or if you use them without a name.
You can check that the images are on the server as follows, that will check things out . . .
take any image, say Banner-test.gif (see below for example)
put it at the top level in your site, that is in the same folder as your homepage
now try to access that image directly by putting its url into your browser, in your case that would be 65.254.44.154/~crazyhar/Banner-test.gif
just a small point here - most servers use case-sensitive names, so banner is different from Banner, I standardize on all lower case names, with no spaces and use the underscore character when I want spaces, like banner_test.gif - personal preference <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
you should get the image on its own in your browser
if you do then you know that the file is where you expect it on the server, and that all is working at the server end
if you don't, then maybe the file has gone into the wrong directory on the server, have a look here, this is a screenshot of a server with fairly basic site layout on it greatshape.co.uk/server_view.gif
you can see the layout of the files on the server, the public_html and www directories are the same, www is an alias for public_html so you can ftp to either, but I suggest you stick with www
Here you can see that the image file server_view.gif has gone at the top level
Once you get that working the rest should follow.
Another thing that could happen, in DW setup you tell it how to write image references, you mentioned that they are changing, that's probably set up in the site preferences of DW. If you used the basic wizard type setup it asks for the url of your site and then it can write relative to that.
Replied 04 Jan 2008 20:38:31
04 Jan 2008 20:38:31 Damian Honr replied:
Thank you so much for all the help, but the problem has been resolved.
Apparently the "HOTLINK Protection" was enabled, but not configured(?). I was poking around (earlier when the server space had been acquired) and turned it on because it sounded like a good thing to do. I will learn how to use it before messing with it again.
Once again thanks for all the tips, it was the "forbidden error" note that prompted me to investigate!
damzish
Apparently the "HOTLINK Protection" was enabled, but not configured(?). I was poking around (earlier when the server space had been acquired) and turned it on because it sounded like a good thing to do. I will learn how to use it before messing with it again.
Once again thanks for all the tips, it was the "forbidden error" note that prompted me to investigate!
damzish
Replied 04 Jan 2008 21:45:48
04 Jan 2008 21:45:48 Alan C replied:
good news
hope you get things going how you want them - if not come back <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
hope you get things going how you want them - if not come back <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>