Forums | Chat | News | Contact Us | Register | PSU Social |
PSU: I Swear Squeeky Stole My Porn!
Forums | Chat | News | Contact Us | Register | PSU Social |
Home | Forum | Chat | Wiki | Social | AGN | PS2 Stats |
|
|
|
Thread Tools | Search this Thread | Display Modes |
2013-02-21, 07:00 PM | [Ignore Me] #1 | ||||||
Contributor Private
|
This is the first batch of stuff I've come up with:
Player Search: http://www.savethevanu.com/ps2stats/player_search.php Player Stats: http://www.savethevanu.com/ps2stats/ps2stats.php Outfit Search: http://www.savethevanu.com/ps2stats/outfit_members.php Server Status: http://www.savethevanu.com/ps2stats/server_status.php Sigs: http://savethevanu.com/ps2stats/sig....name=dreadnaut
__________________
Last edited by Dreadnaut; 2013-02-27 at 06:05 PM. |
||||||
|
2013-02-21, 07:10 PM | [Ignore Me] #2 | ||
PSU Code Monkey
|
|
||
|
2013-02-22, 02:26 PM | [Ignore Me] #5 | |||
Contributor Private
|
It might be something as simple as adding a script tag wherever you want the data to appear on your own site. Work in progress!
__________________
|
|||
|
2013-02-22, 04:03 PM | [Ignore Me] #6 | ||
Private
|
I've just published an initial preview of http://outfitpoints.com
It's designed to be a toolkit for outfit management, so whilst it does include a standard sort able outfit list, the main benefit is the graphical outfit statistics to help understand what is happening with your outfit. There's a lot more work to do, many more stats to graph, but this is just a preview. |
||
|
2013-02-22, 06:36 PM | [Ignore Me] #7 | ||
Private
|
So, I whipped this up real quick last night just to re-familiarize myself with php and JSON. It is not following best practices in some places, and there are some things I could do more efficiently.
Anyways, I am not seeing any code up in here and I thought it might be nice to post some for people who want an example to start learning this. The Site. The Code: Code:
<html> Auric Eclipse Test Page </br></br> <?php $jsonOutfit = file_get_contents("http://census.soe.com/get/ps2-beta/outfit/37509488620602205?c:resolve=member"); $aearray = json_decode($jsonOutfit, true); $outfit_list = $aearray["outfit_list"]; $members = $outfit_list[0]["members"]; $memberIDs; $memberData; $memberSpecifics; date_default_timezone_set('America/Vancouver'); foreach($members as $key => $value) { //echo "Key: $key; Value: $value<br />\n"; $memberIDs[$key] = $value["character_id"]; } foreach($memberIDs as $key => $value) { $query = "http://census.soe.com/get/ps2-beta/character/{$value}?c:show=name.first,times.last_login"; $memberData[$value] = json_decode(file_get_contents($query), true); } foreach($memberData as $key => $value) { $memberSpecifics[$key] = array("ID" => $key, "last_login" => $value["character_list"][0]["times"]["last_login"], "name" => $value["character_list"][0]["name"]["first"]); } //var_dump($memberSpecifics); function cmp($b, $a) { return strcmp($a["last_login"], $b["last_login"]); } usort($memberSpecifics, "cmp"); echo "<table border=1>"; echo "<tr><td><b>Name</b></td><td><b>Last Login</b></td></tr>"; foreach($memberSpecifics as $key => $value) { if($value["name"] == true) { echo "<tr>"; $last_login_time = $value["last_login"]; $last_login_time_hr = date('Y-m-d H:i:s', $last_login_time); echo "<td>{$value['name']} </td><td> {$last_login_time_hr} </td>"; //echo "</br>{$value['name']}'; echo "</tr>"; } } echo "</table>"; ?> </html> Last edited by Sinjhin; 2013-02-25 at 10:15 PM. |
||
|
2013-02-23, 01:29 PM | [Ignore Me] #8 | ||
Private
|
My tools are mostly unfinished works-in-progress at the moment. May contain half-finished features and bugs:
Resource tracker/reminder http://www.machine-code.com/ps2api/resourcereminder.php Live kill/death feed http://www.machine-code.com/ps2api/killfeed.php Last edited by torokokill; 2013-02-23 at 08:36 PM. |
||
|
2013-02-25, 10:02 PM | [Ignore Me] #12 | ||
Private
|
My code is woven into Joomla with strands of spaghetti so I'll just do my best to provide snippets in answer to questions.
Here are a few topics I'm happy to help with and provide code snippets on request:
|
||
|
|
Bookmarks |
|
|