PDA

View Full Version : Using images from server


plazzman
26 Apr 2009, 20:39
Silly question, but if I want to use an image that's been uploaded to my server (so I don't have to use a 3rd party host, excede bandwidth and look like more of an idiot) how do I go about doing this?

Say this is where I've uploaded it to:

Image: plazz.gif

forum/images/misc/plazz.gif

I want to use this in places like postbit and background. So how would the code look?

Thanks alot!

tipoboy
26 Apr 2009, 20:50
<img src="images/misc/plazz.gif" border="0" alt="" />

plazzman
26 Apr 2009, 20:56
Thanks so much!

Quick question though, how would I use it in this code?

.supermod {
background: #191b1c url (whereever image is located);
background-repeat: no-repeat;
border-left: solid 1px #3c3c3c;
border-right: solid 1px #3c3c3c;
}

tipoboy
26 Apr 2009, 21:00
no problem, you could also use

<img src="$stylevar[imgdir_misc]/pizza.gif" border="0" alt="" />

that you can use in all styles as long as you upload the image to the misc folder, as it takes the path from the stylevar settings

plazzman
26 Apr 2009, 21:08
Awesome thanks alot!

tipoboy
26 Apr 2009, 21:25
Thanks so much!

Quick question though, how would I use it in this code?

.supermod {
background: #191b1c url (whereever image is located);
background-repeat: no-repeat;
border-left: solid 1px #3c3c3c;
border-right: solid 1px #3c3c3c;
}

could be:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



or:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and you would place it in additional css definitions at the bottome of Main CSS

plazzman
28 Apr 2009, 04:43
Worked like a charm man, thanks so much!