I reloaded the block with info re-entered, and no difference. I re-entered info into Twitch account and no difference. Even went as far as to delete and re-install steaming program I use. no difference. Then it started to work..... Just glad it is working again.
Yeah, that's strange. Could have been something cached. Who knows.
It is back to not working again.... On Twitch it shows the stream running but the block does not change from offline to online. I am heading out of state, but will have internet access to continue trying to figure this out when I can. Just a heads up
not working for me either shows last time streamer was live but doesnt show they are live on image
Yeah, it needs a rewrite. Twitches API I believe is being changed. Unfortunately, their documentation sucks on this so it will take me a little while to get to it.
Thanks for the response CoRpSE. I am surprised they don't supply iframe code or html code themselves to display on websites. Seems like that would help with advertising for them like gametracker does. Appreciate any help you could give on this one!
Iframe wouldn't help with this. API, are basically a text file that gets updated constantly, and we call upon that and look for specific sections of that code to show, then from there we design the look and what will happen with that value. The thing is, when I built this, I was using V2 of the API, then they shut that down last year and forced everyone to upgrade to V5, but they said that was shutting down soon for a different version.
Now, that the links have changed, I need to figure out the new JSON URL's for the various information for the system as-well as the new calls they may be.
Now, that the links have changed, I need to figure out the new JSON URL's for the various information for the system as-well as the new calls they may be.
Okay, here is a fix for those of you that have the system but it's not working anymore.
It looks like I may not have to upgrade to the new helix API just yet, they just changed a bit of the krakin v5 code.
Open: public_html/includes/blocks/block-twitch_streamers.php
Find: (Around line 46)
Replace all that with:
Save and check.
It looks like I may not have to upgrade to the new helix API just yet, they just changed a bit of the krakin v5 code.
Open: public_html/includes/blocks/block-twitch_streamers.php
Find: (Around line 46)
PHP: [ Select all ]
//Let's see if the stream is live
$stream = ($json['_total'] == 0) ? '' : 'true';
Replace all that with:
PHP: [ Select all ]
//Let's see if the stream is live
$liveornot = $json['streams'][0]['broadcast_platform'];
$stream = ($liveornot != "live") ? '' : 'true';
Save and check.
thanks corpse that works great
very much appreciated
very much appreciated