Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 03-23-2005, 03:36 PM Backgrounds in php
Average Talker

Posts: 20
Trades: 0
Do any of you gurus know hoe to change the backgrounds in php files .??
Im new to this game had some great help earlier ...

Also if anybody knows where i can get the original PHP files
for linkspider classifieds this would help me on my quest ,
In return I can give Flash MX advice


Many thanks in advance
Dooky
dookster is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-23-2005, 03:49 PM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
Dooky,

I assume that you mean the backgrounds of the pages rendered by PHP. Remember that the primary purpose of PHP is to execute instructions to generate HTML. Therefore, the process for changing the background is the same. See the CSS attribute "background" as applied to <body> or other structure capable of displaying a background.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 03-23-2005, 03:58 PM
Average Talker

Posts: 20
Trades: 0
I would like to keep the css of the php file tables but add a background to the white area surrounding it .!1
Can this be done .??
dookster is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 04:00 PM
Average Talker

Posts: 20
Trades: 0
this is the code for the header template



<style>
.BlackLink {font-family:verdana; font-size:11; color:black; font-weight:bold; text-decoration:none}
a.BlackLink:hover {text-decoration: underline}

a.BlueLink {font-family:verdana; font-size:11; color:#727272; font-weight:bold; text-decoration:none}
a.BlueLink:hover {text-decoration: underline}

.sector {font-family:verdana; font-size:12; color:black; font-weight:bold; text-decoration:underline}

.RedLink {font-family:verdana; font-size:11; color:red; font-weight:bold; text-decoration:none}
a.RedLink:hover {text-decoration: underline}

.GreenLink {font-family:verdana; font-size:11; color:green; font-weight:bold; text-decoration:none}
a.GreenLink:hover {text-decoration: underline}

.WhiteLink {font-family:verdana; font-size:12; color:white; font-weight:bold; text-decoration:none}
a.WhiteLink:hover {text-decoration: underline}

.OrangeLink {font-family:verdana; font-size:12; color:A8A7A6; font-weight:bold; text-decoration:none}
a.OrangeLink:hover {text-decoration: underline}

a.NavClass {font-family:verdana; font-size:13; color:white; font-weight:bold; text-decoration:none}

a.CatLinks {font-family:verdana; font-size:11; color:white; font-weight:bold; text-decoration:none}
a.CatLinks:hover {text-decoration:underline}

a.SubCatLinks {font-family:verdana; font-size:11; color:#990000; font-weight:bold; text-decoration:none}
a.SubCatLinks:hover {text-decoration:underline}


body {
background-color:white;
font-family:verdana;
font-size:9;
color:black;
font-weight:regular;
text-align:left;


td {font-family:verdana; font-size:12; font-weight:regular; text-decoration:none}
.thead {font-family:verdana; font-size:12; font-weight:bold; color:black; background-colorEDFDE; text-decoration:none}
input, select, textarea {font-family:verdana; font-size:9; color:black; border-width:1; border-color:black}

</style>
dookster is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 04:01 PM
Average Talker

Posts: 20
Trades: 0
all new to me i just deal with flash.!!!!!!
lol
dookster is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 04:17 PM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
Quote:
Originally Posted by dookster
I would like to keep the css of the php file tables but add a background to the white area surrounding it .!1
Can this be done .??
Assuming the "white area surrounding it" is the body itself, then change the CSS for that:

Code:

body {
background: url( 'images/yourImage.jpg' ) white;
font-family:verdana;
font-size:9;
color:black;
font-weight:regular;
text-align:left;
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 03-23-2005, 05:17 PM
Average Talker

Posts: 20
Trades: 0
I think ive really screwed things up now all the alignment is out .!!!!!!!!!!!!!!!!!!!!!!!! on the footer .!!!


**** this PHP ....lol
dookster is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 05:18 PM
Average Talker

Posts: 20
Trades: 0
and still no background image is showing GRrrrrrrrrrrrrrrrrrrrrr.
dookster is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 05:21 PM
dan245's Avatar
Skilled Talker

Posts: 59
Location: Massachusetts, USA
Trades: 0
Quote:
Originally Posted by Kyrnt
Assuming the "white area surrounding it" is the body itself, then change the CSS for that:

Code:

body {
background: url( 'images/yourImage.jpg' ) white;
font-family:verdana;
font-size:9;
color:black;
font-weight:regular;
text-align:left;
It would actually be...

HTML Code:
body {
[b]background: url( images/yourImage.jpg ) white;[/b]
font-family:verdana;
font-size:9;
color:black;
font-weight:regular;
text-align:left;
take the two ' ' off the background part.
dan245 is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 05:35 PM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
dan245,
I think you can use grouping there if need be. The W3C actually uses double quotes in an example here.

At http://www.htmlhelp.com/reference/css/units.html, the WDG say:

Quote:
Originally Posted by http://www.htmlhelp.com/reference/css/units.html
A URL value is given by url(foo), where foo is the URL. The URL may be optionally quoted with either single (') or double (") quotes and may contain whitespace before or after the (optionally quoted) URL.

__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 03-23-2005, 06:30 PM
dan245's Avatar
Skilled Talker

Posts: 59
Location: Massachusetts, USA
Trades: 0
Could that still be the problem, though?
dan245 is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 06:43 PM
Average Talker

Posts: 20
Trades: 0
Hi guys ......
i have resolved all the background images in the php files apart from this one , it will go to the background i want until i log in then the whole screen fills with the background and does not show the other php file any ideas , or am i talking gibberish ....



code



<?
require_once("conn.php");

if(isset($_POST[s1]))
{
$q1 = "select * from class_members where username = '$_POST[us]' and password = '$_POST[ps]' ";
$r1 = mysql_query($q1) or die(mysql_error());

if(mysql_num_rows($r1) == '1')
{
//ok
$a1 = mysql_fetch_array($r1);

$_SESSION[MemberID] = $a1[MemberID];
$_SESSION[MaxOffers] = $a1[StandardAds] + $a1[FeaturedAds];
$_SESSION[AccountStatus] = $a1[AccountStatus];
$_SESSION[AccountExpDate] = $a1[ExpDate];

header("location:YourAccount.php");
exit();
}
else
{
$error = "<font face=verdana color=red size=2><b>Invalid username/password!</b></font>";
}

}


//get the templates
require_once("includes.php");
require_once("templates/HeaderTemplate.php");
require_once("templates/LoginTemplate.php");
require_once("templates/FooterTemplate.php");

?>
dookster is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 06:44 PM
Average Talker

Posts: 20
Trades: 0
could it be becauce I am using a password.?????

Me is dumb .............
dookster is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 06:49 PM
Average Talker

Posts: 20
Trades: 0
i would like the above code to link to this php
<?
require_once("conn.php");
require_once("includes.php");
require_once("access.php");

if(isset($_POST[s1]))
{
$q1 = "update class_members set
password = '$_POST[p1]',
FirstName = '$_POST[FirstName]',
LastName = '$_POST[LastName]',
Address = '$_POST[Address]',
City = '$_POST[City]',
State = '$_POST[State]',
ZipCode = '$_POST[ZipCode]',
Country = '$_POST[Country]',
Phone = '$_POST[phone]',
AlternatePhone = '$_POST[AlternatePhone]',
Fax = '$_POST[Fax]',
email = '$_POST[email]',
news = '$_POST[news]',
format = '$_POST[format]'

where MemberID = '$_SESSION[MemberID]' ";

mysql_query($q1);

if(!mysql_error())
{
$error = "<font face=verdana size=2 color=green>You account was updated!</font>";
}

}

//get the member info
$q1 = "select * from class_members where MemberID = '$_SESSION[MemberID]' ";
$r1 = mysql_query($q1) or die(mysql_error());
$a1 = mysql_fetch_array($r1);


//check the Expire Date
$after5_1 = mktime(0,0,0,date(m),date(d) + 5,date(Y));
$after5_2 = mktime(23,59,59,date(m),date(d) + 5,date(Y));

if(($after5_1 <= $a1[ExpDate]) && ($a1[ExpDate] <= $after5_2 ))
{
$ExpireMessage = "<br><br><center><a class=RedLink href=\"renew.php\">Renew Account</a></center><br>";
}

if($a1[news] == 'y')
{
$ch1 = "checked";
}
else
{
$ch2 = "checked";
}

if($a1[format] == 'html')
{
$ch3 = "checked";
}
else
{
$ch4 = "checked";
}

//get the number of posted ads by this user
$qp = "select count(*) from class_catalog where MemberID = '$_SESSION[MemberID]' ";
$rp = mysql_query($qp) or die(mysql_error());
$ap = mysql_fetch_array($rp);

$RemainingCredits = $a1[StandardAds] + $a1[FeaturedAds] - $ap[0];
$PostedAds = $ap[0];

$BuyMore = "<br><center><a class=RedLink href=\"more.php\">Buy More Credits</a></center><br>";

require_once("templates/HeaderTemplate.php");
require_once("templates/EditAccount.php");
require_once("templates/FooterTemplate.php");

?>
but have the background

<style type="text/css">
<!--
body {
background-image: url(images/cork.jpg);
-->
</style><?
dookster is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 06:50 PM
Average Talker

Posts: 20
Trades: 0
every time i try it when i log in the screen just goese to the full background image i can click back and i am logged in but this is no good .!!!
pwwwease help I am banging my head against the wall now ...
cheers
dookster is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 08:01 PM
Average Talker

Posts: 20
Trades: 0
best of thanks for all your help guys ...
dookster is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Backgrounds in php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.52463 seconds with 12 queries