Forums | Chat | News | Contact Us | Register | PSU Social |
PSU: The quotes...they're taking over...help....please...
Forums | Chat | News | Contact Us | Register | PSU Social |
Home | Forum | Chat | Wiki | Social | AGN | PS2 Stats |
|
|
|
Thread Tools | Search this Thread | Display Modes |
2013-03-21, 04:34 PM | [Ignore Me] #31 | ||
Private
|
Combination of the API being quite slow at returning results(triggering timeouts) and simply dropping many queries(my php/javascript code isn't robust). I'll have a look at it and work on a more robust solution.
Last edited by torokokill; 2013-03-21 at 04:36 PM. |
||
|
2013-04-02, 05:10 AM | [Ignore Me] #32 | ||
Private
|
Many thanks to Sinjhin, I based this PHP script off his work.
Shows online Members of your outfit sorted by battle rank: http://framephonic.com/membersOnline.php Code:
<html> <head> <title>Online PCYS members</title> </head> <body> <p><h3>Online Now:</h3></p> <?php $jsonOutfit = file_get_contents("http://census.soe.com/get/ps2-beta/outfit?alias=PCYS&c:resolve=member_online_status"); $aearray = json_decode($jsonOutfit, true); $outfit_list = $aearray["outfit_list"]; $members = $outfit_list[0]["members"]; $memberIDs; $memberData; $memberIDsOnline; $memberSpecifics; $onlineCount = 0; date_default_timezone_set('America/Vancouver'); foreach($members as $key => $value) { //echo "Key: $key; Value: $value<br />\n"; if ($value["online_status"] == "1") { $onlineCount++; $memberIDsOnline[$key] = $value["character_id"]; } } foreach($memberIDsOnline as $key => $value) { $query = "http://census.soe.com/get/ps2-beta/character/{$value}?c:show=name.first,experience.rank"; $memberData[$value] = json_decode(file_get_contents($query), true); } foreach($memberData as $key => $value) { $memberSpecifics[$key] = array("ID" => $key, "battle_rank" => $value["character_list"][0]["experience"][0]["rank"], "name" => $value["character_list"][0]["name"]["first"]); } //var_dump($memberData); function cmp($b, $a) { if ($a["battle_rank"] == $b["battle_rank"]) { return 0; } return ($a["battle_rank"] < $b["battle_rank"]) ? -1 : 1; } usort($memberSpecifics, "cmp"); echo "<table border=1>"; echo "<tr><td><b>Name</b></td><td><b>Battle Rank</b></td></tr>"; foreach($memberSpecifics as $key => $value) { if($value["name"] == true) { echo "<tr>"; echo "<td>{$value['name']} </td><td> {$value['battle_rank']} </td>"; //echo "</br>{$value['name']}'; echo "</tr>"; } } echo "</table>"; ?> </body> <html> |
||
|
2013-05-17, 10:59 AM | [Ignore Me] #33 | ||
Private
|
I've been considering upgrading my gaming hardware from... basically no computer hardware short of my actual machine. G15/G19 keyboard is, at first glance, the most appealing... along with its companion the G13 gameboard... but, my biggest concern is that the screens will be useless; is there any real support for them in PS2? How hard would it be to learn the code from the ground up and put together my own programs? I'm familiar with HTML, Java, and UNIX mostly... but, I've tinkered with some other programming languages...
|
||
|
2013-05-22, 05:53 AM | [Ignore Me] #34 | ||
"Gryphons avatar picture!" 8D
I also have 10 fingers! I wish I could say wine, but it's not very helpful atm. Edit: How the hell did I get into the API forum!? I'm so confused! Since I'm lost here is this much: http://www.ieeeghn.org/wiki/index.php/Ancient_Computers Last edited by Ait'al; 2013-05-22 at 06:00 AM. |
|||
|
|
Bookmarks |
Thread Tools | Search this Thread |
Display Modes | |
|
|