kaine- Posted July 24, 2011 Share Posted July 24, 2011 (edited) My game.php has messed up and it shows this(look at the picture below) how can i sort it? it needs to look like this http://www.gangster-society.co.uk/inGame.jpg this is the game.php and the css file we using is this css/ingame-style.css hopefully someone can sort it <?php session_start(); include_once "folder/conn.php"; include_once "folder/funs.php"; include_once "folder/system.php"; logincheck(); $username=$_SESSION['username']; $query=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1") or die(mysql_error());; $fetch = mysql_fetch_object($query); $user=mysql_fetch_array(mysql_query("SELECT * FROM users WHERE username='$username'")); function rankcheck(){ global $date; $username=$_SESSION['username']; $query=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1") or die(mysql_error());; $info = mysql_fetch_object($query); if (($info->rank == "Loser") && ($info->rankpoints >= "300")){ $newrank="Wimp"; $done="1"; } elseif (($info->rank == "Wimp") && ($info->rankpoints >= "800")){ $newrank="Scum"; $done="1"; } elseif (($info->rank == "Scum") && ($info->rankpoints >= "1900")){ $newrank="Criminal"; $done="1"; } elseif (($info->rank == "Criminal") && ($info->rankpoints >= "2500")){ $newrank="Wanted Criminal"; $done="1"; } elseif (($info->rank == "Wanted Criminal") && ($info->rankpoints >= "4800")){ $newrank="Local Gangster"; $done="1"; } elseif (($info->rank == "Local Gangster") && ($info->rankpoints >= "9300")){ $newrank="Hired Hitman"; $done="1"; } elseif (($info->rank == "Hired Hitman") && ($info->rankpoints >= "18000")){ $newrank="Pimp"; $done="1"; } elseif (($info->rank == "Pimp") && ($info->rankpoints >= "34000")){ $newrank="Drug Baron"; $done="1"; } elseif (($info->rank == "Drug Baron") && ($info->rankpoints >= "55000")){ $newrank="Drug Lord"; $done="1"; } elseif (($info->rank == "Drug Lord") && ($info->rankpoints >= "89000")){ $newrank="Assassin"; $done="1"; } elseif (($info->rank == "Assassin") && ($info->rankpoints >= "144000")){ $newrank="Don"; $done="1"; } elseif (($info->rank == "Don") && ($info->rankpoints >= "233000")){ $newrank="Godfather"; $done="1"; } elseif (($info->rank == "Godfather") && ($info->rankpoints >= "370000")){ $newrank="Official GS Legend"; $done="1"; } elseif ($info->rank == "Official GS Legend"){ $done="0"; } if (!$done){ $done="0"; } if ($done == "1"){ mysql_query("INSERT INTO `inbox` ( `id` , `to` , `from` , `message` , `date` , `read` , `subject` ) VALUES ( '', '$username', '$username', 'You Have Been Promoted To $newrank, Congratulations!', '$date', '0', 'Rank Increase')"); mysql_query("UPDATE users SET rank='$newrank' WHERE username='$info->username'") or die("Failed"); }} rankcheck(); if(!empty($user['alert'])) echo "<script language='javascript' type='text/javascript'>alert('".$user['alert']."')</script>"; if(!empty($user['alert'])) { echo "<script language='javascript' type='text/javascript'>alert('".$user['alert']."');</script>"; mysql_query("UPDATE users SET alert='' WHERE id = '".$user['id']."';"); } $inbox=mysql_result(mysql_query("SELECT COUNT(*) FROM `inbox` WHERE `to`='$username' AND `read`='0'"),0,0); $currank=$fetch->rank; $rankp = $fetch->rankpoints; if ($currank == "Loser"){ $max = "300"; $old="0"; }elseif ($currank == "Wimp"){ $max = '800'; $old="300"; }elseif ($currank == "Scum"){ $max = '1900'; $old="800"; }elseif ($currank == "Criminal"){ $max = '2500'; $old="1900"; }elseif ($currank == "Wanted Criminal"){ $max = '4800'; $old="2500"; }elseif ($currank == "Local Gangster"){ $max = '9300'; $old="4800"; }elseif ($currank == "Hired Hitman"){ $max = '18000'; $old="9300"; }elseif ($currank == "Pimp"){ $max = '34000'; $old="18000"; }elseif ($currank == "Drug Baron"){ $max = '55000'; $old="34000"; }elseif ($currank == "Drug Lord"){ $max = '89000'; $old="55000"; }elseif ($currank == "Assassin"){ $max = '144000'; $old="89000"; }elseif ($currank == "Don"){ $max = '233000'; $old="144000"; }elseif ($currank == "Godfather"){ $max = '370000'; $old="233000"; }elseif ($currank == "Official GS Legend"){ $max = '420000'; $old="370000"; }elseif ($currank == "Official GS Legend"){ $max = '9999999999999999'; $old="100000000"; } $percent = round((($rankp-$old)/($max-$old))*100); ?> [css] <style type="text/css"> body { font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: white; } .button{ BORDER: solid 0 #FFFFFF; BACKGROUND: URL(../image/subhead.png) no-repeat; HEIGHT: 20px; WIDTH: 70px; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma; FONT-SIZE: 10px; MARGIN: 0px; vertical-align: middle; }.formtext { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #000000; background-color: #FFFFFF; border: 1px #000000 solid; }a:link { color: white; font-size:11px; font-weight:bold; text-decoration:none; }a:visited { color: white; font-size:11px; font-weight:bold; text-decoration:none;}a:active { color: white; font-size:11px; font-weight:bold; text-decoration:none;} a:hover { color: white; font-size:11px; font-weight:bold; text-decoration: underline; } .header { background-image: url(image/grad.png); height: 20px; background-repeat: repeat-x; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: white; }.menuheader { background-image: url(../images/gradients/advheader.png); height: 30px; background-repeat: repeat-x; font-family: Arial, Helvetica, sans-serif; font-size: 13px; margin-left:auto; margin-right:auto; color: white; }.middlebox{ font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: white; font-style: normal; line-height: normal; border: none; padding: 3px; background-color:#666666; }.middleboxE{ font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: white; font-style: normal; line-height: normal; border: none; padding: 8px; }.Right_side { background-image: url(../images/right_side_image.png); background-repeat: repeat-y; background-position: right; } .expstickybar{ position: absolute; color: white; right:0; /*horizontally center bar in window*/ z-index: 8; width:150px; /*set width of bar to width of entire window*/ background-color:#666666; bottom:0px; padding:0px; } .left_side { background-image: url(../images/left_side_image.png); background-repeat: repeat-y; background-position: left; }.banner { background-image: url(../images/banner.png); height: 255px; width: 900px; background-repeat: no-repeat; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: white; } .statsbg1 { background-image: url(../images/headerright.png); background-repeat: no-repeat; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: white; background-position: left; }.statsbg { background-image: url(../images/headerleft.png); background-position:right; background-repeat: no-repeat; height: 165px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: white; } .statsbg3 { margin-top:380px; background-repeat: no-repeat; height: 165px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: white; } .border_box { border: 1px solid #111111; } .border_box01 { border: 1px solid #111111; } .border_box_no_top { border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-color: #111111; border-bottom-color: #111111; border-left-color: #111111; } div.sdmenu { width: 150px; font-family: Arial, sans-serif; font-size: 12px; background: url(/basic/sdmenu/bottom.gif) no-repeat right bottom; color: #fff; margin-left:auto; margin-right:auto; } div.sdmenu div { background: url(/basic/sdmenu/title.gif) repeat-x; overflow: hidden; } div.sdmenu div:first-child { background: url(/basic/sdmenu/toptitle.gif) no-repeat; } div.sdmenu div.collapsed { height: 25px; } div.sdmenu div span { display: block; padding: 5px 25px; font-weight: bold; color: white; background: url(/basic/sdmenu/expanded.gif) no-repeat 10px center; cursor: default; border-bottom: 1px solid #ddd; } div.sdmenu div.collapsed span { background-image: url(/basic/sdmenu/collapsed.gif); } div.sdmenu div a { padding: 5px 10px; background: #eee; display: block; border-bottom: 1px solid #ddd; color: #111111; } div.sdmenu div a.current { background : #ccc; } div.sdmenu div a:hover { background: #111111 url(../basic/sdmenu/linkarrow.gif) no-repeat right center; color: #fff; text-decoration: none; } .profborder { border: 1px solid #111111; background-color:#666; } .pmiddlebox{ font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; font-style: normal; line-height: normal; border: none; padding: 3px; background-color: #; } .pmiddlebox2{ font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; font-style: normal; line-height: normal; border: none; padding: 3px; } </style> [/css] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Gangster Society :: Logged In Beta</title> <style type="text/css"> a { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; } a:link { color: #C89518; font-size: 10px; } a:visited { color: #C89518; font-size: 10px; } a:hover { color: #F8E7C0; font-size: 10px; } a:active { color: #C89518; font-size: 10px; } </style> <style type="text/css"> <!-- body { font-family: Arial; background: url('/image/login/login_page_bg.png') #0a0a0a repeat-x; color: white; text-align: center; font-size: 12px; } --> </style> kl <link rel="shortcut icon" href="logo.png"> <script language="javascript"> function Logout (){ var del = confirm("Are you sure you wish to logout?"); if (del == true){ var loc = "index.php?logout=yes"; parent.top.location.href=loc; }} </script> <style type="text/css"> <!-- #background { width: 100%; height: 100%; position: fixed; left: 0px; top: 0px; z-index: -1; background-color: #555; } --> </style> </head> <body> <div align="center" valign="top"><img src='image/outgame.png' width='700' height='90'></div><br> <table width="100%" style="height:100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="20%" valign="top"> <table width="150" border="1" align="center" cellpadding="0" cellspacing="0" class="table"> <tr><td align="center" valign="middle" class="header">Information</td></tr> <tr><td height="68" align="left" valign="top"> <a href="news.php" target="middle"> News & Updates</a><br> <a href="finduser.php" target="middle"> Find User</a><br> <a href="online.php" target="middle"> Gangsters Online</a><br> <a href="domi_stats.php" target="middle"> Domination</a><br> <a href="worldstats.php" target="middle"> World Stats</a><br> <a href="credits.php" target="middle"> Credits</a> </td></tr> </table> <br> <table width="150" border="1" align="center" cellpadding="0" cellspacing="0" class="table"> <tr><td align="center" valign="middle" class="header">Communications</td></tr> <tr><td height="68" align="left" valign="top"> <a href="inbox.php" target="middle"> Inbox</a><br> <a href="create_mess.php" target="middle"> Send Message</a><br> <a href="forum/?forum=main" target="middle"> Main Forum</a><br> <a href="forum/?forum=offtopic" target="middle"> Offtopic Forum</a><br> <a href="forum/?forum=ocads" target="middle"> Oc Forum</a><br> <a href="helpdesk.php" target="middle"> Helpdesk</a> </td></tr> </table> <br> <table width="150" border="1" align="center" cellpadding="0" cellspacing="0" class="table"> <tr><td align="center" valign="middle" class="header">Crimes</td></tr> <tr><td height="68" align="left" valign="top"> <a href="crime.php" target="middle"> Crimes</a><br> <a href="gta.php" target="middle"> GTA</a><br> <a href="pickpocket.php" target="middle"> Pickpocket</a><br> <a href="jail.php" target="middle"> Jail</a><br> <a href="drugs.php" target="middle"> Drugs Cartel</a><br> <a href="bank.php" target="middle"> Bank Account</a><br> <a href="hospital.php" target="middle"> Hospital</a><br> <a href="kill.php" target="middle"> Search & Kill</a> </td></tr> </table> </td> <td width="60%" align="center" valign="top"> <iframe src="topstats.php" height="10%" style="background-color: transparent; width: 900px;" allowtransparency="true" scrolling="no" frameborder="0"></iframe> <iframe align="middle" src="news.php" name="middle" height="100%" style="background-color: transparent; width: 900px;" allowtransparency="true" scrolling="no" frameborder="0" id="middle"></iframe> </td> <td width="20%" valign="top"> <table width="150" border="1" align="center" cellpadding="0" cellspacing="0" class="table"> <tr><td align="center" valign="middle" class="header">Gambling Not yet Open</td></tr> <tr><td height="68" align="left" valign="top"> <a href="" target="middle"> War Table</a><br> <a href="slots.php" target="middle"> Slots</a><br> <a href="" target="middle"> Rps</a><br> <a href="" target="middle"> Blackjack Table</a><br> <a href="casinoban.php" target="middle"> Casino Ban</a><br> </td></tr> </table> <br> <table width="150" border="1" align="center" cellpadding="0" cellspacing="0" class="table"> <tr><td align="center" valign="middle" class="header">Account</td></tr> <tr><td height="68" align="left" valign="top"> <a href="edit_profile.php" target="middle"> Edit Profile</a><br> <a href="your_stats.php" target="middle"> My Stats</a><br> <a href="your_logs.php" target="middle"> My Logs</a><br> <a href="inventory.php" target="middle"> My Inventory</a><br> <a href="my_record.php" target="middle"> My Record</a> </td></tr> </table> <br> <table width="150" border="1" align="center" cellpadding="0" cellspacing="0" class="table"> <tr><td align="center" valign="middle" class="header">Misc & Shops</td></tr> <tr><td height="68" align="left" valign="top"> <a href="bf.php" target="middle"> Bullet Factory</a><br> <a href="black_market.php" target="middle"> Blackmarket</a><br> <a href="goshop.php" target="middle"> Go Shopping(CS)</a><br> <a href="garage.php" target="middle"> Garage</a><br> <a href="gang_blacklist.php" target="middle"> Gang Blacklist</a><br> <a href="gangs.php" target="middle"> Gangs(CS)</a><br> </td></tr> </table> <br> <center><a href=javascript:Logout()><img src=image/logout.png></a> <a href=game.php><img src=image/refresh.png></a></center> </td> </tr> </table> </body> </html> Edited July 25, 2011 by Dominion tags... Quote Link to comment Share on other sites More sharing options...
W3Theory || Peter Posted July 24, 2011 Share Posted July 24, 2011 What is wrong with it? Quote Link to comment Share on other sites More sharing options...
kaine- Posted July 24, 2011 Author Share Posted July 24, 2011 the grad on it is messed up, it should be like how it shows for the users online and where it says gangsters online it should be like that i dont know why it isnt. Quote Link to comment Share on other sites More sharing options...
kaine- Posted July 24, 2011 Author Share Posted July 24, 2011 anyone know why? Quote Link to comment Share on other sites More sharing options...
runthis Posted July 24, 2011 Share Posted July 24, 2011 From a screenshot of some random part of your game, no i cannot tell why your gradient (image?, css?, stylesheeted or inline?) is not showing up, nor do i know what it looks like on the other pages to even compare, im sure others viewing this thread didnt reply from lack of information. You need to provide more details, as well as things that you have done personally to try and solve the problem. If you want one page to look like another, use your native keyboard function on your source and ctrl+c and then ctrl+v it to where you want it. Quote Link to comment Share on other sites More sharing options...
kaine- Posted July 24, 2011 Author Share Posted July 24, 2011 right i added the code. Quote Link to comment Share on other sites More sharing options...
runthis Posted July 24, 2011 Share Posted July 24, 2011 Maybe that was worse, why dont you use the code bbcode tags so that looks a little easier to read yeah? and maybe even just the parts that are messed up, and the parts its supposed to look like Quote Link to comment Share on other sites More sharing options...
Rory_M Posted July 25, 2011 Share Posted July 25, 2011 Please use [*PHP*] and [/*PHP*] tags for your code (without the stars), because nobody will bother to read it. Quote Link to comment Share on other sites More sharing options...
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.