Log in

View Full Version : Bug Hunt



tonyking
06-04-2008, 06:23 PM
Okay I am going nuts, if anyone can help me out here I would be so exponentially appreciative. I can't find the error/issue on this page that is causing it to display all garbled up. I have been staring at it all morning with no resolve. Does anyone see the problem here?

Here's the css behind the page:


/* onArcade 2.1 CSS */
body {
margin: 0px;
padding: 0px;
background: #045C97;
background-image: url(images/bg-new2.jpg);
background-repeat: repeat-x;
background-position: top left;
color: #333333;
font-size: 11px;
font-family: Arial;
text-align: left;
}
form {
margin: 0px;
padding: 0px;
}
input, textarea {
margin: 2px;
padding: 2px;
background: #F7F7F7;
border: 1px solid #333333;
font-size: 11px;
}
fieldset {
margin-top: 7px;
-moz-border-radius: 8px;
}
legend {
font-weight: bold;
}
a:link {
color: #003366;
text-decoration: underline;
}
a:visited {
color: #003366;
text-decoration: underline;
}
a:hover {
color: #FF6347;
text-decoration: none;
}
#header {
margin-left: auto;
margin-right: auto;
height: 105px;
width: 794px;
background: url(images/header.jpg) no-repeat bottom #333333;
text-align: left;
border-left: 0px solid #828282;
border-right: 0px solid #828282;
}
#header h1 {
margin-left: 10px;
margin-top: 6px;
margin-bottom: 0px;
float: left;
color: #FFFFFF;
font-family: Verdana;
font-size: 11px;
font-weight: normal;
text-align: left;
}
#main_menu {
margin-bottom: 0px;
margin-right: 2px;
margin-top: 12px;
float: left;
color: #555555;
font-family: Verdana;
}
#main_menu li {
list-style-type: none;
display: block;
float: left;
margin-right: 4px;
}
#main_menu a:link, #main_menu a:visited {
color: #555555;
text-decoration: none;
}
#main_menu a:hover {
text-decoration: underline;
color: #045C97;
}

#categories {
margin: 0px;
padding: 0px;
position: relative;
top: 77px;
left: 10px;
color: #FFFFFF;
font-size: 14px;
font-weight: bold;
}
#categories li {
list-style-type: none;
display: block;
float: left;
margin-right: 4px;
}
#categories a:link, #categories a:visited {
color: #FFFFFF;
text-decoration: none;
}
#categories a:hover {
color: #FF6347;
}

#main {
margin-left: auto;
margin-right: auto;
padding: 2px;
width: 786px;
background: #ffffff;
border-left: 2px solid #828282;
border-right: 2px solid #828282;

}

#nav {
width: 790px;
margin-left: -2px;
}

#topspace{
background: url(images/navshadow.jpg) repeat-x top #FFFFFF;
height: 6px;
width: 790px;
margin-left: -2px;
}

.ad_box {
margin-bottom: 4px;
padding-top: 6px;
border: 1px solid #333333;
color: #333333;
text-align: center;
background-color: #FFFFFF;
}
.ad_box_top {
margin-top: -2px;
margin-left: -2px;
padding-bottom: 6px;
width: 790px;
background-color: #045c97;
text-align: center;
}
.ad_box_2 {
padding: 3px;
margin-bottom: 4px;
border: 1px solid #045c97;
color: #045c97;
text-align: center;
}
.content_box {
margin-bottom: 4px;
padding: 2px;
border: 1px solid #333333;
}
.content_box_2 {
margin-bottom: 4px;
padding: 2px;
border: 1px solid #333333;
}
h2 {
margin: 0px;
margin-bottom: 2px;
padding: 2px;
padding-left: 4px;
background: #99CC66 url(images/topbar2.png);
color: #FFFFFF;
font-weight: bold;
font-size: 11px;
}
h3 {
margin: 0px;
margin-bottom: 2px;
padding: 2px;
padding-left: 4px;
background: #0099CC url(images/topbar.png);
color: #FFFFFF;
font-weight: bold;
font-size: 11px;
}
h2 a:link, h2 a:visited {
color: #FFFFFF;
text-decoration: underline;
}
h2 a:hover {
text-decoration: none;
}
.content_box_2 input {
border: 1px solid #0099CC;
}
.index_files_left {
margin-bottom: 2px;
float: left;
width: 75px;
}
.index_files_right {
margin-bottom: 2px;
float: right;
width: 228px;
}
.played {
font-family: Arial;
font-size: 9px;
}
.file_link:link {
color: #336699;
font-weight: bold;
text-decoration: none;
}
.file_link:visited {
color: #336699;
font-weight: bold;
text-decoration: none;
}
.file_link:hover {
color: #FF6347;
font-weight: bold;
text-decoration: underline;
}


