Image Background |
Autor |
Wiadomość |
riverkqj
Posty: 115
|
|
|
|
 |
Gadatliwa Kasia
|
|
|
|
JA$ON
Posty: 116
|
Wysłany: 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. |
_________________ Hey Gość, please take second to visit my Portal. |
|
|
|
 |
riverkqj
Posty: 115
|
|
|
|
 |
JA$ON
Posty: 116
|
Wysłany: 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. |
_________________ Hey Gość, please take second to visit my Portal. |
|
|
|
 |
riverkqj
Posty: 115
|
|
|
|
 |
JA$ON
Posty: 116
|
Wysłany: 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. |
_________________ Hey Gość, please take second to visit my Portal. |
|
|
|
 |
riverkqj
Posty: 115
|
Wysłany: 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 ?
bg11.gif
|
 |
Plik ściągnięto 10266 raz(y) 4,99 KB |
|
_________________ Hawaii weddings | Joomla Templates | Tottenham | Steel Buildings |
|
|
|
 |
JA$ON
Posty: 116
|
Wysłany: 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 |
_________________ Hey Gość, please take second to visit my Portal. |
|
|
|
 |
riverkqj
Posty: 115
|
Wysłany: 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 ? |
_________________ Hawaii weddings | Joomla Templates | Tottenham | Steel Buildings |
|
|
|
 |
JA$ON
Posty: 116
|
Wysłany: 10-05-2007, 23:03
|
|
|
its still black?
havent tried it yet im trying it now wait a minute |
_________________ Hey Gość, please take second to visit my Portal. |
|
|
|
 |
riverkqj
Posty: 115
|
|
|
|
 |
JA$ON
Posty: 116
|
Wysłany: 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? |
_________________ Hey Gość, please take second to visit my Portal. |
|
|
|
 |
riverkqj
Posty: 115
|
|
|
|
 |
JA$ON
Posty: 116
|
Wysłany: 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 |
_________________ Hey Gość, please take second to visit my Portal. |
|
|
|
 |
Gadatliwa Kasia
|
|
|
|
riverkqj
Posty: 115
|
|
|
|
 |
|