flemingmike Posted April 29, 2009 Share Posted April 29, 2009 anyone able to help? old code (working) <!--main content --> <div style='float:left;'> <? //Featured Block //////////////////////////////////////////////////////////////////////////////// if($index == yes){ echo" <script language=\"JavaScript\" src=\"./js/magicimage.js\" type=\"text/javascript\"></script> <div class='flashintro'> <table cellspacing='0' cellpadding='0'><tr><td colspan='12'> <div id='MagicImage'></div></td></tr> </table> </div> <div class='topmaincontent'></div>"; } //End Featured///////////////////////////////////////////////////////////////////////////////////////////////////////////// ?> <div class="maincontentbg"><? //Output Content echo $out[news].$out[body]; ?></div> <div class="bottommaincontent"></div> </div> <!--end main content --> i want to replace the magicimage script new code: (not working) <!--main content --> <div style='float:left;'> <? //Featured Block //////////////////////////////////////////////////////////////////////////////// if($index == yes){ echo" <script type="text/javascript" src="/adpeeps.php?bfunction=showad&uid=100000&bmode=off&gpos=center&gwidth=616&bzone=homepage&bsize=616x176&btype=3&bpos=default&ver=2.0&btotal=1&btarget=_blank&brefresh=5&bborder=0&showhorizontally=1"> </script> <div class='flashintro'> <table cellspacing='0' cellpadding='0'><tr><td colspan='12'> <div id='MagicImage'></div></td></tr> </table> </div> <div class='topmaincontent'></div>"; } //End Featured///////////////////////////////////////////////////////////////////////////////////////////////////////////// ?> <div class="maincontentbg"><? //Output Content echo $out[news].$out[body]; ?></div> <div class="bottommaincontent"></div> </div> <!--end main content --> Link to comment https://forums.phpfreaks.com/topic/156051-cant-figure-out/ Share on other sites More sharing options...
Helmet Posted April 29, 2009 Share Posted April 29, 2009 Is the php file served up with a javascript content-type header? Link to comment https://forums.phpfreaks.com/topic/156051-cant-figure-out/#findComment-821501 Share on other sites More sharing options...
flemingmike Posted April 29, 2009 Author Share Posted April 29, 2009 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title><? echo"$config[sitename]" ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="robots" content="ALL" /> <meta http-equiv="language" content="eng" /> <meta http-equiv="dialect" content="us" /> <meta name="classification" content="Online Games" /> <meta name="revisit-after" content="10 days" /> <meta http-equiv="pragma" content="no-cache" /> <meta name="description" content="" /> <meta name="keywords" content="" /> <style type="text/css"> body{ font-size:11px; color:#FFFFFF; font-family:"Arial", Times, serif; background-color:#202020; margin:0; padding:0; background-image: url('./theme/default/images/bgtile.png'); background-repeat: repeat } A:link {color:#00BFFF} A:visited {color:#00BFFF} A:hover {color:#FFFFFF} #wrap { background-color:#0e0e0e; width:1000px; margin:0 auto; overflow:hidden; padding:0; position:relative; } #header { width:1000px; margin:0; height:188px; padding:0; } .htopspace { background:url(./theme/default/images/htopspace.gif) no-repeat; width:1000px; height:25px; margin:0; padding:0; } .himage1 { background:url(./theme/default/images/index_03.png) no-repeat; height:163px; width:1000px; float:left; } #menu { width:1000px; margin:0; padding:0; height:37px; } .mhome a, .mforum a, .mstaff a { color: #B1B1B1; font-weight: bold; text-decoration:none !important; } .mhome a:hover, .mforum a:hover, .mstaff a:hover { color: #f1f1f1; font-weight: bold; } .mhome { background:url(./theme/default/images/index_06.png) no-repeat; height:37px; width:79px; float:left; color: #B1B1B1; font-weight: bold; text-align:center; line-height:37px; } .mforum { background:url(./theme/default/images/index_gap.png) ; height:37px; float:left; color: #B1B1B1; font-weight: bold; text-align:center; line-height:37px; } .mstaff { background:url(./theme/default/images/index_13.png) no-repeat; height:37px; width:78px; float:left; color: #B1B1B1; font-weight: bold; text-align:center; line-height:37px; } .msspace { background:url(./theme/default/images/msspace.gif) no-repeat; width:16px; height:37px; float:left; } .msspace2 { background:url(./theme/default/images/msspace2.gif) no-repeat; width:4px; height:37px; float:left; } .msearch { background:url(./theme/default/images/msearchbg.gif) repeat-x; height:37px; float:left; } .sbox { border:1px solid #000000; background-color:#303030; height:14px; width:200px; color:#ffffff; font-size:11px; margin:8px 0 0 37px; } .logbox { border:1px solid #000000; background-color:#303030; height:14px; width:140px; color:#ffffff; font-size:11px; margin:8px 0 0 0px; } .logbut { border:1px solid #000000; background-color:#303030; color:#ffffff; font-size:11px; margin:4px 0 0 0px; } .sbutton{ margin:5px 0 0 0; } #main { width:1000px; margin:0; padding:0; } .index19 { background:url(./theme/default/images/index_19.png) no-repeat; width:1000px; height:7px; margin:0; padding:0; } /*left sidebar*/ .topleftnav { background:url(./theme/default/images/topleftsidebarnavtitle1.gif) no-repeat; height:30px; width:182px; text-align:center; line-height:30px; color: #C0C0C0; font-weight: bold; margin:0; padding:0; } .leftsidebarbg1 { background:url(./theme/default/images/leftsidebarbg1.gif) repeat-y; width:173px; margin:0; padding:0 0 0 9px; } .bottomleftsidebar { background:url(./theme/default/images/leftsidebarbottom1.gif) no-repeat; height:7px; width:182px; margin:0; padding:0; } /*left sidebar 2*/ .topleftnav2 { background:url(./theme/default/images/topleftsidebarnavigation2.gif) no-repeat; height:11px; width:182px; text-align:center; line-height:30px; margin:0; padding:0; } .topleftnavtitle { background:url(./theme/default/images/topleftsidebarnavtitle2.gif) no-repeat; height:30px; width:182px; text-align:center; line-height:30px; margin:0; padding:0; } .leftsidebarbg2 { background:url(./theme/default/images/leftsidebarbg2.gif) repeat-y; width:172px; margin:0; padding:0 0 0 10px; } .bottomleftsidebar2 { background:url(./theme/default/images/leftsidebarbottom2.gif) no-repeat; height:7px; width:182px; margin:0; padding:0; } .leftsidebarsubcat a { color: #1c1c1c; text-decoration:none; } .leftsidebarsubcat a:hover { color: #000000; text-decoration:none; } .leftsidebarcat { background:url(./theme/default/images/index_31.png) no-repeat; width:163; height:26px; text-align:center; line-height:26px; color: 1c1c1c; font-weight: bold; } .leftsidebarsubcat { background:url(./theme/default/images/index_33.png) no-repeat; width:163; height:25px; text-align:center; line-height:25px; color: #FFFFFF; font-weight: bold; } /*main content*/ .flashintro { background:url(./theme/default/images/flashintrobg.jpg) no-repeat; height:186px; width:627px; padding:0 0 0 9px; margin:0; } .topmaincontent { background:url(./theme/default/images/topmaincontent.gif) no-repeat; width:636px; height:9px; } .maincontentbg { background:url(./theme/default/images/maincontentbg.gif) repeat-y; width:626px; padding:0 0 0 10px; } .bottommaincontent { background:url(./theme/default/images/bottommaincontent.gif) no-repeat; width:636px; height:7px; } /* right sidebar */ .toprightsidebar { background:url(./theme/default/images/toprightsidebar.gif) no-repeat; height:121px; width:170px; text-align:center; padding:0 0 0 12px; margin:0; } .toprighsidebartitle { background:url(./theme/default/images/toprightsidebar1.gif) no-repeat; height:22px; width:182px; text-align:center; color: #C0C0C0; font-weight: bold; padding:15px 0 0 0; } .toprighsidebarbg { background:url(./theme/default/images/toprightsidebarbg.gif) repeat-y; width:182px; text-align:center; } .bottomrighsidebar { background:url(./theme/default/images/bottomrightsidebarbg.gif) no-repeat; height:9px; width:182px; } .toprighsidebartitle1 { background:url(./theme/default/images/toprightsidebar1.gif) no-repeat; height:22px; width:182px; color: #C0C0C0; text-align:center; font-weight: bold; padding:15px 0 0 0; } .toprighsidebarbg1 { background:url(./theme/default/images/toprightsidebarbg.gif) repeat-y; width:182px; text-align:center; } .bottomrighsidebar1 { background:url(./theme/default/images/bottomrightsidebarbg.gif) no-repeat; height:9px; width:182px; } /*footer*/ #footer { background:url(./theme/default/images/index_86.png) no-repeat; width:1000px; height:52px; clear:both; } .input { border:1px solid #000000; background-color:#303030; height:14px; color:#ffffff; font-size:11px; } .button { border:1px solid #000000; background-color:#303030; color:#ffffff; font-size:11px; margin:2px 0 0 0px; } </style> </head> <div id="wrap"> <!-- header start --> <div id="header"> <div class="htopspace"></div> <div class="himage1"></div> </div> <!-- header end --> <!-- menu start --> <div id="menu"> <? if(isset($_COOKIE["user"])){ echo" <div class='mhome'><a href='./index.php?action=myhome'>Profile</a></div>"; }else{ echo" <div class='mhome'><a href='./index.php'>Home</a></div>"; } ?> <div class="mforum"><a href="./invite.php"> Invite Your Friends </a></div> <div class="mforum"><a href="./paypal.php"> Cashier </a></div> <div class="mforum"><a href="./ps3.php"> PS3 Games </a></div> <div class="mforum"><a href="./xbox360.php"> XBox 360 Games </a></div> <div class="mforum"><a href="./psp.php"> PSP Games </a></div> <div class="mforum"><a href="./tournaments.php"> Tournaments </a></div> <div class="mforum"><a href="./ticket.php"> Disputes </a></div> <div class="mforum"> </div> <div class="msspace"> </div> <div class="msearch"> <form method="post" action="./search.php"> <input type="text" name="search[string]" class="sbox" maxlength="30" style="vertical-align:middle;" value="Find a Player" onClick="this.value=''"> <input type="hidden" name="search[type]" value="ladd"> <input type="image" src="./theme/default/images/index_16.png" name="button" class="sbutton" style="vertical-align:middle;"> </form> </div> <div class="msspace2"></div> </div> <!-- menu end --> <!-- main start --> <div id="main"> <div class="index19"></div> <!-- left sidebar --> <div style="float:left; width:182px;"> <div class="topleftnav">Navigation</div> <div class="leftsidebarbg1"> <div class="leftsidebarcat">Main</div> <div class="leftsidebarsubcat"><a href="./index.php">News</a></div> <div class="leftsidebarsubcat"><a href="./report.php">Report a Win</a></div> <div class="leftsidebarsubcat"><a href="./find.php">Create Challenge</a></div> <div class="leftsidebarsubcat"><a href="./view.php">Current Challenges</a></div> <div class="leftsidebarsubcat"><a href="./allchallenges.php">My Challenges</a></div> <div class="leftsidebarsubcat"><a href="./compmatches.php">My Game History</a></div> <div class="leftsidebarsubcat"><a href="./oldtourney.php">Completed Tournaments</a></div> <? if(isset($_COOKIE["user"])){ echo"<div class='leftsidebarcat'>My Account</div> <div class='leftsidebarsubcat'><a href='./index.php?action=myhome'>My Portal</a></div> <div class='leftsidebarsubcat'><a href='./manager.php'>Account Manager</a></div> <div class='leftsidebarsubcat'><a href='./mailbox.php'>Mailbox</a></div> <div class='leftsidebarsubcat'><a href='./join.php'>Select a Game</a></div>"; }else{ echo" <div class='leftsidebarcat'>My Account</div> <div class='leftsidebarsubcat'><a href='./register.php'><b>Register</b></a></div> <div class='leftsidebarsubcat'><a href='./login.php'>Login</a></div>"; } ?> <div class="leftsidebarcat">Support Center</div> <div class="leftsidebarsubcat"><a href="./ticket.php">Ticket Manager</a></div> <div class="leftsidebarsubcat"><a href="./apply.php">Staff Application</a></div> <div class="leftsidebarsubcat"><a href="./staff.php">Staff Page</a></div> </div> <div class="bottomleftsidebar"></div> <div class="toprighsidebartitle">Newest Members</div> <div class="toprighsidebarbg"><table width="90%" align="center" bgcolor="#000000" cellspacing="1"> <? //Newest Members Block $newest=mysql_query("SELECT id,name FROM members ORDER BY id DESC LIMIT 0,6"); while(list($id,$name)=mysql_fetch_row($newest)){ if($config[cellbgx]==$config[cellbg]){$config[cellbgx]="$config[cellbg2]";}else{$config[cellbgx]="$config[cellbg]";} echo"<tr bgcolor='$config[altcolora]'><td background='$config[cellbgx]'><a href='./profile.php?account=$id'><span style='color:#FFFFFF;'>$name</span></a></td></tr>"; } //End Newest Members ?></table> </div> <div class="bottomrighsidebar"></div> </div> <!-- end left sidebar --> <!--main content --> <div style='float:left;'> <? //Featured Block //////////////////////////////////////////////////////////////////////////////// if($index == yes){ echo" <div class='flashintro'> <script language=\"JavaScript\" src=\"http://advertise.vgbetting.com/adpeeps.php?bfunction=showad&uid=100000&bmode=off&gpos=center&gwidth=616&bzone=homepage&bsize=616x176&btype=3&bpos=default&ver=2.0&btotal=1&btarget=_blank&brefresh=5&bborder=0&showhorizontally=1\" type=\"text/javascript\"> </script> </div> <div class='topmaincontent'></div>"; } //End Featured///////////////////////////////////////////////////////////////////////////////////////////////////////////// ?> <div class="maincontentbg"><? //Output Content echo $out[news].$out[body]; ?></div> <div class="bottommaincontent"></div> </div> <!--end main content --> <!-- right sidebar --> <div style="float:left;"> <div class="toprightsidebar"> <? //Login Block //////////////////////////////////////////////////////////////////////////////////// if (isset($_COOKIE["user"])){ $member=mysql_query("SELECT * FROM members WHERE id='{$_COOKIE['tid']}' AND password='{$_COOKIE['pass']}'"); $member=mysql_fetch_array($member); $newpm=mysql_query("SELECT COUNT(*) FROM messages WHERE toid='{$_COOKIE['tid']}' AND active='1' AND grid='1'"); $newpm=mysql_fetch_array($newpm); $newpm="$newpm[0]"; $newin=mysql_query("SELECT COUNT(*) FROM messages WHERE toid='{$_COOKIE['tid']}' AND grid='2'"); $newin=mysql_fetch_array($newin); $newin="$newin[0]"; $newfriends=mysql_query("SELECT COUNT(*) FROM friend_requests WHERE userid='{$_COOKIE['tid']}'"); $newfriends=mysql_fetch_array($newfriends); $newfriends="$newfriends[0]"; if($newfriends == 0){$currentf="$newfriends Friend Invites";}else if($newfriends == 1){$currentf="<font color='red'><b>$newfriends Friend Invites</b></font>";}else{ $currentf="<font color='red'><b>$newfriends Friend Invites</b></font>";} if($newpm == 0){$currentm="$newpm Unread Messages";}else if($newpm == 1){$currentm="<font color='red'><b>$newpm Unread Message</b></font>";}else{ $currentm="<font color='red'><b>$newpm Unread Messages</b></font>";} if($newin == 0){$currentin="$newin Current Team Invites";}else if($newin == 1){$currentin="<font color='green'><b>$newin Current Team Invite</b></font>";}else{ $currentin="<font color='green'><b>$newin Current Team Invites</b></font>";} echo"<br /><div align='center'><b>Welcome Back $member[name]! </b><br /><br />"; echo"<a href='./mailbox.php'>$currentm</a> <br />"; echo"<a href='./mailbox.php?action=invites'>$currentin</a> <br />"; echo"<a href='./mailbox.php?action=friends'>$currentf</a> <br /><br /> [<a href='./manager.php'><span style='color:#FFFFFF;'>Manager</span></a>] [<a href='./profile.php?account=$member[id]'><span style='color:#FFFFFF;'>My Profile</span></a>] [<a href='./login.php?act=logout'><span style='color:#FFFFFF;'>Logout</span></a>] </div>"; }else{echo"<div align='center'></form><form method='post' action='./login.php'> <input type='text' class='logbox' name='login[name]' value='Username' maxlength='20' onClick=\"this.value=''\"> <br /> <input type='password' class='logbox' name='login[pass]' maxlength='20' onClick=\"this.value=''\"> <br /> Remember: <select name='login[clength]' class='logbut'> <option value='60'>1 Hour</option> <option value='1440'>1 Day</option> <option value='10080'>1 Week</option> <option value='43200'>1 Month</option> <option value='83200' selected='selected'>Forever</option></select><br /> <input type='hidden' name='act' value='setlogin'> <a href='./register.php'>Register Now!</a> <input type='submit' class='logbut' name='submit' value='Login >>'> </form></div>";} //End Login Block//////////////////////////////////////////////////////////////////////////////////////////////////////// ?> </div> <script type='text/javascript'> <!-- function ChallengeBar( id, login ) { window.open('./scheduler.php?chall_id='+id + 'login[id2]='+login, '_details', 'width=600,height=500,toolbar=0,statusbar=0,scrollbars=0,menubar=0'); } function tChallengeBar( id, login ) { window.open('./tourneyscheduler.php?chall_id='+id + 'login[id2]='+login, '_details', 'width=600,height=500,toolbar=0,statusbar=0,scrollbars=0,menubar=0'); } //--> </script> <div class="toprighsidebartitle">Newest Challenges</div> <div class="toprighsidebarbg"><table width="90%" align="center" bgcolor="#000000" cellspacing="1"> <? //Newest Teams Block ////////////////////////////////////////////////////////////////////////// //$newest=mysql_query("SELECT id,name FROM teams ORDER BY id DESC LIMIT 0,6"); $challenges=mysql_query("SELECT membersteams.teamid,ladders.name,challid,challgrid,challgdid,challgrname,challgdname,DATE_FORMAT(challenges.created,'%M %d at %l:%i %p') FROM membersteams,challenges left join ladders on (challenges.ladderid=ladders.id) WHERE membersteams.memberid='" . $_COOKIE['tid']."' and (challgrid=membersteams.teamid OR challgdid=membersteams.teamid) ORDER BY challenges.created DESC LIMIT 0,5"); while(list($teamid,$gamename,$challid,$challgrid,$challgdid,$challgrname,$challgdname,$created)=mysql_fetch_row($challenges)){ $team[id] = $teamid; $check=mysql_query("SELECT * FROM chall_chat WHERE chall_id='$challid'"); $check=mysql_fetch_array($check); if ($check[ed_status]==Accepted OR $check[er_status]==Accepted){ $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>"; }elseif ($check[ed_status]==Declined OR $check[er_status]==Declined){ $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>"; }elseif ($check[ed_status]==Pending OR $check[er_status]==Pending){ $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>"; }else{ $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>"; } if($config[cellbgx]==$config[cellbg]){$config[cellbgx]="$config[cellbg2]";}else{$config[cellbgx]="$config[cellbg]";} echo"<tr bgcolor='$config[altcolora]'><td background='$config[cellbgx]'>$calendarimg</td></tr>"; } $challenges=mysql_query("SELECT membersteams.teamid,tourneys.name,challid,challgrid,challgdid,challgrname,challgdname,DATE_FORMAT(tchallenges.created,'%M %d at %l:%i %p') FROM membersteams,tchallenges left join tourneys on (tchallenges.tourneyid=tourneys.id) WHERE membersteams.memberid='" . $_COOKIE['tid']."' and (challgrid=membersteams.teamid OR challgdid=membersteams.teamid) ORDER BY tchallenges.created DESC LIMIT 0,5"); while(list($teamid,$gamename,$challid,$challgrid,$challgdid,$challgrname,$challgdname,$created)=mysql_fetch_row($challenges)){ $team[id] = $teamid; $check=mysql_query("SELECT * FROM chall_chat WHERE chall_id='$challid'"); $check=mysql_fetch_array($check); if ($check[ed_status]==Accepted OR $check[er_status]==Accepted){ $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>"; }elseif ($check[ed_status]==Declined OR $check[er_status]==Declined){ $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>"; }elseif ($check[ed_status]==Pending OR $check[er_status]==Pending){ $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>"; }else{ $calendarimg = "<span style='color:#FFFFFF;'>$gamename</span></a>"; } if($config[cellbgx]==$config[cellbg]){$config[cellbgx]="$config[cellbg2]";}else{$config[cellbgx]="$config[cellbg]";} echo"<tr bgcolor='$config[altcolora]'><td background='$config[cellbgx]'>$calendarimg</td></tr>"; } //End Newest Teams//////////////////////////////////////////////////////////////////////////////////////////////////////// ?> <tr><td><a href="allchallenges.php"><span style='color:##00BFFF;'>View Your Challenges</span></a></td></tr> </table> </div> <div class="bottomrighsidebar"></div> <div class="toprighsidebartitle">Advertisements</div> <div class="toprighsidebarbg"><table width="90%" align="center" bgcolor="#000000" cellspacing="1"> <script type="text/javascript" src="http://advertise.vgbetting.com/adpeeps.php?bfunction=showad&uid=100000&bmode=off&gpos=center&colwidth=163&bzone=sidebar&bsize=161x125&btype=3&bpos=default&ver=2.0&btotal=1&btarget=_blank&brefresh=15&bborder=0"> </script> <noscript> <a href="http://advertise.vgbetting.com/adpeeps.php?bfunction=clickad&uid=100000&bmode=off&bzone=sidebar&bsize=161x125&btype=1&bpos=default&ver=2.0" target="_blank"> <img src="http://advertise.vgbetting.com/adpeeps.php?bfunction=showad&uid=100000&bmode=off&bzone=sidebar&bsize=161x125&btype=1&bpos=default&ver=2.0" width="161" height="125" alt="Click Here!" title="Click Here!" border="0" /></a> </noscript> </table> </div> <div class="bottomrighsidebar"></div> <div class="toprighsidebartitle1">Recent Matches</div> <div class="toprighsidebarbg1"> <table width="90%" bgcolor="#000000" align="center" cellspacing="1"> <tr bgcolor='<?=$config[altcolora]?>'><td width='50%'>Winner</td><td width='50%'>Loser</td></tr> <? //Recent Matches Block $rematch=mysql_query("SELECT wid,lid,wname,lname FROM matchdb ORDER BY reported DESC LIMIT 0,6"); while(list($wid,$lid,$wname,$lname)=mysql_fetch_row($rematch)){ $max_length = 10; if (strlen($wname) > $max_length){ $wname = substr($wname,0,$max_length); $wname .= "..."; } if (strlen($lname) > $max_length){ $lname = substr($lname,0,$max_length); $lname .= "..."; } if($config[cellbgx]==$config[cellbg]){$config[cellbgx]="$config[cellbg2]";}else{$config[cellbgx]="$config[cellbg]";} echo"<tr bgcolor='$config[altcolora]'><td width='50%' background='$config[cellbgx]'><a href='./stats.php?account=$wid'><span style='color:#FFFFFF;'>$wname</span></a></td> <td width='50%' background='$config[cellbgx]'><a href='./stats.php?account=$lid'><span style='color:#FFFFFF;'>$lname</span></a></td></tr>"; } //End Recent Matches ?></table> </div> <div class="bottomrighsidebar1"></div> <div class="toprighsidebartitle1">Members Online</div> <div class="toprighsidebarbg1"> <? //Users Online Block /////////////////////////////////////////////////////////////////////////// $timeoutseconds = 300; $timestamp = time(); $timeout = $timestamp-$timeoutseconds; $uonline = mysql_num_rows(mysql_query("SELECT id FROM members WHERE lastactive>$timeout")); if($uonline == 1){echo"There is $uonline user online.</div><div class='leftsidebarbg2'>"; }else{echo"There are $uonline users online.</div><div class='leftsidebarbg2'>";} $whosonline=mysql_query("SELECT id,name FROM members WHERE lastactive>$timeout ORDER BY name"); while(list($id,$name)=mysql_fetch_row($whosonline)){ $max_length = 13; if (strlen($name) > $max_length){ $name = substr($name,0,$max_length); $name .= "..."; } if($uonline == 1){$outuseron.="<a href='./profile.php?account=$id'><font color='gray'>$name</font></a>"; }else{$outuseron.="<a href='./profile.php?account=$id'><font color='gray'>$name</font></a>, ";} } if ($uonline > 1){ $outuseron = substr($outuseron,0,-2); $outuseron.= "."; } echo"$outuseron"; //End Users Online///////////////////////////////////////////////////////////////////////////////////////////////////////// ?><br /><br /> </div> <div class="bottomleftsidebar2"></div> </div> <!-- end right sidebar --> </div> <!-- main end --> <div id="footer" align="left"><br /> <? //Begin Theme Selector echo"<table width='100%'><tr><td width='25%'><form><select class='button' onchange='if(options[selectedIndex].value){location = options[selectedIndex].value}'> <optgroup label='Style Chooser'>\n"; $style=mysql_query("SELECT id,name,dir FROM styles WHERE active='1'"); while(list($id,$name,$dir)=mysql_fetch_row($style)){ if($_COOKIE['style']==$id){$id2="SELECTED";}else{$id2="";} echo"<option value='$config[scripturl]/index.php?action=setstyle&style=$id' $id2>$name</option>\n"; } echo"</select>"; //End Theme Selector ?> </td><td align='center'> <? //You Must Leave This Copyright. Removal Will Lead To License Suspension echo"Copyright © <a href='http://www.vgbetting.com'> <span style='color:#FFFFFF;'>VGBetting.com</span></a>"; //End Copyright ?> </td><td align='right'> <? //Facebook echo"<a target='_blank ' href='http://www.facebook.com/pages/VGBETTINGcom-Think-you-got-game/57307786049?ref=mf'><img src='http://www.vgbetting.com/betting/theme/default/images/facebook.gif' border='0'></a>"; //End Facebook ?> </td></tr></table> </div> </div> <!-- wrap end --> <!-- Do Not Edit Below This Line --> <script type="text/javascript" src="./js/olib/overlib.js"> </script> <script type="text/javascript" src="./js/includes.js"></script> <style type="text/css"> #fixedtipdiv{ position:absolute; padding: 2px; border:1px solid black; font:normal 12px Verdana; line-height:18px; z-index:100; } </style> </body> </html> Link to comment https://forums.phpfreaks.com/topic/156051-cant-figure-out/#findComment-821503 Share on other sites More sharing options...
Helmet Posted April 29, 2009 Share Posted April 29, 2009 I meant this: http://advertise.vgbetting.com/adpeeps.php?bfunction=showad&uid=100000&bmode=off&gpos=center&gwidth=616&bzone=homepage&bsize=616x176&btype=3&bpos=default&ver=2.0&btotal=1&btarget=_blank&brefresh=5&bborder=0&showhorizontally=1 Try loading that file: blank page. View source: blank. It's not working because there's no javascript in it, and you're trying to load it as a javascript file. Link to comment https://forums.phpfreaks.com/topic/156051-cant-figure-out/#findComment-821509 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.