English version - Image Background
riverkqj - 10-05-2007, 19:09 Temat postu: Image Background How do you have an image as a background instead of a plain colour ?
Ive tried the styles admin and input the background image but no change ?
JA$ON - 10-05-2007, 21:49
Open /templates/your_template/your_template.css
and search for something like this (different in some templates)
Kod: | #forum {
width: ???px;
height: 100%;
background-color: #??????;
margin: 0 auto} |
and change to:
Kod: | #forum {
width: ???px;
height: 100%;
background: url(images/your_image.gif);
margin: 0 auto} |
In this example you would have http://yourdomain.com/images/your_image.gif as your background.
riverkqj - 10-05-2007, 21:59
No im affraid ive done that and its just a black background
JA$ON - 10-05-2007, 22:16
weired... it worked with my forum when i tried it.. cant remember if id di something different because i changed it back to default a while ago..
[ Added: 10-05-2007, 22:19 ]
but i can tell you how to set an image as the background of the portal, maybe it also works for the forum.
just opene the portal_body.tpl and to the first table in the first line:
Kod: | <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center"> |
add:
Kod: | background="myimage.gif" |
so that it becomes:
Kod: | <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" background="myimage.gif"> |
that works. maybe you can then do the same for index_main.tpl or whatever .tpl file it is for the forum.
riverkqj - 10-05-2007, 22:20
does it matter what file format the picture is ?
Ive tried .Gif .png and .jpg
all done the same, it just stays black
JA$ON - 10-05-2007, 22:39
it should work with .gif .png .bmp .jpg .jpeg and probably some other image formats..
maybe your images are in the wrong directory or maybe the CHMOD (Attributes/Public Rights) is set to 000. try to set it to 755.
riverkqj - 10-05-2007, 22:43
Nope all rights are set correct and i have the image in the image directory of the template folder.
Could you try this image file on yours please ?
JA$ON - 10-05-2007, 22:54
what path did you set?
what file did you edit?
if you editet the /templates/your_template/your_template.css file the path then must be images/bg11.gif
but if you edited the portal_body.tpl the path must be /templates/your_template/images/bg11.gif
riverkqj - 10-05-2007, 22:58
Yep ive edited the subsilver.css file
and done
Cytat: | if you editet the /templates/your_template/your_template.css file the path then must be images/bg11.gif |
Correctly did it work for you ?
JA$ON - 10-05-2007, 23:03
its still black?
havent tried it yet im trying it now wait a minute
riverkqj - 10-05-2007, 23:05
Yeah its still black cant understand it
JA$ON - 10-05-2007, 23:09
yes it worked for me.
in my NB2.css i changed it to:
Kod: | #forum {
width: 820px;
height: 100%;
background: url(images/bg-pattern.gif);
margin: 0 auto} |
my file is located at /templates/NB2/images/bg-pattern.gif
it also worked with your image:
Kod: | #forum {
width: 820px;
height: 100%;
background: url(http://www.przemo.org/phpBB2/forum/files/bg11_613.gif);
margin: 0 auto} |
maybe you need to clear your cache. i had to clear it first before i could see the change.
or maybe your image wasn uploaded correctly and is corupt?
riverkqj - 10-05-2007, 23:23
Yeah i think my upload was corrupt from the przemo server
http://www.przemo.org/php...es/bg11_613.gif
It works ok but it repeats the image many times , do you know how i can stretch the image all the way down the screen
The image looks like this
www.ricesrx.com/forum/
but id like it like this
www.tottenhamhotspurs.tv
JA$ON - 10-05-2007, 23:41
first ofm all, the image only needs to have a width of 1 pixel.
just make it as tall as your site can get or use a javascript.
use google for that
riverkqj - 10-05-2007, 23:48
Ah thats great jason, one more question do you know how to push the forum to the top of the screen ?
As mine is about 10 pixels down from the top of the page \?
www.ricesrx.com/forum/
|
|
|