Jump to content


Suggesting the Streams "status".


  • Please log in to reply
16 replies to this topic

#1 08 April 2012 - 06:31 PM

Vordoxen
Vordoxen

    Bronze Member

  • Members
  • Location Sweden, also known as Shoryosuchi?
  • PSN:  Vordoxen
How about adding a window on DL for streamers to see which are active and not, to better structure out how to find Blazblue/FG related streams.

So far I've succeeded copying the Justin and Twitch streams, which luckily are alot of people.

http://vdxretrotainm...eamingtest.html


This is a mere test on how it works, but should be easy to implement if we see enough people are interested in this.

Also, if wonder, it's my own offsite testing area for HTML and PHP, so the things you find there are merely just stuff I do now and then for my College work. But focus on the idea of this.

#2 08 April 2012 - 07:56 PM

Jyosua
Jyosua

    Mods Changing Titles Is Cool

  • Members
  • Twitter: Jyosua
  • Location Lancaster, CA
  • XBL: Jyosua
  • PSN:  Jyosua

Awards Bar:

Users Awards
I actually really like this idea. I looked for a place to even post "Hey my stream is up and I'm currently streaming *BLANK*" but there's not even a thread. Plus, it'd be a hassle to have to post there every time. A block that automatically shows active streams wouldn't be too hard IMO, and it'd be a fantastic feature. Althernatively you could modify the stream calendar to show an icon or something, but that might be a little more difficult.

@Jyosua: The difference is in the state bro NYC da bes, and the fact that I'm just overall more credible. Finally the way I word things is orgasmic and just too good to call free.

:JI: :ballMT:

#3 08 April 2012 - 09:14 PM

Vordoxen
Vordoxen

    Bronze Member

  • Members
  • Location Sweden, also known as Shoryosuchi?
  • PSN:  Vordoxen
The feature is already working, once one of those streams goes live, the block will be Green. ;) So it's just a matter of giving a html to make it real here on Dustloop.

#4 08 April 2012 - 09:21 PM

Circuitous
Circuitous

    Burliest of Hearts

  • Administrators
  • Twitter: @Circuitous
  • Location Rising Sun, IN
  • XBL: Circuitous
  • PSN:  Circuitous

Awards Bar:

Users Awards
PM the HTML to Shtkn and let's get this ball rolling.

#5 08 April 2012 - 09:24 PM

Vordoxen
Vordoxen

    Bronze Member

  • Members
  • Location Sweden, also known as Shoryosuchi?
  • PSN:  Vordoxen
I thought it was Huey that was the head honcho here on DL.
Waiting for his response. And of course this thread.

#6 09 April 2012 - 07:29 PM

shtkn
shtkn

    hokuto shtkn

  • Administrators
  • Twitter: @shtkn
  • Location San Diego
  • XBL: shtknEX
  • PSN:  shtkn
post the html or pm to it me and i'll try to get it up

no longer doing name changes, sorry


#7 09 April 2012 - 07:59 PM

Vordoxen
Vordoxen

    Bronze Member

  • Members
  • Location Sweden, also known as Shoryosuchi?
  • PSN:  Vordoxen
Think it's better to post here in the thread so we can discuss it.

Alright, I assume you know how to use PHP cause I have 0 idea except for goggling about.

streamtest.php

<?php
header('content-type: image/png');

$stream = $_GET['stream'];

$json_file = @file_get_contents("http://api.justin.tv/api/stream/list.json?channel={$stream}", 0, null, null);
$json_array = json_decode($json_file, true);


if ($json_array[0]['name'] == "live_user_{$stream}") {
echo file_get_contents("online.png");
}else{
echo file_get_contents("offline.png");
}

?>

The Php code, in tl:dr, when you write in this PHP html adress and then add in the stream name in the HTML link to this to get a "online" and "offline" depending on the API.

As for the html code.

<img src= "http://vdxretrotainment.eu/streamtest.php?stream=nthgenmedia">nthgenmedia<a href="http://www.twitch.tv/starsickle"><img src="/linkto.png"></h4></a>