.pagination {
margin: 2px;
text-align: center;
}
.pagination a:link, .pagination a:visited {
padding: 1px;
border: 1px solid #CCCCCC;
color: #000000;
text-decoration: none;
}
.pagination a:hover {
border: 1px solid #99CC66;
color: #000000;
}
.pagination b {
padding: 1px;
border: 1px solid #CCCCCC;
}
.table_header {
float: left;
text-align: center;
font-weight: bold;
}
.table {
float: left;
text-align: center;
}
.separator {
margin-bottom: 1px;
padding-top: 1px;
border-bottom: 1px dotted #99CC66;
clear: both;
}
.content_left {
margin-top: 2px;
margin-bottom: 2px;
float: left;
font-weight: bold;
}
.content_right {
margin-top: 2px;
margin-bottom: 2px;
float: right;
}
.error_box {
margin-bottom: 4px;
padding: 3px;
border: 1px solid #FF3300;
background: #FADFDC;
color: #FF3300;
text-align: left;
}
.comment_box {
margin-bottom: 5px;
padding-bottom: 3px;
border-bottom: 1px dotted #99CC66;
}
.news_line {
margin-top: 5px;
border-top: 1px dotted #3399CC;
}
#champion_box {
margin-bottom: 4px;
padding: 2px;
border: 1px solid #99CC66;
background: url(images/cup.gif);
background-repeat: no-repeat;
background-position: 25% 50%;
text-align: center;
}
#sponsor {
margin-bottom: 4px;
padding: 4px;
border: 1px dotted #FF3300;
background: #FFCC33;
text-align: center;
font-weight: bold;
}
#score_game {
margin-left: auto;
margin-right: auto;
margin-bottom: 5px;
padding: 3px;
border: 1px solid #CCFF99;
width: 300px;
}
.register_info {
float: left;
width: 200px;
font-weight: bold;
}
.browse_file_box {
padding: 1px;
background: #F0FDF1;
}
.quote {
border: 1px dotted #009933;
margin: 2px;
margin-bottom: 6px;
padding: 3px;
text-align: left;
}
#frame {
font-size: 12px;
color: #FFFFFF;
}
#frame a:link, #frame a:visited {
color: #FFFFFF;
text-decoration: underline;
font-weight: bold;
}
#frame a::hover {
color: #FFFFFF;
text-decoration: none;
font-weight: bold;
}
#popup_box {
border: 1px solid #000000;
background: #FFFFFF;
margin: 5px;
padding: 3px;
}
#redirection_box {
margin-top: 50px;
margin-left: auto;
margin-right: auto;
padding: 5px;
width: 400px;
border: 1px solid #336699;
background: #FFFFFF;
text-align: center;
}
#footer {
margin-left: auto;
margin-right: auto;
padding-top: 12px;
width: 794px;
height: 30px;
background: url(images/footer.png) no-repeat;
border-left: 0px solid #555555;
border-right: 0px solid #555555;
border-bottom: 0px solid #555555;
color: #FFFFFF;
text-align: center;
}
#footer a:link, #footer a:visited {
color: #FFFFFF;
text-decoration: underline;
font-weight: bold;
}
#footer a:hover {
text-decoration: none;
}

#glossymenu{
position: relative;
padding: 0 0 0 34px;
margin: 0 auto 0 auto;
background: url(images/menub_bg.gif) repeat-x; /*tab background image path*/
height: 46px;
list-style: none;
}

#glossymenu li{
float:left;
}

#glossymenu li a{
float: left;
display: block;
color:#000;
text-decoration: none;
font-family: sans-serif;
font-size: 13px;
font-weight: bold;
padding:0 0 0 16px; /*Padding to accomodate left tab image. Do not change*/
height: 46px;
line-height: 46px;
text-align: center;
cursor: pointer;
}

#glossymenu li a b{
float: left;
display: block;
padding: 0 24px 0 8px;
}

#glossymenu li.current a, #glossymenu li a:hover{
color: #fff;
background: url(images/menub_hover_left.gif) no-repeat;
background-position: left;
}

#glossymenu li.current a b, #glossymenu li a:hover b{
color: #fff;
background: url(images/menub_hover_right.gif) no-repeat right top;
}


/* onArcade 2.1 CSS */




Unfortunately I don't have a live link because it's a member page, but I will include a screen shot in IE7.

http://www.n2flash.com/images/IE.png

tonyking
06-04-2008, 06:24 PM
Here's the produced code from my php to the page itself, with the above error.



And here is the page itself:
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

<title>N2Flash - Private Messages</title>
<link rel="alternate" type="application/rss+xml" title="Newest Files (RSS 2.0)" href="http://n2flash.com/rss.php?r=newest&l=10" />
<link rel="stylesheet" type="text/css" href="http://n2flash.com/templates/onarcade/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Description" content="Your Ultimate Free Game Community" />
<meta name="Keywords" content="free, flash, games, play, online, community" />

