Brandrune Posted January 30, 2009 Posted January 30, 2009 Hello All, Could someone please explain how I would edit header.php in v2 exactly so I can change the background if a player was in jail/hospital. I am new to php so if you can do it step by step it would be appreciated. Quote
AlabamaHit Posted January 30, 2009 Posted January 30, 2009 Re: Changing Header.php V2 search the forums. I have explained this already... Quote
John99 Posted February 2, 2009 Posted February 2, 2009 Re: Changing Header.php V2 Hello All, Could someone please explain how I would edit header.php in v2 exactly so I can change the background if a player was in jail/hospital. I am new to php so if you can do it step by step it would be appreciated. Here I haven't tested it.. if($ir['hospital'] > "0") { $bgcolor = 'red'; } elseif($ir['jail'] > "0") { $bgcolor = 'green'; } else { $bgcolor = 'black'; } echo '<body bgcolor="'.$bgcolor.'">'; Just remember i havent tested this just done it quickly on here.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.