vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Using images from server (https://vborg.vbsupport.ru/showthread.php?t=212239)

plazzman 04-26-2009 07:39 PM

Using images from server
 
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 04-26-2009 07:50 PM

<img src="images/misc/plazz.gif" border="0" alt="" />

plazzman 04-26-2009 07:56 PM

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 04-26-2009 08:00 PM

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 04-26-2009 08:08 PM

Awesome thanks alot!

tipoboy 04-26-2009 08:25 PM

Quote:

Originally Posted by plazzman (Post 1799513)
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:


.supermod {
background: #191b1c url (images/misc/pizza.gif);
background-repeat: no-repeat;
border-left: solid 1px #3c3c3c;
border-right: solid 1px #3c3c3c;
}

or:

Code:


.supermod {
background: #191b1c url (/images/misc/pizza.gif);
background-repeat: no-repeat;
border-left: solid 1px #3c3c3c;
border-right: solid 1px #3c3c3c;
}

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

plazzman 04-28-2009 03:43 AM

Worked like a charm man, thanks so much!


All times are GMT. The time now is 07:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00955 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete