Go Back   Justin.tv Community Help Forums > Community Help > Help!

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-03-2012, 03:37 AM
tripleWRECK's Avatar
tripleWRECK tripleWRECK is offline
Junior Member
 
Join Date: Jul 2012
Location: NY
Posts: 5
Send a message via Skype™ to tripleWRECK
Question Displaying channel status via dynamic image?

I'm trying to setup a simple html/php page that I can grab an image from to show if my channel is live or not (an online + offline image that changes dynamically). Much like the status next to user's names here on this very forum. Pretty simple.

How would I go about doing such a thing? I'm new to php but have html experience.

Much appreciated.
Reply With Quote
  #2  
Old 07-03-2012, 09:49 AM
carlitosbahia's Avatar
carlitosbahia carlitosbahia is offline
Justin.tv Admin
 
Join Date: Aug 2009
Posts: 1,516
Default

http://community.justin.tv/forums/sh...ht=live+status
that could give you some ideas or a start point
Reply With Quote
  #3  
Old 07-03-2012, 10:19 AM
bgeorge's Avatar
bgeorge bgeorge is offline
Twitch.tv Admin
 
Join Date: Feb 2011
Location: Pennsylvania, USA
Posts: 989
Default

More updated version of carlitos's link here -> http://bashtech.net/wiki/JustinTV_%2...el_Status_Icon (Channel Status Icon section)
__________________
Casts: twitch.tv/bgeorge - Twitch Support: help.twitch.tv
Recommend broadcasting software - obsproject.com (Free, works on TTV and JTV)
Reply With Quote
  #4  
Old 07-03-2012, 02:06 PM
tripleWRECK's Avatar
tripleWRECK tripleWRECK is offline
Junior Member
 
Join Date: Jul 2012
Location: NY
Posts: 5
Send a message via Skype™ to tripleWRECK
Question

Quote:
Originally Posted by bgeorge View Post
More updated version of carlitos's link here -> http://bashtech.net/wiki/JustinTV_%2...el_Status_Icon (Channel Status Icon section)
Wow thanks so much!

I've made a directory with on/offline images with the php script. When I use the URL I am getting this error: "The image “https://cs4.sunyocc.edu/~a.b.smith26...wrecktv” cannot be displayed, because it contains errors."

That's in Firefox, in Chrome I'm only getting the broken image icon.

No doubt I'm making some stupid basic mistake as it's been ages since I've done any web stuff, any help is appreciated. Perhaps full example code would be best.

Last edited by tripleWRECK; 07-03-2012 at 02:17 PM.
Reply With Quote
  #5  
Old 07-05-2012, 07:30 PM
tripleWRECK's Avatar
tripleWRECK tripleWRECK is offline
Junior Member
 
Join Date: Jul 2012
Location: NY
Posts: 5
Send a message via Skype™ to tripleWRECK
Default

Anyone?
Reply With Quote
  #6  
Old 07-05-2012, 07:52 PM
bgeorge's Avatar
bgeorge bgeorge is offline
Twitch.tv Admin
 
Join Date: Feb 2011
Location: Pennsylvania, USA
Posts: 989
Default

Remove the line "header('content-type: image/png');" and see if any errors are displayed then.
__________________
Casts: twitch.tv/bgeorge - Twitch Support: help.twitch.tv
Recommend broadcasting software - obsproject.com (Free, works on TTV and JTV)
Reply With Quote
  #7  
Old 07-05-2012, 11:41 PM
tripleWRECK's Avatar
tripleWRECK tripleWRECK is offline
Junior Member
 
Join Date: Jul 2012
Location: NY
Posts: 5
Send a message via Skype™ to tripleWRECK
Default

Quote:
Originally Posted by bgeorge View Post
Remove the line "header('content-type: image/png');" and see if any errors are displayed then.
Removing that gave me this error:
Quote:
Fatal error: Call to undefined function: json_decode() in /u/students/a/a.b.smith26995/public_html/twitch/status.php on line 5
Reply With Quote
  #8  
Old 07-06-2012, 07:16 AM
bgeorge's Avatar
bgeorge bgeorge is offline
Twitch.tv Admin
 
Join Date: Feb 2011
Location: Pennsylvania, USA
Posts: 989
Default

Looks like your web server is running a version of PHP before 5.2.0 which is where that function was added.
__________________
Casts: twitch.tv/bgeorge - Twitch Support: help.twitch.tv
Recommend broadcasting software - obsproject.com (Free, works on TTV and JTV)
Reply With Quote
  #9  
Old 07-06-2012, 01:09 PM
tripleWRECK's Avatar
tripleWRECK tripleWRECK is offline
Junior Member
 
Join Date: Jul 2012
Location: NY
Posts: 5
Send a message via Skype™ to tripleWRECK
Default

Oh snap I see, well at least the script works haha. I'll look into a new host ASAP.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:38 PM.