DeathStar Posted February 24, 2007 Share Posted February 24, 2007 Hi there. I have a problem on my site/game. It seems that IE(Internet Explorer) does not allow people to view my site. How can i check browser support and fix it? Quote Link to comment Share on other sites More sharing options...
Archadian Posted February 24, 2007 Share Posted February 24, 2007 Are you sure its IE and not your server or hosting company? I have never heard of IE not letting someone view a webpage. Tell us what exactly is happening Quote Link to comment Share on other sites More sharing options...
DeathStar Posted February 24, 2007 Author Share Posted February 24, 2007 Only my header file is showing in IE but in FF(firefox) it works perfectly See for yourself. www.GangsterTerritory.com Login: test Password: test View with IE then FF Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 24, 2007 Share Posted February 24, 2007 If there is a javascript error on the page it can stop it from rendering in IE, depending on the user's settings. It loads fine in IE for me, also in Fx. This however, you might want to fix: "Welcome Resource id #4, Good to have you back." Quote Link to comment Share on other sites More sharing options...
DeathStar Posted February 24, 2007 Author Share Posted February 24, 2007 oh yea that.. Thanks for reminding me But there is not javascript on the main pages only on the login page and did you login and have a look? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 24, 2007 Share Posted February 24, 2007 No, I didn't. If the problem is on the login page, which is the one which has javascript, it's probably that! Otherwise, make sure you have error_reporting set to E_ALL Quote Link to comment Share on other sites More sharing options...
DeathStar Posted February 24, 2007 Author Share Posted February 24, 2007 did that.. fixed all errors and things still not displaying in IE Quote Link to comment Share on other sites More sharing options...
tarun Posted February 24, 2007 Share Posted February 24, 2007 In My IE7 You Just Get The Stats Section Can We Have A Look At The Source Code Please? Quote Link to comment Share on other sites More sharing options...
DeathStar Posted February 24, 2007 Author Share Posted February 24, 2007 yes its pretty basic though.. <?php class headers { function startheaders() { global $ir; echo <<<EOF <html> <head> <title>GangstersTerritory :: BETA Final</title> <style> body { font-family:helvetica, arial, geneva, sans-serif;font-size:12;color: #ffffff; scrollbar-base-color: #000000; scrollbar-arrow-color: #66ff00; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: #ffffff;text-decoration: none; } table,tr,td { font-family:font-family: Arial;font-size: 12; } img { border:none; } textarea { font-family:font-family:Arial; font-size:14px;color:red; } </style> <style> a:link { color: #ffffff;text-decoration: none; } a:hover { color: gray;text-decoration: none; } </style> <link rel="icon" href="gt.ico" type="image/x-icon"> <link rel="shortcut icon" href="gt.ico" type="image/x-icon"> </head> <body> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $c,$userid; //ini_set('error_reporting', E_ALL); $ip1 = $_SERVER['REMOTE_ADDR']; $port1 = $_SERVER['REMOTE_PORT']; $other1 = $_SERVER['HTTP_HOST']; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; mysql_query("UPDATE users SET laston=UNIX_TIMESTAMP(),lastip='$ip' WHERE userid=$userid",$c); $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; //marraige script if ($ir['married']>0) { $marr=mysql_query("SELECT * FROM users WHERE userid={$ir['married']}",$c); $ma=mysql_fetch_array($marr); if ($ma['willmax']>$ir['maxwill']) { mysql_query("UPDATE users SET maxwill={$ma['willmax']} WHERE userid=$userid",$c); } if ($ir['willmax']<$ir['maxwill'] && $ir['maxwill']>$ma['willmax']) { mysql_query("UPDATE users SET maxwill=willmax WHERE userid=$userid",$c); } } //weather mod //$wmood = mysql_query("SELECT mood FROM wmood"); //end weather mod $fia=(int) rand(1000,9999); $fib=(int) rand(1000000,9999999); if($fia == $fib) { //finding items $iq=mysql_query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1",$c); $r=mysql_fetch_array($iq); $item=$r['itmid']; $userid=$ir['userid']; mysql_query("INSERT INTO inventory VALUES ('', $item, $userid, 1)",$c); event_add($userid,"You found a {$r['itmname']} While Walking Around the city.",$c); } $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="<img src='donator.gif' alt='Donator: {$ir['donatordays']} Days Left' title='Donator: {$ir['donatordays']} Days Left' />"; } if($ir['gang']) { $qg=mysql_query("SELECT * FROM gangs WHERE gangID={$ir['gang']}",$c); $rr=mysql_fetch_array($qg); $gn=$rr['gangPREF']." "; } else { $gn=""; } print "<body bgcolor='#000000'> <center><table> <td><b>Name:</b> $gn{$u} [{$ir['userid']}] $d</center> <br/> <b>Money:</b> {$fm}</center> <br/> <b>Level:</b> {$ir['level']}</center> <br/> <b>Jewels:</b> {$ir['crystals']}</center> <br/> <b>Steps:</b> {$ir['turns']}</center> <br/> [<a href='logout.php'>Logout</a>]</td> <td><img scr='4.png' alt='Banner...' /></td> <td> <b>Energy:</b> {$enperc}%<br /> <img src=bargreen.gif width=$enperc height=10><img src=barred.gif width=$enopp height=10><br /> <b>Will:</b> {$wiperc}%<br /> <img src=/barblue.gif width=$wiperc height=10><img src=barred.gif width=$wiopp height=10><br /> <b>Nerve:</b> {$ir['brave']}/{$ir['maxbrave']}<br /> <img src=barblack.gif width=$brperc height=10><img src=barred.gif width=$bropp height=10><br /> <b>EXP:</b> {$experc}%<br /> <img src=baryellow.gif width=$experc height=10><img src=barred.gif width=$exopp height=10><br /> <b>Health:</b> {$hpperc}%<br /> <img src=barwhite.gif width=$hpperc height=10><img src=barred.gif width=$hpopp height=10></td></tr></table></center></div> <center><h2><font color=red><a href='vote.php'>Vote for GT</a><br><a href='donator.php'><b>Donate to GangstersTerritory and get lots of benifits!!</b></h2></center><br/><table width=100% ><tr><td width=20% valign='top'> "; if($ir['fedjail']) { $q=mysql_query("SELECT * FROM fedjail WHERE fed_userid=$userid",$c); $r=mysql_fetch_array($q); die("<center><b><font color=red size=+1>You have been put in the Federal Jail for {$r['fed_days']} day(s).<br /> Reason: {$r['fed_reason']}</font></b><br> <a href='#'><sup>Comming Soon</sup> Click here to ask to have your account back.</a></body></html>"); } if(file_exists('ipbans/'.$ip)) { die("<b><font color=red size=+1>Your IP has been banned, there is no way around this.</font></b></body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; print "</td><td valign='top'> "; } function endpage() { print "</td></tr></table></body> </html>"; } } ?> Quote Link to comment Share on other sites More sharing options...
DeathStar Posted February 24, 2007 Author Share Posted February 24, 2007 Anyone know why? Quote Link to comment Share on other sites More sharing options...
itsmeArry Posted February 26, 2007 Share Posted February 26, 2007 Anyone know why? I viewed it in IE7 and firefox. I was able to login and content of both thepages is same. I tried to navigate to oher pages as well and it seems working in both. However I got a javascript errors both in IE as well as FF. IE: usr.value is null or not an object. FF: 1. Error: Expected end of value for property but found ','. Error in parsing value for property 'font-weight'. Declaration dropped. Source File: http://www.gangsterterritory.com/login.php Line: 123 2. Error: usr has no properties Source File: http://www.gangsterterritory.com/login.php Line: 86 3. Error: Expected end of value for property but found ':'. Error in parsing value for property 'font-family'. Declaration dropped. Source File: http://www.gangsterterritory.com/loggedin.php Line: 10 4. Quote Link to comment Share on other sites More sharing options...
tarun Posted February 26, 2007 Share Posted February 26, 2007 You Must Have Done Something Right Because It Seems To Be Working Now Quote Link to comment Share on other sites More sharing options...
DeathStar Posted March 16, 2007 Author Share Posted March 16, 2007 if rebuilding my whole header and menu counts XD 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.