PDA

View Full Version : coding question for image on "about" page


mjordy
12-12-2006, 02:55 AM
i am trying to add an image of me on the "about" page and through some web hunting came up with the following code which i added to the about_template:

<CENTER>
<img src="/applications/xampp/htdocs/pixelpost/templates/lightwhitetwo/img/mg d004.jpg"
width="80" height="60">
</CENTER>

the image appeared on my html editor, but only a small blue box with a ? in it appeared on the actual about page.

what am i missing to make this work?

cheers

Dennis
12-12-2006, 04:44 AM
Could you provide a link to your page? Then I can probably give the right code to fix it.

austriaka
12-12-2006, 05:58 AM
/applications/xampp/htdocs/pixelpost/templates/lightwhitetwo/img/mg d004.jpgThat looks like the local path of your local apache installation.

To display it in web, be sure you uploaded the photo to your server into the folder "templates/lightwhitetwo/img/".
Use this HTML:
<CENTER>
<img src="templates/lightwhitetwo/img/mg d004.jpg"
width="80" height="60">
</CENTER>

KArin

mjordy
12-12-2006, 08:20 PM
austriaka + schonhose -

i have been doing development work on my laptop so basically i have two mirror sites....when i post to the public site i make necessary changes.

site is mjordanphoto.com

i reproduced the errors there. i was able to get the photo to appear on my local site.

for the public site - the full path to the picture is

/public_html/splash/templates/lightwhitetwo/img/mg d004.jpg

but whatever i seem to put in ???? does not seem to work

<CENTER>
<img src="????"
width="80" height="60">
</CENTER>

GeoS
12-12-2006, 09:14 PM
So path will be like:
http://mjordanphoto.com/templates/lightwhitetwo/img/img d004.jpg

mjordy
12-13-2006, 04:08 AM
but that does not seem to work.

stumped.

- m

Dennis
12-13-2006, 05:23 AM
Try this as the path:


<CENTER>
<img src="templates/lightwhitetwo/img/MG%20D004.jpg"
width="80" height="60">
</CENTER>


You're probably on a unix server so capitals in a filename are important. This picture does work:

http://mjordanphoto.com/splash/templates/lightwhitetwo/img/MG%20D004.jpg

mjordy
12-13-2006, 06:15 AM
case sensitive issue with the file name.

thanks.

-m