nucleardoctor Posted October 10, 2008 Share Posted October 10, 2008 I am trying to get my code to check if a user is online, and if they are online to display a java tooltip that pops up when you click on the aim icon. I tryed messing around with the code but I can't seem to get it to work. $team=mysql_query("SELECT * FROM teams WHERE id='$tid'") or die(mysql_error()); $team=mysql_fetch_array($team); if ($team[blast]){ $blast = addslashes($team[blast]); $message = "<img src='./ladder_images/ladder_icons/blast.gif' border='0' onmouseover=\"return overlib('$blast');\" onmouseout=\"return nd();\">"; }else{ $message = ""; } if ($team[aim]) { $aim = new checkAIM($team[aim]); if ($aim->isOnline()){ $leadimg = "<img src=\'./ladder_images/ladder_icons/aim_online.gif' border=\'0\' align=\'absmiddle\' />"; $leadon = true; }else{ $leadon = false; $leadimg = "<img src=\'./ladder_images/ladder_icons/aim_online.gif' border=\'0\' align=\'absmiddle\' />"; } } if ($team[aim3]) { $coaim = new checkAIM($team[aim3]); if ($coaim->isOnline()){ $coleadimg = "<img src=\'./ladder_images/ladder_icons/aim_online.gif' border=\'0\' align=\'absmiddle\' />"; $coleadon = true; }else{ $coleadon = false; $coleadimg = "<img src=\'./ladder_images/ladder_icons/aim_offline.gif' border=\'0\' align=\'absmiddle\' />"; } } if ($leadon OR $coleadon){ $image = "<img src='./ladder_images/ladder_icons/aim_online.gif' border='0' align='absmiddle' />"; }else{ $image = "<img src='./ladder_images/ladder_icons/aim_offline.gif' border='0' align='absmiddle' />"; } if (!$team[aim] AND !$team[aim3]){ $image = "N/A"; }elseif ($team[aim]){ $leader = "<a href=\'aim:goim?screenname=$team[aim]&message=Hello, would you like a war?\'>$leadimg</a> ($team[aim2])"; }else{ $leader = "None Specified"; } if ($team[aim3]){ $coleader = "<br /><strong>Co-Leader:</strong> <a href=\'aim:goim?screenname=$team[aim3]&message=Hello, would you like a war?\'>$coleadimg</a> ($team[aim3])"; }else{ $coleader = "<br /><strong>Co-Leader:</strong> None Specified"; } //$aim_sn = "<a href='javascript:void(0);' onClick=\"fixedtooltip('<table><tr><td bgcolor=\'#000000\'><div align=\'right\' style=\'float:right\'><a href=\'javascript: void\' onclick=\'delayhidetip()\' style=\'font-weight:bold;color:red;\'>[X]</a></div></td></tr></table><br /> <strong>Leader:</strong> $leader $coleader<br /><br />', this, event, '250px')\">$image</a>"; $aim_sn = "<a href='javascript:void(0);' onClick=\"return overlib('<strong>Leader:</strong> $leader $coleader<br><br>', CAPTION, 'AOL Instant Messenger Contact Details', STICKY)\"\">$image</a>"; if($config[altcolorx]==$config[altcolora]){ $config[altcolorx]="$config[altcolorb]"; }else{ $config[altcolorx]="$config[altcolora]"; } $matches=mysql_query("select (TO_DAYS(now()) - TO_DAYS(max(reported))) as 'numdays' from matchdb WHERE wid='$teamid' or lid='$teamid' group by ladderid"); $matches=mysql_fetch_array($matches); $rcount++; include("./strikes_main.php"); $out[body].=" <tr bgcolor='$config[altcolorb]'> <td width='9%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$rcount</b></td> <td width='5%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$king</b></td> <td width='23%' valign='center' align='left' bgcolor='$config[altcolorb]'><font size='-2'><div align='right' style='float:right'>$message</div><div align='right' style='float:right;'>$war</div><a href='$config[scripturl]/stats.php?account=$tid' title='$name has played $games games with an average of $percent% with $wins Wins and $loss Losses'> <b>$name</a></b></a></td> <td width='11%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$wins</b></td> <td width='11%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$loss</b></td> <td width='11%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$streak</b></td> <td width='6%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$points</b></td> <td width='7%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$level</b></td> <td width='11%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$strike1 | $strike2 | $strike3</b></td> <td width='6%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$aim_sn</b></td>"; } Link to comment https://forums.phpfreaks.com/topic/127815-check-aim-php/ Share on other sites More sharing options...
Bendude14 Posted October 10, 2008 Share Posted October 10, 2008 cant seem to get it to work don't help much... can you give us some errors your having or something the script is doing wrong? Link to comment https://forums.phpfreaks.com/topic/127815-check-aim-php/#findComment-661704 Share on other sites More sharing options...
nucleardoctor Posted October 10, 2008 Author Share Posted October 10, 2008 No errors show up. You're suppose to be able to put you click the $image which is the AIM icon, but when you click on it, nothing happens. And its suppose to check to see if the AIM Screen Name is online or offline, but when I go to the file, it always shows the screen name as offline. Link to comment https://forums.phpfreaks.com/topic/127815-check-aim-php/#findComment-661709 Share on other sites More sharing options...
Bendude14 Posted October 10, 2008 Share Posted October 10, 2008 do you have error_reporting(E_ALL); at the top of your page? where is the code for this function $aim->isOnline() Link to comment https://forums.phpfreaks.com/topic/127815-check-aim-php/#findComment-661714 Share on other sites More sharing options...
nucleardoctor Posted October 10, 2008 Author Share Posted October 10, 2008 This is my full code: <? include("./config.php"); if($ladder[id]){ $thisladder=mysql_query("SELECT * FROM ladders WHERE id='$ladder[id]'"); $thisladder=mysql_fetch_array($thisladder); } if($thisladder[id]){ show_standings($ladder,$thisladder); }else{ list_ladders(); } function list_ladders(){ global $config; $out[body].=" <center> <br> <table width='451' border='0' cellspacing='1' cellpadding='1' bgcolor='000000'> <tr background='$config[titlebar]'> <td width='100%' colspan='3' align='left' valign='center' background='$config[titlebar]'><font color='ffffff' size='-2'><center><b>PlayStation Portable</b></font></center></td></tr> <tr bgcolor='#000000'>"; $ladders=mysql_query("SELECT id,name,console,active FROM ladders WHERE console='1' and active < 2 ORDER BY name"); while(list($id,$name,$console,$active)=mysql_fetch_row($ladders)){ if($console == 1){ $c_img="<img src='./ladder_images/console_icons/psp.gif'>"; }else{ $c_img=""; } $out[body].=" <center> <tr bgcolor='$config[altcolorb]' border='1'> <td bgcolor='$config[altcolorb]' align='center' width='5%'> $c_img</td> <td bgcolor='$config[altcolorb]' align='left'>"; if($active==0) { $out[body].="<font size='-2'>$name</font></td>"; } else { $out[body].="<a href='$config[scripturl]/standings.php?ladder[id]=$id'><font size='-2'>$name</font></a></td>"; } $out[body].=" <td bgcolor='$config[altcolorb]' align='center' width='5%'>"; if($active==1) { $out[body].='<img src=./ladder_images/ladder_icons/green.gif width=13 height=13>'; } else { $out[body].='<img src=./ladder_images/ladder_icons/red.gif width=13 height=13>'; } $out[body].="</td></tr>\n"; } $out[body].="</table><br> <table width='451' border='0' cellspacing='1' cellpadding='1' bgcolor='000000'> <tr background='$config[titlebar]'> <td width='100%' colspan='3' align='left' valign='center' background='$config[titlebar]'><font color='ffffff' size='-2'><center><b>PlayStation 2</b></font></center></td></tr> <tr bgcolor='#000000'>"; $ladders=mysql_query("SELECT id,name,console,active FROM ladders WHERE console='2' and active < 2 ORDER BY name"); while(list($id,$name,$console,$active)=mysql_fetch_row($ladders)){ if($console == 2){ $c_img="<img src='./ladder_images/console_icons/ps2.gif'>"; }else{ $c_img=""; } $out[body].=" <tr bgcolor='$config[altcolorb]' border='1'> <td bgcolor='$config[altcolorb]' align='center' width='5%'> $c_img</td> <td bgcolorb='$config[altcolorb]' align='left'>"; if($active==0) { $out[body].="<font size='-2'>$name</font></td>"; } else { $out[body].="<a href='$config[scripturl]/standings.php?ladder[id]=$id'><font size='-2'>$name</font></a></td>"; } $out[body].=" <td bgcolor='$config[altcolorb]' align='center' width='5%'>"; if($active==1) { $out[body].='<img src=./ladder_images/ladder_icons/green.gif width=13 height=13>'; } else { $out[body].='<img src=./ladder_images/ladder_icons/red.gif width=13 height=13>'; } $out[body].="</td></tr>\n"; } $out[body].="</table><br> <table width='451' border='0' cellspacing='1' cellpadding='1' bgcolor='000000'> <tr background='$config[titlebar]'> <td width='100%' colspan='3' align='left' valign='center' background='$config[titlebar]'><font color='ffffff' size='-2'><center><b>PlayStation 3</b></font></center></td></tr> <tr bgcolor='#000000'>"; $ladders=mysql_query("SELECT id,name,console,active FROM ladders WHERE console='3' and active < 2 ORDER BY name"); while(list($id,$name,$console,$active)=mysql_fetch_row($ladders)){ if($console == 3){ $c_img="<img src='./ladder_images/console_icons/ps3.gif'>"; }else{ $c_img=""; } $out[body].=" <tr bgcolor='$config[altcolorb]' border='1'> <td bgcolor='$config[altcolorb]' align='center' width='5%'> $c_img</td> <td bgcolor='$config[altcolorb]' align='left'>"; if($active==0) { $out[body].="<font size='-2'>$name</font></td>"; } else { $out[body].="<a href='$config[scripturl]/standings.php?ladder[id]=$id'><font size='-2'>$name</font></a></td>"; } $out[body].=" <td bgcolor='$config[altcolorb]' align='center' width='5%'>"; if($active==1) { $out[body].='<img src=./ladder_images/ladder_icons/green.gif width=13 height=13>'; } else { $out[body].='<img src=./ladder_images/ladder_icons/red.gif width=13 height=13>'; } $out[body].="</td></tr>\n"; } $out[body].="</table><br> <table width='451' border='0' cellspacing='1' cellpadding='1' bgcolor='000000'> <tr background='$config[titlebar]'> <td width='100%' colspan='3' align='left' valign='center' background='$config[titlebar]'><font color='ffffff' size='-2'><center><b>XBOX</b></font></center></td></tr> <tr bgcolor='#000000'>"; $ladders=mysql_query("SELECT id,name,console,active FROM ladders WHERE console='4' and active < 2 ORDER BY name"); while(list($id,$name,$console,$active)=mysql_fetch_row($ladders)){ if($console == 4){ $c_img="<img src='./ladder_images/console_icons/xbox.gif'>"; }else{ $c_img=""; } $out[body].=" <tr bgcolor='$config[altcolorb]' border='1'> <td bgcolor='$config[altcolorb]' align='center' width='5%'> $c_img</td> <td bgcolor='$config[altcolorb]' align='left'>"; if($active==0) { $out[body].="<font size='-2'>$name</font></td>"; } else { $out[body].="<a href='$config[scripturl]/standings.php?ladder[id]=$id'><font size='-2'>$name</font></a></td>"; } $out[body].=" <td bgcolor='$config[altcolorb]' align='center' width='5%'>"; if($active==1) { $out[body].='<img src=./ladder_images/ladder_icons/green.gif width=13 height=13>'; } else { $out[body].='<img src=./ladder_images/ladder_icons/red.gif width=13 height=13>'; } $out[body].="</td></tr>\n"; } $out[body].="</table><br> <table width='451' border='0' cellspacing='1' cellpadding='1' bgcolor='000000'> <tr background='$config[titlebar]'> <td width='100%' colspan='3' align='left' valign='center' background='$config[titlebar]'><font color='ffffff' size='-2'><center><b>XBOX 360</b></font></center></td></tr> <tr bgcolor='#000000'>"; $ladders=mysql_query("SELECT id,name,console,active FROM ladders WHERE console='5' and active < 2 ORDER BY name"); while(list($id,$name,$console,$active)=mysql_fetch_row($ladders)){ if($console == 5){ $c_img="<img src='./ladder_images/console_icons/x360.gif'>"; }else{ $c_img=""; } $out[body].=" <tr bgcolor='$config[altcolorb]' border='1'> <td bgcolor='$config[altcolorb]' align='center' width='5%'> $c_img</td> <td bgcolor='$config[altcolorb]' align='left'>"; if($active==0) { $out[body].="<font size='-2'>$name</font></td>"; } else { $out[body].="<a href='$config[scripturl]/standings.php?ladder[id]=$id'><font size='-2'>$name</font></a></td>"; } $out[body].=" <td bgcolor='$config[altcolorb]' align='center' width='5%'>"; if($active==1) { $out[body].='<img src=./ladder_images/ladder_icons/green.gif width=13 height=13>'; } else { $out[body].='<img src=./ladder_images/ladder_icons/red.gif width=13 height=13>'; } $out[body].="</td></tr>\n"; } $out[body].="</table><br> <table width='451' border='0' cellspacing='1' cellpadding='1' bgcolor='000000'> <tr background='$config[titlebar]'> <td width='100%' colspan='3' align='left' valign='center' background='$config[titlebar]'><font color='ffffff' size='-2'><center><b>Computer</b></font></center></td></tr> <tr bgcolor='#000000'>"; $ladders=mysql_query("SELECT id,name,console,active FROM ladders WHERE console='6' and active < 2 ORDER BY name"); while(list($id,$name,$console,$active)=mysql_fetch_row($ladders)){ if($console == 6){ $c_img="<img src='./ladder_images/console_icons/pc.gif'>"; }else{ $c_img=""; } $out[body].=" <tr bgcolor='$config[altcolorb]' border='1'> <td bgcolor='$config[altcolorb]' align='center' width='5%'> $c_img</td> <td bgcolor='$config[altcolorb]' align='left'>"; if($active==0) { $out[body].="<font size='-1'>$name</font></td>"; } else { $out[body].="<a href='$config[scripturl]/standings.php?ladder[id]=$id'><font size='-1'>$name</font></a></td>"; } $out[body].=" <td bgcolor='$config[altcolorb]' align='center' width='5%'>"; if($active==1) { $out[body].='<img src=./ladder_images/ladder_icons/green.gif width=13 height=13>'; } else { $out[body].='<img src=./ladder_images/ladder_icons/red.gif width=13 height=13>'; } $out[body].="</td></tr>\n"; } $out[body].="</table><br> <table width='451' border='0' cellspacing='1' cellpadding='1' bgcolor='000000'> <tr background='$config[titlebar]'> <td width='100%' colspan='3' align='left' valign='center' background='$config[titlebar]'><font color='ffffff' size='-2'><center><b>Wii</b></font></center></td></tr> <tr bgcolor='#000000'>"; $ladders=mysql_query("SELECT id,name,console,active FROM ladders WHERE console='7' and active < 2 ORDER BY name"); while(list($id,$name,$console,$active)=mysql_fetch_row($ladders)){ if($console == 7){ $c_img="<img src='./ladder_images/console_icons/wii.gif'>"; }else{ $c_img=""; } $out[body].=" <tr bgcolor='$config[altcolorb]' border='1'> <td bgcolor='$config[altcolorb]' align='center' width='5%'> $c_img</td> <td bgcolor='$config[altcolorb]' align='left'>"; if($active==0) { $out[body].="<font size='-2'>$name</font></td>"; } else { $out[body].="<a href='$config[scripturl]/standings.php?ladder[id]=$id'><font size='-2'>$name</font></a></td>"; } $out[body].=" <td bgcolor='$config[altcolorb]' align='center' width='5%'>"; if($active==1) { $out[body].='<img src=./ladder_images/ladder_icons/green.gif width=13 height=13>'; } else { $out[body].='<img src=images/red.gif width=13 height=13>'; } $out[body].="</td></tr>\n"; } $out[body].="</table><br>"; include("$config[html]"); } function show_standings($ladder,$thisladder){ global $config; if(!$ladder[rank]){ $ladder[rank]="1"; } $ladder[rank]=($ladder[rank] - 1); $rcount="$ladder[rank]"; if($thisladder[isteam]){ $teamsword="Teams"; }else{ $teamsword="Players"; } if($ladder[unranked]){ $whereranked="WHERE rank < 1"; $rankswitch="Showing Unranked $teamsword :: <a href='$config[scripturl]/standings.php?ladder[id]=$ladder[id]&ladder[unranked]=0'><font face='verdana' size='1'>[Ranked]</a>"; }else{ $whereranked="WHERE rank > 0"; $rankswitch="Showing Ranked $teamsword :: <a href='$config[scripturl]/standings.php?ladder[id]=$ladder[id]&ladder[unranked]=1'><font face='verdana' size='1'>[unranked]</a>"; } $out[body].="<center><form><table width='90%' height='10' border='0' cellspacing='0' cellpadding='0'><tr><td width='25%'></td><td align='right'><b><font class='drop' size='-1'>Ladder: </font></td><td align='right' width='5'><b><select class='combobox' name='SiteMap' onchange='if(options[selectedIndex].value){location = options[selectedIndex].value}'>"; $ladders=mysql_query("SELECT id,name FROM ladders where active < 2 ORDER BY id"); while(list($id,$name)=mysql_fetch_row($ladders)){ if($ladder[id] == $id){ $id2="$id' SELECTED"; } else{ $id2="$id'"; } $out[body].="<option value='$config[scripturl]/standings.php?ladder[id]=$id2>$name</option>\n"; } $out[body].="</select></td></tr></table><br>"; $out[body].=" <center> <table width='451' border='0' cellspacing='1' cellpadding='1' bgcolor='000000'> <tr background='$config[titlebar]'> <td width='5%' valign='center' align='center' background='$config[bg5]' colspan='10'><b><font size='-2' color='ffffff'>$thisladder[name] Ladder</b></td> <tr bgcolor='$config[altcolora]'> <td width='9%' valign='center' align='center' title='Rank' bgcolor='$config[altcolora]'><b><font size='-2' color='#ffffff'>Rank</b></td> <td width='5%' valign='center' align='center' title='King' bgcolor='$config[altcolora]'><b><font size='-2' color='#ffffff'></b></td> <td width='23%' valign='center' align='center' title='Name' bgcolor='$config[altcolora]'><b><font size='-2' color='#ffffff'>Name</b></td> <td width='11%' valign='center' align='center' title='Number of Wins' bgcolor='$config[altcolora]'><b><font size='-2' color='#ffffff'>Wins</b></td> <td width='11%' valign='center' align='center' title='Number of Loss' bgcolor='$config[altcolora]'><b><font size='-2' color='#ffffff'>Loss</b></td> <td width='11%' valign='center' align='center' title='Streak' bgcolor='$config[altcolora]'><b><font size='-2' color='#ffffff'>Streak</b></td> <td width='6%' valign='center' align='center' title='XP' bgcolor='$config[altcolora]'><b><font size='-2' color='#ffffff'>XP</b></td> <td width='7%' valign='center' align='center' title='Level' bgcolor='$config[altcolora]'><b><font size='-2' color='#ffffff'>Level</b></td> <td width='11%' valign='center' align='center' title='Strikes' bgcolor='$config[altcolora]'><b><font size='-2' color='#ffffff'>Strikes</b></td> <td width='6%' valign='center' align='center' title='AIM' bgcolor='$config[altcolora]'><b><font size='-2' color='#ffffff'>AIM</b></td> </tr>"; $standings=mysql_query("SELECT s.`tid`,s.`rank`,s.`wins`,s.`loss`,s.`streak`,s.`points`,s.`king`,s.`level`,t.`name`,t.`id`,t.`aim`,t.`aim2`,t.`aim3`,t.`aim4` FROM `stats` as `s`,`teams` as `t` $whereranked and t.id=s.tid ORDER BY points DESC LIMIT $ladder[rank],$config[showranks]") or die(mysql_error()); while(list($tid,$rank,$wins,$loss,$streak,$points,$king,$level,$name,$id,$aim,$aim2,$aim3,$aim4)=mysql_fetch_row($standings)){ include("./level.php"); if ($king == "NULL") { $king = ""; }else{ $king = "<A HREF='javascript: void King($ladder[id])'><img src='./ladder_images/ladder_icons/king.gif' border='0'></A>"; } $war=mysql_query("SELECT * FROM warring WHERE id='$tid'") or die(mysql_error()); $war=mysql_fetch_array($war); if ($warring[war] == '1'){ $msg = "<strong style=\'color:black;\'>This clan is looking for a war! Contact the leader, via AIM, for details.</strong><br>"; } //$war = "<img src='./ladder_images/ladder_icons/war.gif' border='0' onmouseover=\"return overlib('$msg', CAPTION, '<span style=\'color:blue;\'>We\'re looking for a War!</span>');\" onmouseout=\"return nd();\" />$spacer"; $team=mysql_query("SELECT * FROM teams WHERE id='$tid'") or die(mysql_error()); $team=mysql_fetch_array($team); if ($team[blast]){ $blast = addslashes($team[blast]); $message = "<img src='./ladder_images/ladder_icons/blast.gif' border='0' onmouseover=\"return overlib('$blast');\" onmouseout=\"return nd();\">"; }else{ $message = ""; } if ($team[aim]) { $aim = new checkAIM($team[aim]); if ($aim->isOnline()){ $leadimg = "<img src=\'./ladder_images/ladder_icons/aim_online.gif' border=\'0\' align=\'absmiddle\' />"; $leadon = true; }else{ $leadon = false; $leadimg = "<img src=\'./ladder_images/ladder_icons/aim_online.gif' border=\'0\' align=\'absmiddle\' />"; } } if ($team[aim3]) { $coaim = new checkAIM($team[aim3]); if ($coaim->isOnline()){ $coleadimg = "<img src=\'./ladder_images/ladder_icons/aim_online.gif' border=\'0\' align=\'absmiddle\' />"; $coleadon = true; }else{ $coleadon = false; $coleadimg = "<img src=\'./ladder_images/ladder_icons/aim_offline.gif' border=\'0\' align=\'absmiddle\' />"; } } if ($leadon OR $coleadon){ $image = "<img src='./ladder_images/ladder_icons/aim_online.gif' border='0' align='absmiddle' />"; }else{ $image = "<img src='./ladder_images/ladder_icons/aim_offline.gif' border='0' align='absmiddle' />"; } if (!$team[aim] AND !$team[aim3]){ $image = "N/A"; }elseif ($team[aim]){ $leader = "<a href=\'aim:goim?screenname=$team[aim]&message=Hello, would you like a war?\'>$leadimg</a> ($team[aim2])"; }else{ $leader = "None Specified"; } if ($team[aim3]){ $coleader = "<br /><strong>Co-Leader:</strong> <a href=\'aim:goim?screenname=$team[aim3]&message=Hello, would you like a war?\'>$coleadimg</a> ($team[aim3])"; }else{ $coleader = "<br /><strong>Co-Leader:</strong> None Specified"; } //$aim_sn = "<a href='javascript:void(0);' onClick=\"fixedtooltip('<table><tr><td bgcolor=\'#000000\'><div align=\'right\' style=\'float:right\'><a href=\'javascript: void\' onclick=\'delayhidetip()\' style=\'font-weight:bold;color:red;\'>[X]</a></div></td></tr></table><br /> <strong>Leader:</strong> $leader $coleader<br /><br />', this, event, '250px')\">$image</a>"; $aim_sn = "<a href='javascript:void(0);' onClick=\"return overlib('<strong>Leader:</strong> $leader $coleader<br><br>', CAPTION, 'AOL Instant Messenger Contact Details', STICKY)\"\">$image</a>"; if($config[altcolorx]==$config[altcolora]){ $config[altcolorx]="$config[altcolorb]"; }else{ $config[altcolorx]="$config[altcolora]"; } $matches=mysql_query("select (TO_DAYS(now()) - TO_DAYS(max(reported))) as 'numdays' from matchdb WHERE wid='$teamid' or lid='$teamid' group by ladderid"); $matches=mysql_fetch_array($matches); $rcount++; include("./strikes_main.php"); $out[body].=" <tr bgcolor='$config[altcolorb]'> <td width='9%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$rcount</b></td> <td width='5%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$king</b></td> <td width='23%' valign='center' align='left' bgcolor='$config[altcolorb]'><font size='-2'><div align='right' style='float:right'>$message</div><div align='right' style='float:right;'>$war</div><a href='$config[scripturl]/stats.php?account=$tid' title='$name has played $games games with an average of $percent% with $wins Wins and $loss Losses'> <b>$name</a></b></a></td> <td width='11%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$wins</b></td> <td width='11%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$loss</b></td> <td width='11%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$streak</b></td> <td width='6%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$points</b></td> <td width='7%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$level</b></td> <td width='11%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$strike1 | $strike2 | $strike3</b></td> <td width='6%' valign='center' align='center' bgcolor='$config[altcolorb]'><font size='-2'><b>$aim_sn</b></td>"; } $selectedteams=mysql_query("SELECT COUNT(*) FROM stats $whereranked and lid=$ladder[id]"); $selectedteams=mysql_fetch_array($selectedteams); $selectedteams="$selectedteams[0]"; $totalteams=mysql_query("SELECT COUNT(*) FROM stats WHERE lid=$ladder[id]"); $totalteams=mysql_fetch_array($totalteams); $totalteams="$totalteams[0]"; $pagenow=($ladder[rank] + 1); if($pagenow==1){ $skipranks.="[<a href='$config[scripturl]/standings.php?ladder[id]=$ladder[id]&ladder[rank]=1&ladder[unranked]=$ladder[unranked]'>1-$config[showranks]</a>] "; }else{ $skipranks.="<a href='$config[scripturl]/standings.php?ladder[id]=$ladder[id]&ladder[rank]=1&ladder[unranked]=$ladder[unranked]'>1-$config[showranks]</a> "; } $arank=1; $brank=$config[showranks]; while($brank < $selectedteams){ $arank=($arank + $config[showranks]); $brank=($brank + $config[showranks]); if($pagenow==$arank){ $skipranks.="[<a href='$config[scripturl]/standings.php?ladder[id]=$ladder[id]&ladder[rank]=$arank&ladder[unranked]=$ladder[unranked]'>$arank-$brank</a>] "; }else{ $skipranks.="<a href='$config[scripturl]/standings.php?ladder[id]=$ladder[id]&ladder[rank]=$arank&ladder[unranked]=$ladder[unranked]'>$arank-$brank</a> "; } } $ladder[rank]=($ladder[rank] + 1); $backrank=($ladder[rank] - $config[showranks]); $forwrank=($ladder[rank] + $config[showranks]); if($ladder[rank] > $config[showranks]){ $backwards="<a href='$config[scripturl]/standings.php?ladder[id]=$ladder[id]&ladder[rank]=$backrank&ladder[unranked]=$ladder[unranked]'><<<</a>"; }else{ $backwards="<<<"; } if($forwrank < $selectedteams){ $forwards="<a href='$config[scripturl]/standings.php?ladder[id]=$ladder[id]&ladder[rank]=$forwrank&ladder[unranked]=$ladder[unranked]'>>>></a>"; }else{ $forwards=">>>"; } $out[body].=" <tr> <td width='100%' background='$config[bg4]' valign='center' align='center' colspan='10'><b><font face='verdana' size='0' font color='ffffff'>$backwards :: $totalteams Total $teamsword :: $rankswitch :: $forwards<br> $skipranks</b></td> </tr> </table> <br> </center>"; include("$config[html]"); } ?> Link to comment https://forums.phpfreaks.com/topic/127815-check-aim-php/#findComment-661715 Share on other sites More sharing options...
nucleardoctor Posted October 10, 2008 Author Share Posted October 10, 2008 And my blast code works fine. When you put your mouse over blast, it displays the small popup tooltip with the text in it. Link to comment https://forums.phpfreaks.com/topic/127815-check-aim-php/#findComment-661717 Share on other sites More sharing options...
Bendude14 Posted October 10, 2008 Share Posted October 10, 2008 the isOnline() function is not defined here? Link to comment https://forums.phpfreaks.com/topic/127815-check-aim-php/#findComment-661725 Share on other sites More sharing options...
nucleardoctor Posted October 10, 2008 Author Share Posted October 10, 2008 Do you know how I would define it or what I would define it as... I never messed with trying to check if an AIM is online or not. Link to comment https://forums.phpfreaks.com/topic/127815-check-aim-php/#findComment-661726 Share on other sites More sharing options...
Bendude14 Posted October 10, 2008 Share Posted October 10, 2008 have a look here this is a class for checking whether or not AIM accounts are online. there is an example also. http://www.phpclasses.org/browse/package/3844.html Link to comment https://forums.phpfreaks.com/topic/127815-check-aim-php/#findComment-661737 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.