phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

FAQFAQ - PIERWSZA POMOC!!  regulaminREGULAMIN  SzukajSZUKAJ  UżytkownicyUżytkownicy  GrupyGrupy  StatystykiStatystyki
RejestracjaRejestracja  ZalogujZaloguj  DownloadDownload  katalog Forów DyskusyjnychKatalog Forów   FAQ Video tutoriale

Poprzedni temat «» Następny temat
Image Background
Autor Wiadomość
riverkqj

Posty: 115
Wysłany: 10-05-2007, 19:09   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 ?
_________________
Hawaii weddings | Joomla Templates | Tottenham | Steel Buildings
 
     
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
Wysłany: 10-05-2007, 21:59   

No im affraid ive done that and its just a black background :/
_________________
Hawaii weddings | Joomla Templates | Tottenham | Steel Buildings
 
     
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
Wysłany: 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
_________________
Hawaii weddings | Joomla Templates | Tottenham | Steel Buildings
 
     
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 10267 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
Wysłany: 10-05-2007, 23:05   

Yeah its still black cant understand it :/
_________________
Hawaii weddings | Joomla Templates | Tottenham | Steel Buildings
 
     
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
Wysłany: 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
_________________
Hawaii weddings | Joomla Templates | Tottenham | Steel Buildings
 
     
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
Wysłany: 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/
_________________
Hawaii weddings | Joomla Templates | Tottenham | Steel Buildings
 
     
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Możesz załączać pliki na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Kopiowanie wszelkich treści zawartych na forum, modyfikacji oraz instrukcji bez zgody administracji i autorów tematów/postów zabronione!

Powered by phpBB modified by Przemo © 2003 phpBB
Strona wygenerowana w 0,3 sekundy. Zapytań do SQL: 15
Polecane serwisy

Najlepsze oprogramowanie do prowadzenia sklepu internetowegoNajlepszy program do sklepu firmowany przez Przem'a

Sklep z gadżetami

serwis laptopów

phpbb

Design Cart - Tworzenie sklepu internetowego

iRonin.IT

• Zamów reklamę