<SCRIPT type="text/JavaScript">
<!-- Begin

var comment_not_blank = "Comment cannot be left blank.";
var message_not_blank = "Message cannot be left blank.";
var sure_want_delete_message = "Are you sure you want to delete this message?";
var all_fields_required = "All fields required!";
var recipient_not_blank = "Recipient cannot be left blank.";
var new_pm_click_ok_cancel = "You have received a new private message. Click OK to view it, or Cancel to hide this prompt.";
var siteurl = "http://n2flash.com";
var submit_button = "Submit";
var edit_button = "Edit";
var thank_you = "Thank you!";

// -->
</script>
<script type="text/javascript" src="http://n2flash.com/jscripts/global.js"></script>
<script type="text/javascript" src="http://n2flash.com/jscripts/ajax.js"></script>
<script type="text/javascript" src="http://n2flash.com/jscripts/swfobject.js"></script>

</head>
<body>

<div id="header">
<ul id="main_menu">
<li><a href="http://n2flash.com/">Home</a> | </li>
<li><a href="http://n2flash.com/memberlist.php">Member List</a> | </li>
<li><a href="http://n2flash.com/links.php">Links</a> | </li>
<li><a href="http://n2flash.com/submit.php">Submit Content</a> | </li>
<li><a href="http://n2flash.com/contact.php">Contact Us</a></li>
</ul>
<div style="clear: both;"></div>
</div>
<div id="main">
<div id="nav">
<ul id="glossymenu">
<li ><a href="http://n2flash.com/category/1/Action/1.html"><b>Action</b></a></li>
<li > <a href="http://n2flash.com/category/2/Other/1.html"><b>Other</b></a></li>
<li > <a href="http://n2flash.com/category/3/Puzzle/1.html"><b>Puzzle</b></a></li>
<li > <a href="http://n2flash.com/category/4/Racing/1.html"><b>Racing</b></a></li>
<li > <a href="http://n2flash.com/category/5/Shooting/1.html"><b>Shooting</b></a></li>
<li > <a href="http://n2flash.com/category/6/Sports/1.html"><b>Sports</b></a></li>
</ul></div>
<div class="ad_box_top">
<script type="text/javascript"><!--
google_ad_client = "pub-6877203327381552";
/* N2Flash Nav Menu */
google_ad_slot = "4836233213";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div id="topspace"></div>
<div style="float: left; width: 160px">
<div class="content_box_2">
<h3>Members</h3>
Welcome, admin!<br /><br />
Total Played: 21<br />
Total Comments: 0<br />
Date Joined: 13 May 2008<br /><br />
<a href="http://n2flash.com/admin/index.php">Admin CP</a><br />
<a href="http://n2flash.com/privatemessages.php">Private Messages</a> (0 unread)<br />
<a href="http://n2flash.com/usercp.php">User CP</a><br />
<a href="http://n2flash.com/login.php?a=logout">Logout</a>
</div>
<div class="content_box_2">
<h3>Statistics</h3>
Total Files: 100<br />
Played Today: 46<br />
Overall Played: 3,025<br />
Total Members: 5<br />
Users Online: 3
(1 member, 2 guests)<br />
Members: <a href="http://n2flash.com/profile/1/admin.html">admin</a>
</div>
<div class="content_box_2">
<h3>Most Popular</h3>
1. <a href = "http://n2flash.com/game/98/Worldcycle-Survival.html">Worldcycle Survival</a> (457 times)<br />
2. <a href = "http://n2flash.com/game/92/Grand-Slam-Shredder.html">Grand Slam Shredder</a> (451 times)<br />
3. <a href = "http://n2flash.com/game/100/Jimmy-The-Fin.html">Jimmy The Fin</a> (448 times)<br />
4. <a href = "http://n2flash.com/game/73/Diver-Duck.html">Diver Duck</a> (438 times)<br />
5. <a href = "http://n2flash.com/game/79/Barney-Blinddarm.html">Barney Blinddarm</a> (435 times)<br />
6. <a href = "http://n2flash.com/game/49/Fling-The-Candidate.html">Fling The Candidate</a> (433 times)<br />
7. <a href = "http://n2flash.com/game/93/Snowy.html">Snowy</a> (53 times)<br />
8. <a href = "http://n2flash.com/game/55/Hangman.html">Hangman</a> (24 times)<br />
9. <a href = "http://n2flash.com/game/74/Crazy-Balls.html">Crazy Balls</a> (22 times)<br />
10. <a href = "http://n2flash.com/game/62/Island-Hop.html">Island Hop</a> (21 times)<br />
</div>
<div class="content_box_2">
<h3>Newest</h3>
1. <a href = "http://n2flash.com/game/100/Jimmy-The-Fin.html">Jimmy The Fin</a> (448 times)<br />
2. <a href = "http://n2flash.com/game/99/The-Wire.html">The Wire</a> (6 times)<br />
3. <a href = "http://n2flash.com/game/98/Worldcycle-Survival.html">Worldcycle Survival</a> (457 times)<br />
4. <a href = "http://n2flash.com/game/97/Super-Splash.html">Super Splash</a> (6 times)<br />
5. <a href = "http://n2flash.com/game/96/Spin-Off.html">Spin Off</a> (6 times)<br />
6. <a href = "http://n2flash.com/game/95/Space-Rider.html">Space Rider</a> (8 times)<br />
7. <a href = "http://n2flash.com/game/94/SliderMania.html">SliderMania</a> (17 times)<br />
8. <a href = "http://n2flash.com/game/93/Snowy.html">Snowy</a> (53 times)<br />
9. <a href = "http://n2flash.com/game/92/Grand-Slam-Shredder.html">Grand Slam Shredder</a> (451 times)<br />
10. <a href = "http://n2flash.com/game/91/Sheep-Jumper.html">Sheep Jumper</a> (9 times)<br />
</div>
<div class="content_box_2">
<h3>Top Players</h3>
1. <a href = "http://n2flash.com/profile/4/tkingstl.html">tkingstl</a> (31 plays)<br />
2. <a href = "http://n2flash.com/profile/1/admin.html">admin</a> (21 plays)<br />
3. <a href = "http://n2flash.com/profile/5/Chris.html">Chris</a> (12 plays)<br />
4. <a href = "http://n2flash.com/profile/3/hmnbrd629.html">hmnbrd629</a> (11 plays)<br />
5. <a href = "http://n2flash.com/profile/2/Brenl.html">Brenl</a> (1 plays)<br />
</div>
<div class="content_box_2">
<h3>Search</h3>
<form name="search" action="http://n2flash.com/search.php" method="post">
<input type="text" name="t" maxlength="25" size="20" /><br />
<input type="submit" value="Search" />
</form>
</div>
<div class="content_box_2">
<h3>Links</h3>
<a href = "http://www.tony-king.com" onclick="return link_out(1);">tony-king.com</a><br />
<br /><a href="http://n2flash.com/links.php">More Links</a>
</div>
<div style="text-align: center;">
<a href="http://n2flash.com/rss.php"><img src="http://n2flash.com/images/rss_feed.gif" width="80" height="15" title="RSS Feed" alt="RSS Feed" border="0" /></a>
</div>
</div>
<div style="float: right; width: 622px;">
<div class="content_box">
<a href="http://n2flash.com/privatemessages.php" target="_self">Inbox</a> | <a href="http://n2flash.com/privatemessages.php?f=2" target="_self">Sent Items</a> | <a href="http://n2flash.com/privatemessages.php?a=compose" target="_self">Compose Message</a>
</div>
<div class="content_box">
<h2>Re: New Games</h2>
<div style="float: left; width: 124px;">
<a href="http://n2flash.com/profile/5/Chris.html"><b>Chris</b></a><br />
<img src="http://n2flash.com/images/noavatar.gif" alt="Chris" title="Chris" border="0" /><br />
Played: 12<br />
Comments: 0<br />
Joined: 3 June 2008<br />
</div>
<div style="float: right; width: 484px; border: 1px solid #CCCCCC; padding: 3px;">
Tony<br />
<br />
Ya there is one game called Skies of War it is on the site called www.freeonlinegames.com.&nbsp;&nbsp;What do I need to do to earn you some cash?<br />
<br />
Chris<br />
<br />
<br />
<br />
Hey Chris, if there's any other games you can think of, or that you've played on other sites and like.. Let me know and I will add them to the site.<br />
<br />
I plan on adding a few 1000 games after I get done tweaking the way it looks.</div><br />

</div>
<div style="clear: both;"></div>
<div style="float: left; width: 308px; margin-top: 3px;">
Date Sent: 4 June 2008
</div>
<div style="float: right; width: 308px; text-align: right; margin-top: 3px;">
<a href="http://n2flash.com/privatemessages.php?a=compose&r=5">Reply</a> | <a onclick="return confirm_delete();" href="http://n2flash.com/privatemessages.php?a=delete&p=5">Delete</a>
</div>
<div style="clear: both;"></div>
</div>
</div>
<div style="clear: both;"></div>
<div class="ad_box">
<p align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-6877203327381552";
/* N2flash Footer Ad */
google_ad_slot = "8402681641";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>
</div>
</div>
<div id="footer">
Copyright &copy; 2006 - 2008 <a href="http://n2flash.com/" class="footer_link">N2Flash</a>. All games and descriptions copyright &copy; to their respective owners. All rights reserved.<br />
<!-- onArcade 2.1 -->
</div>

</body>

</html>