Page 3 of 10

Re: video#8

Posted: Mon Jul 27, 2009 12:35 am
by Jackolantern
darspire wrote:ok but still images wont get added

You will probably need to post your code where you are trying to open an image, so we can see what you are doing.

Re: video#8

Posted: Tue Jul 28, 2009 7:34 am
by darspire
<div id="login"><div align="center"><img src="images/http://ostrianiel.com/images/sites/logo.jpg" width="354" height="71" border="0" />

the "http://ostrianiel.com/images/sites/logo.jpg" was just a random image its not what im using

Re: video#8

Posted: Tue Jul 28, 2009 11:33 am
by Noctrine
darspire wrote:<div id="login"><div align="center"><img src="images/http://ostrianiel.com/images/sites/logo.jpg" width="354" height="71" border="0" />

the "http://ostrianiel.com/images/sites/logo.jpg" was just a random image its not what im using
Guessing it has something to do with<img src="images/http://ostrianiel.com/images/sites/logo.jpg" width="354" height="71" border="0" />

that?

Re: video#8

Posted: Tue Jul 28, 2009 2:28 pm
by hallsofvallhalla
dun dun dun..... yeah that seems like it might be the problem. Let us know if that fixes it. Nice catch noc.

Re: video#8

Posted: Tue Jul 28, 2009 9:47 pm
by darspire
so what should i put instead of images?

Re: video#8

Posted: Tue Jul 28, 2009 9:58 pm
by Alexx
darspire wrote:so what should i put instead of images?
Depending on where your image is coming from, just follow this and you should be fine;

If it is from the web (http://) then do it like this

Code: Select all

<img src="http://ostrianiel.com/images/sites/logo.jpg" width="354" height="71" border="0" />
It will search that link and find it.


If it is coming from your computer you would do the 'images/' thing so to say;

Code: Select all

<img src="images/logo.jpg" width="354" height="71" border="0" />
So lets say you have a file called "Plums", when linking images it would look for a folder called 'images' and a file inside it called 'logo.jpg'.



There is sure-fire way of getting an image linked up as well, if you open the image up in your browser and copy that link in the address bar, you can insert it in like...

Code: Select all

<img src="INSERT LINK HERE" width="354" height="71" border="0" />
(Will look something like "C:\User\Username\Desktop\filename.jpg")

And it will link it to where-ever it came from but it will only work for you since the file is on your computer. I would try to stay away from this method but it works just fine for testing :)

Re: video#8

Posted: Wed Jul 29, 2009 12:50 am
by darspire
ok so what if i make something with paint program and save it as ... testlogin? then what would i do for the link?

Re: video#8

Posted: Wed Jul 29, 2009 1:23 am
by Alexx
darspire wrote:ok so what if i make something with paint program and save it as ... testlogin? then what would i do for the link?
If you put it in the same folder with the php file, (Anything considered on the desktop is one massive huge folder btw heh)

Code: Select all

<img src="testlogin.gif" width="354" height="71" border="0" />
.gif = whatever extension you are using..think paint uses bitmaps so it would be like .bmp or something...just look when the file is being saved :)


http://tinypic.com Is a good site to host your pictures quickly, no account needed..just browse, upload, done. There are tons of these sites out there though...thought I would throw that out there.

Re: video#8

Posted: Fri Jul 31, 2009 3:19 am
by Jackolantern
Here is a nice little page about how to format your links. An "absolute link" gives the full HTTP:...and everything else. This is the only way to link to another page (such is the case if you add your images to a image hosting service). If you add the images to your web server and host them locally (which has several benefits, but requires more bandwidth to serve), you will want to link to the image with "relative links". There is a bit more to know about these types, which is explained pretty well in the above linked article.

Re: video#8

Posted: Fri Jul 31, 2009 8:33 am
by darspire
ok so i figured out how to add images. but now i want to add images when a monster appears. like when a goblin appears, a pic of a goblin and when an orc appears, a pic of an orc. any1 know how?