View Full Version : PHP background image
Jama62
05-26-2006, 02:23 AM
Is there a way to put a background image on the homepage only?
Neticus
05-26-2006, 03:57 PM
Try:
1. Place your homebackgroundimage.gif in /images folder.
2. In your root directory, where main.css is, create a file called homebackgroundimage.css
place
Content visible to registered users only.
3. In header.tpl before </head> place
Content visible to registered users only.
See how that goes.
Notes:
'0 and not $p and not $q' - Commands explained (http://www.phplinkdirectory.com/kb/Making_Template_Changes_to_the_Front_Page_Only.htm l)
Customize image presentation.
Keyword search 'css backgrounds', 'css background image' etc
http://www.w3schools.com/css/css_background.asp
http://www.tizag.com/cssT/background.php
Jama62
05-26-2006, 07:10 PM
I gave it a whirl and I didn't get the exact effect I was hoping. The image went tile on me when all i want it to be is on the center.
Thanks very much though.
Neticus
05-26-2006, 07:18 PM
Content visible to registered users only.
That's why I gave you links to 'Customize image presentation' at the bottom in my last post. In the first link see: 'How to place the background image' and play about with your homebackgroundimage.css :)
Jama62
05-26-2006, 07:24 PM
I think I got it.... thanks
Thank you very much again!!!
homebackgroundimage.css:
body {
background-image:
url('images/image.gif');
background-repeat:
no-repeat;
background-position:
center;
}
then I inserted in main .tpl as you mentioned on top.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.