hello i cant change the background of a forum to an image

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Suggested Hosts
Locked
panliusef
Registered User
Posts: 81
Joined: Sat May 09, 2015 7:53 pm

hello i cant change the background of a forum to an image

Post by panliusef »

hello i have spent in excess of 10hours with no breaks at all, struggling to change the white background color of my forum to use an image




i was told to edit the css of my stytle
so i put this

Code: Select all

/*  	
--------------------------------------------------------------
Colours and backgrounds for common.css
-------------------------------------------------------------- */

html, body {
	color: #444;
	background-image: url(back7.jpg);
	background-attachment: fixed;
	
}

all i see is a white background
i am struggling to understand why i am seeing white..
i have tried to use absloute path, still the same white

i have refreshed the styles template, imaseet, theme.. 100+ times
still i see white
Last edited by panliusef on Sat May 09, 2015 8:54 pm, edited 1 time in total.

panliusef
Registered User
Posts: 81
Joined: Sat May 09, 2015 7:53 pm

Re: hello i cant change the background of a forum to an image

Post by panliusef »

never mind somone just emailed me with a fix

Hierotochan
Registered User
Posts: 10
Joined: Thu May 14, 2015 1:43 pm

Re: hello i cant change the background of a forum to an image

Post by Hierotochan »

panliusef wrote:never mind somone just emailed me with a fix
Would you mind posting that fix?
Is it possible to make the 'image' transparent, or replace the image code with a 'transparent' command?

User avatar
Lumpy Burgertushie
Registered User
Posts: 67378
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: hello i cant change the background of a forum to an image

Post by Lumpy Burgertushie »

please explain what you are trying to do.
if the image is transparent then what is going to show from behind it? the back ground image is usually what shows through other transparent images that are on top of it.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?

Hierotochan
Registered User
Posts: 10
Joined: Thu May 14, 2015 1:43 pm

Re: hello i cant change the background of a forum to an image

Post by Hierotochan »

So, I am using a modified version of PBTech.
The background image on this style is a large .Jpeg, which I would like to 'show' through the middle of the forum (with the 'tiles' for each section remaining solid.

As the image is also visible at the foot of the page I assume it is already there, my issue is finding which layer(s) to make transparent, so that it's visible through them.

Thanks for the reply!

User avatar
Lumpy Burgertushie
Registered User
Posts: 67378
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: hello i cant change the background of a forum to an image

Post by Lumpy Burgertushie »

that is what I thought. you do not need the make the background image transparent, you want to make the foreground images transparent so the background can show through.

a link to your board would be most helpful.

basically, you can right click on the image you are interested in changing. in your right click menu you will most likely see something like "inspect element" choose that. make sure it is looking at the image you are wanting to change. look on the right side for the css, it will tell you exactly what css file it is in and exactly what spot to look for.

now, I don't know much about transparency in css but you can look up how to create it using google etc.
then just add that css to the correct place in the css file and you are good.

be sure to purge the cache and refresh your browser after making changes so you can see them.

if you have problems then it would be best to ask the author in the topic where that style is downloaded from.


luck
robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?

Hierotochan
Registered User
Posts: 10
Joined: Thu May 14, 2015 1:43 pm

Re: hello i cant change the background of a forum to an image

Post by Hierotochan »

Lumpy Burgertushie wrote:that is what I thought. you do not need the make the background image transparent, you want to make the foreground images transparent so the background can show through.

a link to your board would be most helpful.

basically, you can right click on the image you are interested in changing. in your right click menu you will most likely see something like "inspect element" choose that. make sure it is looking at the image you are wanting to change. look on the right side for the css, it will tell you exactly what css file it is in and exactly what spot to look for.

now, I don't know much about transparency in css but you can look up how to create it using google etc.
then just add that css to the correct place in the css file and you are good.

be sure to purge the cache and refresh your browser after making changes so you can see them.

if you have problems then it would be best to ask the author in the topic where that style is downloaded from.


luck
robert
Thanks for that, I'll post in/ask the creator of the style for help directly. Was just hoping there might be a common command I could look for as the issue sounded similar. : )

rayminator
Registered User
Posts: 310
Joined: Wed Nov 15, 2006 1:37 pm
Name: raymond green
Contact:

Re: hello i cant change the background of a forum to an image

Post by rayminator »

ok open common.css

and look for

Code: Select all

html {
	font-size: 100%;
	/* Always show a scrollbar for short pages - stops the jump when the scrollbar appears. non-IE browsers */
	height: 101%;
}
then add

Code: Select all

background: url("./images/back7.jpg") fixed  100%;
if you are using older version of phpbb

use this code here

Code: Select all

background: url"{T_THEME_PATH}/images/back7.jpg") fixed  100%;
then upload the image to

styles\prosilver\theme\images

hope this helps

Locked

Return to “[3.1.x] Styles Support & Discussion”