vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Background image like here (https://vborg.vbsupport.ru/showthread.php?t=85408)

Fekt 11-24-2002 08:20 AM

Background image like here
 
I would like to create a background image that is present all the time like these (flower?) shapes on left and right of main forumbits on this board.

I know a bit of HTML and can perform simple modifications by learning from existing mods but I cannot understand this. :(

If someone could help me begin I would be grateful. :)

Tony G 11-24-2002 09:00 AM

There is another thread on it so you can look for an answer there when it comes. I don't really know. Any method I tried it only works in some areas.

imported_Eternale 11-24-2002 12:33 PM

Replace your Body tag with this

<body background="images/yourimage" bgcolor="#XXXXXX" text="#XXXXXX" id="all" leftmargin="10" topmargin="10" marginwidth="10" marginheight="0" link="#XXXXXX" vlink="#XXXXXX" alink="#XXXXXX">

Replace the X'S with the color you want and it will work!

assassingod 11-24-2002 02:33 PM

I think he means he would like to make a background image.

Jon 11-24-2002 03:53 PM

That doesn't work..

assassingod 11-24-2002 03:59 PM

Thats the body tag code for vBulletins only btw

Fekt 11-24-2002 07:39 PM

Thankyou everyone for your help. :)

I have been also reading threads on vbulletin.org and found a solution written there. I see that people here look for this also so here it is:

(from Mist)

Quote:

Goto the replacement section of your admin cp and find the replacement for <body>

Copy what you have.

Then in your 'forumhome' template find:

PHP Code:

<body

Replace it with the thing you just copied from the replacement section.

Then somewhere in your body tag put this:

PHP Code:

background="{ imagesfolder}/pagebg.gif" 

Remove the gap from between the { and the imagesfolder though :)

Tony G 11-25-2002 05:30 AM

Doesn't work, the bgcolor overwrites the background. Also, wouldn't you have to add it to every template page?

Fekt 11-25-2002 08:55 AM

It worked for me. Did you remember to remove the space as said at bottom of instructions? I forgot in the start and nothing happened. Then I understood and removed it. Now it works.

Yes it has to be done to all templates you want if for. The person who asked for the help said it was for forumhome only that he wanted it so Mist gave the more easy way for it I think.

Tony G 11-25-2002 09:55 AM

There has to be an easier way. Must be...

Jon 11-27-2002 01:55 AM

I know there is an easier way. I had it working for any resolution bigger that 800x600 but then it screwed up.

filburt1 11-27-2002 01:57 AM

*cheap hack alert*

You could make a span that fills your entire page then give it some CSS like background-image:url('filename').

Tony G 11-27-2002 03:04 AM

Good idea filburt. Might try that. :)

I never through adding a background was so difficult to figure out. Hehe.

Nairb 12-24-2002 06:36 AM

Quote:

Originally posted by Tony
Doesn't work, the bgcolor overwrites the background. Also, wouldn't you have to add it to every template page?

In the style section, where you edit the main colours, there is a part for the body tag... that body tag works for all pages :D

Tony G 12-24-2002 08:23 AM

Nairb, if you had read the thread you would see that doesn't work all the way all over the page. I knew that method and it doesn't work.

Nairb 12-24-2002 04:16 PM

but it does.. that's how I do it...

Tony G 12-25-2002 06:58 AM

Looks like it depends from forum to forum? Weird..


All times are GMT. The time now is 05:27 PM.

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.01078 seconds
  • Memory Usage 1,742KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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