Joel Posted April 15, 2008 Share Posted April 15, 2008 Ok i really need help and this is the last time im going to need help, Im having trouble with my own layout in my game, If some one has loads off messages or Items in Inventory they go off the page (Layout) and i want to fix this, But i carnt, Ive split my Template in 3 Parts and just want some one to redo my header.php so when people have loads off items or what so ever the template is stretched, here is my header.php: <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <style type="text/css"> <!-- body { background-color: #000000; margin-top: 0px; margin-bottom: 0px; font-family:Calibri;font-size:12.4px;color: black; scrollbar-base-color: #0066FF; scrollbar-arrow-color: #0066FF; scrollbar-DarkShadow-Color: #0066FF; } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } A:hover {cursor: crosshair; color: #0066FF; } table,tr,td { font-family:Calibri;font-size: 12.4px; } img { border:none; } textarea { font-family:Calibri;font-size:12.4px;color: black; } .table2 { } body { background-color: #000000; background-image: url('background.png'); background-repeat: no-repeat; background-position: center } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#999999; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#0066FF; height:22px; } td .h { font-weight: bold; background-color: #0066FF; } .table th { font-weight: bold; background-color: #0066FF; } --> </style></head> <body> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your Account May be Broken. Please ,Mail help@{$domain} Stating your Username and Player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the Fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $_GET['ID'] = abs(@intval($_GET['ID'])); $_GET['viewforum'] = abs(@intval($_GET['viewforum'])); $_GET['viewtopic'] = abs(@intval($_GET['viewtopic'])); $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.png]"; } $gn=""; global $staffpage; print <<<OUT [img=title.png] <table width="99%" border="0" cellpadding="3" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> [b]<center>Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Money:[/b] {$fm} [b]Level:[/b] {$ir['level']} [b]Crystals:[/b] {$ir['crystals']} [[url='logout.php']Emergency Logout[/url]] <hr /> [b]Energy:[/b] {$enperc}% <img src=bluebar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10> [b]Will:[/b] {$wiperc}% <img src=bluebar.png width=$wiperc height=10><img src=redbar.png width=$wiopp height=10> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=bluebar.png width=$brperc height=10><img src=redbar.png width=$bropp height=10> [b]EXP:[/b] {$experc}% <img src=bluebar.png width=$experc height=10><img src=redbar.png width=$exopp height=10> [b]Health:[/b] {$hpperc}% <img src=bluebar.png width=$hpperc height=10><img src=redbar.png width=$hpopp height=10> <hr /> OUT; /* PROXY BLOCK */ /* -- By DeathStar -- DK Codes */ if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) || ($_SERVER['HTTP_USER_AGENT']=='') || ($_SERVER['HTTP_VIA']!='')){ echo "<center><font color=red>Logged</center>"; $page = $_SERVER['SCRIPT_NAME']; $nowtime = date('r'); $fp = fopen("proxies.txt", "a") or die("Could not be logged");/*append the file*/ $write = fputs($fp, "IP: " .$_SERVER['REMOTE_ADDR'] . " Browser: ". $_SERVER['HTTP_USER_AGENT'] . " Page: $page Time: $nowtime \n") or die("Could not be logged"); fclose($fp); die("<center>[b]<font color=red size=+1>Don't use proxies, please. You may be baned! IP logged as: $ip"); } /* PROXY BLOCK */ if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"> <center>'; if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } print "<a href='voting.php'>[b]<h2.5>| Vote for Brutal Impact and Get Rewarded |</h2.5>[/b]"; print "[url='donator.php'][b]<h2.5>| Donate to {$set['game_name']} now for game benefits! |</h2.5>[/b][/url] "; } function smenuarea() { include "smenu.php"; global $ir,$c; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db; print <<<OUT </center> </td> </tr> </table></td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> {$db->num_queries} queries</body> </html> OUT; } } ?> Theres loads off people Signing up for my game and there complaining about The template, Ive split the template in 3 parts, So thats 3 (PNG) Files, I would like you to sort it out in my header.php, If you help me and it works and if you sign up for my game i will put you as a Member off staff for helping me out, Thanks 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.