MyBB Community Forums

Full Version: background image on every forum page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I have a background which is an image (gradient) and have it working on the main page. I added this line of code:
Quote:<body style="background-image: url('http://www.groundbranch.nl/core_images/bg_body.jpg'); background-repeat: repeat-x; background-color: #232323">

into the Index Page Templates > Index template. This works perfectly. But as soon as I enter a forum or post the background is white again. I've looked at all the global settings and tried to figure out if there's a way to change all of the pages so they all use the background code I posted above....

Anyone knows where I can do this because I can't seem to find it...
Why don't you edit the theme in the Theme Manager?

Open your ACP > Themes > Modify / Delete > *Your Theme Name* > Body.

In the Background box on the left, change it to:
#232323 url(http://www.groundbranch.nl/core_images/bg_body.jpg) repeat-x

PS. I can't access the image.. I get "Authentication required!" Toungue

Just put that code where I told you, and remove it from the index template. Wink
The index template only applies to the index.php page. Thats why your method only works on the front page.
With FirefoxWiz's method, her CSS code applies to every page that has a <body> tag.
(every page Smile)
FirefoxWiz Wrote:Why don't you edit the theme in the Theme Manager?

Open your ACP > Themes > Modify / Delete > *Your Theme Name* > Body.

In the Background box on the left, change it to:
#232323 url(http://www.groundbranch.nl/core_images/bg_body.jpg) repeat-x

PS. I can't access the image.. I get "Authentication required!" Toungue

Just put that code where I told you, and remove it from the index template. Wink
Nice, thank you. I didn't know you could add more than only the #xxxxxx color tag in that box Smile. And yes, the website is still being tweaked so the whole domain is password protected at the moment Wink

Thank you very much for your help.
I'm actually having a similar issue now that I can't seem to resolve. I'm trying to set a body backgroup image that is a fade from blue to black with black being the background color. I've tried this:

body 
{
 background-image: url(http://www.mmology.org/Images/jade.jpg);
background-repeat: repeat-x;
color: #000000;
}

In the extra CSS field.

I've tried this:
#000000 url(http://www.mmology.org/Images/fade.jpg

In the background field.

Neither seems to yield the expected results. I know I'm just missing something simple here so if anyone could help me I'd appreciate it!