Twitch Streamers Block
Select messages from # through # Forum FAQ
[/[Print]\]
Goto page Previous  1, 2, 3  Next  :| |:
HeadShot Extreme -> Nuke Blocks / Modules Support

#11: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Feb 07, 2020 12:19 pm
    —
Good to hear I guess. Would be nice to know why it wasn't working.

#12: No icon Re: Twitch Streamers Block Author: fire PostPosted: Sat Feb 08, 2020 7:37 am
    —
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..... hrm Just glad it is working again.

#13: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun Feb 09, 2020 10:54 am
    —
Yeah, that's strange. Could have been something cached. Who knows.

#14: No icon Re: Twitch Streamers Block Author: fire PostPosted: Sat Feb 22, 2020 2:34 pm
    —
It is back to not working again....weinen  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

#15: No icon Re: Twitch Streamers Block Author: PatPgtips PostPosted: Thu Feb 27, 2020 9:30 am
    —
not working for me either shows last time streamer was live but doesnt show they are live on image

#16: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu Feb 27, 2020 9:23 pm
    —
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.

#17: No icon Re: Twitch Streamers Block Author: fire PostPosted: Fri Feb 28, 2020 6:25 am
    —
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!

#18: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Feb 28, 2020 11:44 am
    —
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.

#19: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu Jun 18, 2020 7:03 pm
    —
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)

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.

#20: No icon Re: Twitch Streamers Block Author: PatPgtips PostPosted: Fri Jun 19, 2020 4:48 am
    —
thanks corpse that works great

very much appreciated



HeadShot Extreme -> Nuke Blocks / Modules Support


output generated using printer-friendly topic mod. All times are GMT - 7 Hours

Goto page Previous  1, 2, 3  Next  :| |:
Page 2 of 3