News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

how put background images in SMF forum ?

Started by edi67, March 16, 2004, 06:40:47 AM

Previous topic - Next topic

edi67

is possible have one images in background of my forum SMF ? similar as i made in yabbse ...
i dont know which comand i must write for this and where .


before i have this <body background="/write4.jpg" >

but now not work
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Grudge

Find the CSS for the body tag (It's in style.css by default). And then add this to the CSS for it:

background-image: url("write4.jpg");


You may or may not need the quotes, I never remember.
I'm only a half geek really...

edi67

i done this but not work with quote and without quote.  :(
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Grudge

OK. Apparantly it doesn't need the quotes anyway. What about doing a full path to the image. Or like .\write4.jpg, or \write4.jpg. I'm not very good at CSS but I can't see why it wouldn't work. The only thing is that the path you gave will be expecting the image to be found in the same directory as your forum root and NOT the themes sub directory. Stick write4.jpg in your forum root directory and it may work...
I'm only a half geek really...

edi67

i changed path and i obtained this :

http://attack.altervista.org/yabbse/index.php

as u see background is all around table but not as i wanted as background images as this:

http://www.ediboard.altervista.org/yabbse/index.php


Thank for u patience with me
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Grudge

Well - looking at the source for one thing you have TWO body tags next to each other. One with a colour and one with an image. As for the problems of it backgrounding onto the table... maybe those cells are set with transparent backgrounds?
I'm only a half geek really...

edi67

well with u help i obtained something better look:

http://attack.altervista.org/yabbse/index.php

but again i want that my Table have one colour and not background image as u told me may be them are transparent background

how i can have them with not tranparente background ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Aoshi

You have this somewhere in your css file:

/* By default (td, body..) use Tahoma in black. */
body, td
{
background-image: url(/yabbse/Themes/default/images/write4.jpg);
color: #000000;
font-size: small;
font-family: Tahoma, arial, helvetica, serif;
}

body
{
margin: 0px;
padding: 0px;
}



change to this:
/* By default (td, body..) use Tahoma in black. */
body, td
{
color: #000000;
font-size: small;
font-family: Tahoma, arial, helvetica, serif;
}

body
{
background-image: url(/yabbse/Themes/default/images/write4.jpg);
margin: 0px;
padding: 0px;
}



edi67

ohh great Aoshi ...i can offer u o cup of tea ? thank so much   ;D

too u grudge

you are the best...thank

sorry i can ask u another little think as in this forum i see in my forum my avatar in table in high part of screen but there is one difference

there i see my avatar correctly in full height in my forum:

http://attack.altervista.org/yabbse/index.php

i see my avatar image in half heigh not full heigh
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Aoshi

http://www.simplemachines.org/community/index.php?topic=7253.0

There's code there that removes that avatar entirely.

Last post of that thread asks if there's a way to resize it as it does in a thread. Someone will post a solution, I'm sure.

edi67

HELPPPPPP i upgraded to 4.1 beta versione and now i not see more background i see it for 1 second and after it go out and begin grey coloure look please:

http://www.ediboard.altervista.org/yabbse/index.php


somebody can help me ??
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Aoshi

You have this somewhere in your template:

<div style="background-color: #D0D0D0;">

I don't know if it's properly closed or not (didn't dig through your entire html) but either remove that div tag along with the one that closes it, or don't set the background-color attribute (change the code above to <div>). The latter solution is easier, since you don't have to find the closing tag, but it's just being lazy. I suggest finding the closing tag.

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Advertisement: