MyBB Community Forums

Full Version: Custom background
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,
It's possible to add different background,to different pages ?

Thanks in advance.

Ika Wink
can you elaborate your requirement - in general, each forum can use a different theme style (see this link)
Example:
I've the f1 2013 forum, so i would use a f1 background in this forum.
^ it should be possible by modifying body element in forumdisplay template and in showthread template
you can change <body> to <body id="forum_$fid"> and use required background images through global.css (like below)
#forum_1 {background: url(image-path);}
#forum_2 {background: url(image-path);} 
i've added the new body tag in forumdisplay and showtread and in global.css

#forum_1 {background: image-path;}
#forum_2 {background: image-path;}

But the background doesn't appear. Confused
^ Edit: are you looking in the php files or theme templates through admin panel

......................
note: below is the response for the earlier content of above post

global.css of the theme needs to be edited through admin panel
admin panel >> themes >> your theme >> global.css >> (edit) >> Edit Stylesheet: Advanced Mode (tab)

browser cache needs to be refreshed (eg. press CTRL + F5 on the index page) after editing & saving a stylesheet (eg. global.css)
I've modified the files, but the background doesn't appear.
^ can we have your forum url to check it
(2013-09-09, 03:52 PM).m. Wrote: [ -> ]^ can we have your forum url to check it

linkfsd.it/mybb/forumdisplay.php?fid=63
in the advanced edit mode for the global.css, change below style code
body {
	background: #efefef url(images/ctsilver/bg.png);
	color: #000;
	text-align: center;
	line-height: 1.4;
	#forum_63 {
background: http://linkfsd.it/img/f12013.jpg;
}


to this:
body {
	background: #efefef url(images/ctsilver/bg.png);
	color: #000;
	text-align: center;
	line-height: 1.4;
}
#forum_63 {
     background: url(http://linkfsd.it/img/f12013.jpg) !important;
}
Pages: 1 2