i'm pretty new html, php , not, have basic understanding, realize there features ordering numeric/alphabetical. feature want can't find about, nor search right term find guide i'm looking for
basically have custom stream page clan members, above each stream text , image stream status: online/offline, feature works 100% when person streams change online offline
however of streams muddled up, stream online found @ bottom of page or in random places
i want bring streams online top, possible?
<?php $channelname = htmlspecialchars($_get['channel'], ent_quotes); $clientid = ''; // register application , client id @ http://www.twitch.tv/settings?section=applications $online = 'online.png'; // set online image here $offline = 'offline.png'; // set offline image here $json_array = json_decode(file_get_contents('https://api.twitch.tv/kraken/streams/'.strtolower($channelname).'?client_id='.$clientid), true); if ($json_array['stream'] != null) { $channeltitle = $json_array['stream']['channel']['display_name']; $streamtitle = $json_array['stream']['channel']['status']; $currentgame = $json_array['stream']['channel']['game']; echo "$channeltitle <img src='$online' alt='online' /> playing $currentgame"; } else { echo "$channelname <img src='$offline' alt='offline' />"; } ?>
is i'm using pull stream status &
<a name="sadman"><center><font size="3" color="red"><span style="color:#ffffff">konvict</span> - sadmanwhosane - <span style="color:#cee3f6">stream status:</span> <img src="http://teamewix.com/stream.php?streamuser=sadmanwhosane87"></font>
is im doing show it
use jquery table sorter:
link here.
Comments
Post a Comment