This is the HTML code that you can use within the HTML, It's the same design I had in the http://vdxretrotainm...eamingtest.html test.

That's it...really.
Not sure I can explain it better since I have 0 idea how the PHP works, but this worked for me.

All that's needed is a person who knows how to use HTML better and/or better graphic competence.

The full HTML code here of what I am using.
Spoiler


Think you may even be able to make it only show Online, as long as the html code could be pushed into PHP. Not sure on how to do that either though.

Edited by Vordoxen, 09 April 2012 - 08:22 PM.


#8 09 April 2012 - 10:16 PM

shtkn
shtkn

    hokuto shtkn

  • Administrators
  • Twitter: @shtkn
  • Location San Diego
  • XBL: shtknEX
  • PSN:  shtkn
i think i can modify it so that the stream calendar thing we have at the top of hte front page can have an icon in front of each stream that shows its current status.

also, i would like to move any php calls to be hosted on dustloop

no longer doing name changes, sorry


#9 09 April 2012 - 10:28 PM

Vordoxen
Vordoxen

    Bronze Member

  • Members
  • Location Sweden, also known as Shoryosuchi?
  • PSN:  Vordoxen
That's why I wrote the PHP code here so you can get it locally on this own server.

Edited by Vordoxen, 09 April 2012 - 10:34 PM.


#10 11 April 2012 - 12:52 PM

Vordoxen
Vordoxen

    Bronze Member

  • Members
  • Location Sweden, also known as Shoryosuchi?
  • PSN:  Vordoxen
How is it going, shktn?

#11 11 April 2012 - 11:07 PM

shtkn
shtkn

    hokuto shtkn

  • Administrators
  • Twitter: @shtkn
  • Location San Diego
  • XBL: shtknEX
  • PSN:  shtkn
haven't gotten around to it yet, might need to ask circ to work on this for me

no longer doing name changes, sorry


#12 12 April 2012 - 07:53 AM

Circuitous
Circuitous

    Burliest of Hearts

  • Administrators
  • Twitter: @Circuitous
  • Location Rising Sun, IN
  • XBL: Circuitous
  • PSN:  Circuitous

Awards Bar:

Users Awards
Got a simple version of it working on the front page now. If a stream is live, the text (Online now!) will appear after the title. Maybe we'll make it fancier later.

Thanks for the code and the suggestion, it's pretty damn handy.

#13 12 April 2012 - 07:55 AM

Linear04
Linear04

    help me ee-sama

  • Members
good job, tho i can't exactly see it in action atm for obvious reasons

#14 12 April 2012 - 07:58 AM

shtkn
shtkn

    hokuto shtkn

  • Administrators
  • Twitter: @shtkn
  • Location San Diego
  • XBL: shtknEX
  • PSN:  shtkn
it's still a bit buggy, might not get to fixing it tonight... circ's sleepy and it's 4am where he is

no longer doing name changes, sorry


#15 12 April 2012 - 08:05 AM

Circuitous
Circuitous

    Burliest of Hearts

  • Administrators
  • Twitter: @Circuitous
  • Location Rising Sun, IN
  • XBL: Circuitous
  • PSN:  Circuitous

Awards Bar:

Users Awards
looks like we got the bugs worked out

Posted Image

:D

#16 12 April 2012 - 08:43 AM

Vordoxen
Vordoxen

    Bronze Member

  • Members
  • Location Sweden, also known as Shoryosuchi?
  • PSN:  Vordoxen
AWESOME! Glad to contribute to Dustloop. =3 Would've gone faster if I actually had been able to post since day 1. ^^

Anyway, off to watching streams!

#17 14 April 2012 - 10:26 AM

Vordoxen
Vordoxen

    Bronze Member

  • Members
  • Location Sweden, also known as Shoryosuchi?
  • PSN:  Vordoxen
I think there's a bug, the Huey stream goes towards a differnet URL then it should do.
Probably PHP or HTML mixup.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users